mirror of
https://gitlab.com/klmp200/LO27.git
synced 2024-11-26 03:34:13 +00:00
Functionnal project
This commit is contained in:
parent
33a439646d
commit
c2fbc32f16
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
Libs/
|
||||
*.o
|
||||
*.exe
|
||||
build/
|
||||
|
@ -2,7 +2,7 @@ CC=gcc
|
||||
CFLAGS=-Wall -Werror -pedantic -fpic -g
|
||||
|
||||
|
||||
LIBSDIR=-L/usr/lib -L../Libs
|
||||
LIBSDIR=-L/usr/lib -L./Libs
|
||||
INCLUDEDIR=-I/usr/include -I.
|
||||
|
||||
#Library variables
|
||||
@ -14,7 +14,6 @@ LIBSOURCEOFILE=$(LIBSOURCE:=.o)
|
||||
#Generating the library binary
|
||||
$(LIBTARGET): $(LIBSOURCEOFILE)
|
||||
@echo "\n Generating the library binary"
|
||||
mkdir -p ../Libs
|
||||
$(CC) $(CFLAGS) -shared $(LIBSOURCEOFILE) -o ../Libs/$(LIBTARGET)
|
||||
|
||||
#Generating object files
|
||||
|
6
Makefile
6
Makefile
@ -7,7 +7,8 @@ CFLAGS=-Wall -Werror -pedantic -fpic -g
|
||||
|
||||
|
||||
LIBSDIR=-L/usr/lib -L./Libs
|
||||
INCLUDEDIR=-I/usr/include -I. -I./LibCell -I./LibList
|
||||
# INCLUDEDIR=-I/usr/include -I. -I./LibCell -I./LibList
|
||||
INCLUDEDIR=-I/usr/include -I. -I./LibList
|
||||
|
||||
#Exe test variables
|
||||
TARGET=main.exe
|
||||
@ -29,7 +30,8 @@ all: $(TARGET)
|
||||
$(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib
|
||||
@echo "\n Generating the " $(TARGET) " binary"
|
||||
# $(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAME) -l$(DEPENDENCENAMELIST) -o $(TARGET)
|
||||
$(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAMELIST) -o $(TARGET)
|
||||
mkdir -p build
|
||||
$(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET)
|
||||
|
||||
#Generating the library binary
|
||||
lib:
|
||||
|
Loading…
Reference in New Issue
Block a user