mirror of
https://gitlab.com/klmp200/LO27.git
synced 2024-11-26 08:04:15 +00:00
New project acrh
This commit is contained in:
parent
53c05a0ca5
commit
24e3bb4b90
@ -6,7 +6,7 @@ LIBSDIR=-L/usr/lib -L../Libs
|
|||||||
INCLUDEDIR=-I/usr/include -I.
|
INCLUDEDIR=-I/usr/include -I.
|
||||||
|
|
||||||
#Library variables
|
#Library variables
|
||||||
LIBTARGET=libList.so
|
LIBTARGET=libAutomaton.so
|
||||||
LIBSOURCE=list CellElement
|
LIBSOURCE=list CellElement
|
||||||
LIBSOURCECFILE=$(LIBSOURCE:=.c)
|
LIBSOURCECFILE=$(LIBSOURCE:=.c)
|
||||||
LIBSOURCEOFILE=$(LIBSOURCE:=.o)
|
LIBSOURCEOFILE=$(LIBSOURCE:=.o)
|
@ -1,27 +0,0 @@
|
|||||||
CC=gcc
|
|
||||||
CFLAGS=-Wall -Werror -pedantic -fpic -g
|
|
||||||
|
|
||||||
|
|
||||||
LIBSDIR=-L/usr/lib -L../Libs
|
|
||||||
INCLUDEDIR=-I/usr/include -I.
|
|
||||||
|
|
||||||
#Library variables
|
|
||||||
LIBTARGET=libCellElement.so
|
|
||||||
LIBSOURCE=CellElement
|
|
||||||
LIBSOURCECFILE=$(LIBSOURCE:=.c)
|
|
||||||
LIBSOURCEOFILE=$(LIBSOURCE:=.o)
|
|
||||||
|
|
||||||
#Generating the library binary
|
|
||||||
$(LIBTARGET): $(LIBSOURCEOFILE)
|
|
||||||
@echo "\n Generating the library binary"
|
|
||||||
$(CC) $(CFLAGS) -shared $(LIBSOURCEOFILE) -o ../Libs/$(LIBTARGET)
|
|
||||||
|
|
||||||
#Generating object files
|
|
||||||
.c.o:
|
|
||||||
@echo "\n Generating " $@ " from " $<
|
|
||||||
$(CC) $(CFLAGS) $(INCLUDEDIR) -c -o $@ $<
|
|
||||||
|
|
||||||
#Cleaning
|
|
||||||
clean:
|
|
||||||
@echo "\n Cleaning"
|
|
||||||
rm -rf *.o *.exe *.so
|
|
21
Makefile
21
Makefile
@ -7,8 +7,7 @@ CFLAGS=-Wall -Werror -pedantic -fpic -g
|
|||||||
|
|
||||||
|
|
||||||
LIBSDIR=-L/usr/lib -L./Libs
|
LIBSDIR=-L/usr/lib -L./Libs
|
||||||
# INCLUDEDIR=-I/usr/include -I. -I./LibCell -I./LibList
|
INCLUDEDIR=-I/usr/include -I. -I./LibAutomaton
|
||||||
INCLUDEDIR=-I/usr/include -I. -I./LibList
|
|
||||||
|
|
||||||
#Exe test variables
|
#Exe test variables
|
||||||
TARGET=main.exe
|
TARGET=main.exe
|
||||||
@ -17,31 +16,26 @@ SOURCE=main
|
|||||||
SOURCECFILE=$(SOURCE:=.c)
|
SOURCECFILE=$(SOURCE:=.c)
|
||||||
SOURCEOFILE=$(SOURCE:=.o)
|
SOURCEOFILE=$(SOURCE:=.o)
|
||||||
|
|
||||||
#Library variables
|
DEPENDENCELIST=libAutomaton.so
|
||||||
# DEPENDENCE=libCellElement.so
|
DEPENDENCENAMELIST=Automaton
|
||||||
# DEPENDENCENAME=CellElement
|
|
||||||
|
|
||||||
DEPENDENCELIST=libList.so
|
|
||||||
DEPENDENCENAMELIST=List
|
|
||||||
|
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
#Generating the main.exe
|
#Generating the main.exe
|
||||||
$(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib
|
$(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib
|
||||||
@echo "\n Generating the " $(TARGET) " binary"
|
@echo "\n Generating the " $(TARGET) " binary"
|
||||||
# $(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAME) -l$(DEPENDENCENAMELIST) -o $(TARGET)
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
$(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET)
|
$(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET)
|
||||||
|
|
||||||
#Generating the library binary
|
#Generating the library binary
|
||||||
lib:
|
lib:
|
||||||
@echo "\n Generating the automaton library binary"
|
@echo "\n Generating the automaton library binary"
|
||||||
mkdir -p Libs
|
|
||||||
# $(MAKE) -C LibCell
|
# $(MAKE) -C LibCell
|
||||||
|
|
||||||
$(DEPENDENCELIST):
|
$(DEPENDENCELIST):
|
||||||
@echo "\n Generating the list library binary"
|
@echo "\n Generating the automaton library binary"
|
||||||
$(MAKE) -C LibList
|
mkdir -p Libs
|
||||||
|
$(MAKE) -C LibAutomaton
|
||||||
|
|
||||||
|
|
||||||
#Generating object files
|
#Generating object files
|
||||||
@ -54,5 +48,4 @@ $(DEPENDENCELIST):
|
|||||||
clean:
|
clean:
|
||||||
@echo "\n Cleaning"
|
@echo "\n Cleaning"
|
||||||
rm -rf *.o ./Libs/*.so *.exe
|
rm -rf *.o ./Libs/*.so *.exe
|
||||||
$(MAKE) -C LibCell clean
|
$(MAKE) -C LibAutomaton clean
|
||||||
$(MAKE) -C LibList clean
|
|
||||||
|
Loading…
Reference in New Issue
Block a user