cleaning the Makefile

This commit is contained in:
Tonton Th 2020-11-05 18:17:14 +01:00
parent cd8346362e
commit 014b1cc47a
1 changed files with 5 additions and 5 deletions

View File

@ -1,20 +1,20 @@
COPT = -g -no-pie -Wall -O3 -DDEBUG_LEVEL=0 -Werror=parentheses
COPT = -g -pg -no-pie -Wall -DDEBUG_LEVEL=0 -Werror=parentheses
LIBS = -lfloatimg -lpnglite -lm
OBJS = fonctions.o sfx.o crapulator.o
DEPS = fonctions.h crapulator.h
fonderie: fonderie.c fonctions.h ${OBJS} Makefile
fonderie: fonderie.c ${DEPS} ${OBJS} Makefile
gcc ${COPT} $< ${OBJS} ${LIBS} -o $@
crapulator.o: crapulator.c ${DEPS}
crapulator.o: crapulator.c ${DEPS} Makefile
gcc ${COPT} -c $<
fonctions.o: fonctions.c fonctions.h Makefile
fonctions.o: fonctions.c ${DEPS} Makefile
gcc ${COPT} -c $<
sfx.o: sfx.c fonctions.h Makefile
sfx.o: sfx.c ${DEPS} Makefile
gcc ${COPT} -c $<
# ---------------------------------------------------------