mirror of
https://gitlab.com/klmp200/LO27.git
synced 2026-11-08 00:59:32 +00:00
Edit makefile to have an external gui lib
This commit is contained in:
1 parent
41cc271346
commit
4e4beeab07
5 files changed
+73
-5
No files matched your search
@@ -8,7 +8,7 @@ CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89
|
||||
EXTLIBS=`sdl2-config --cflags --libs`
|
||||
|
||||
LIBSDIR=-L/usr/lib -L./Libs
|
||||
INCLUDEDIR=-I/usr/include -I. -I./LibAutomaton
|
||||
INCLUDEDIR=-I/usr/include -I. -I./LibAutomaton -I./LibGui
|
||||
|
||||
#Exe test variables
|
||||
TARGET=main
|
||||
@@ -17,8 +17,9 @@ SOURCE=main
|
||||
SOURCECFILE=$(SOURCE:=.c)
|
||||
SOURCEOFILE=$(SOURCE:=.o)
|
||||
|
||||
DEPENDENCELIST=libAutomaton.so
|
||||
DEPENDENCENAMELIST=Automaton
|
||||
DEPENDENCELIST=libAutomaton.so libGui.so
|
||||
DEPENDENCENAMEONE=Automaton
|
||||
DEPENDENCENAMETWO=Gui
|
||||
|
||||
|
||||
all: $(TARGET)
|
||||
@@ -26,12 +27,12 @@ all: $(TARGET)
|
||||
$(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib
|
||||
@echo "\n Generating the " $(TARGET) " binary"
|
||||
mkdir -p build
|
||||
$(CC) $(SOURCEOFILE) $(LIBSDIR) $(EXTLIBS) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET)
|
||||
$(CC) $(SOURCEOFILE) $(LIBSDIR) $(EXTLIBS) -l$(DEPENDENCENAMEONE) -l$(DEPENDENCENAMETWO) -o ./build/$(TARGET)
|
||||
|
||||
#Generating the library binary
|
||||
lib:
|
||||
@echo "\n Generating the automaton library binary"
|
||||
# $(MAKE) -C LibCell
|
||||
$(MAKE) -C LibGui
|
||||
|
||||
$(DEPENDENCELIST):
|
||||
@echo "\n Generating the automaton library binary"
|
||||
|
||||
Reference in new issue
Block a user