From 41cc27134610bc083725b09a82395362042d365a Mon Sep 17 00:00:00 2001 From: klmp200 Date: Tue, 27 Dec 2016 17:36:08 +0100 Subject: [PATCH] Ajout de sdl2 dans le makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5c8a299..927f498 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,13 @@ CC=gcc 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 #Exe test variables -TARGET=main.exe +TARGET=main SOURCE=main SOURCECFILE=$(SOURCE:=.c) @@ -25,7 +26,7 @@ all: $(TARGET) $(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib @echo "\n Generating the " $(TARGET) " binary" mkdir -p build - $(CC) $(SOURCEOFILE) $(LIBSDIR) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET) + $(CC) $(SOURCEOFILE) $(LIBSDIR) $(EXTLIBS) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET) #Generating the library binary lib: