mirror of
https://gitlab.com/klmp200/LO27.git
synced 2024-11-22 16:23:21 +00:00
Ajout de sdl2 dans le makefile
This commit is contained in:
parent
46f9dbd5b3
commit
41cc271346
5
Makefile
5
Makefile
@ -5,12 +5,13 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89
|
CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89
|
||||||
|
|
||||||
|
EXTLIBS=`sdl2-config --cflags --libs`
|
||||||
|
|
||||||
LIBSDIR=-L/usr/lib -L./Libs
|
LIBSDIR=-L/usr/lib -L./Libs
|
||||||
INCLUDEDIR=-I/usr/include -I. -I./LibAutomaton
|
INCLUDEDIR=-I/usr/include -I. -I./LibAutomaton
|
||||||
|
|
||||||
#Exe test variables
|
#Exe test variables
|
||||||
TARGET=main.exe
|
TARGET=main
|
||||||
SOURCE=main
|
SOURCE=main
|
||||||
|
|
||||||
SOURCECFILE=$(SOURCE:=.c)
|
SOURCECFILE=$(SOURCE:=.c)
|
||||||
@ -25,7 +26,7 @@ all: $(TARGET)
|
|||||||
$(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib
|
$(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib
|
||||||
@echo "\n Generating the " $(TARGET) " binary"
|
@echo "\n Generating the " $(TARGET) " binary"
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
$(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET)
|
$(CC) $(SOURCEOFILE) $(LIBSDIR) $(EXTLIBS) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET)
|
||||||
|
|
||||||
#Generating the library binary
|
#Generating the library binary
|
||||||
lib:
|
lib:
|
||||||
|
Loading…
Reference in New Issue
Block a user