43 lines
970 B
Makefile
43 lines
970 B
Makefile
#
|
|
# compilation de la fonderie
|
|
#
|
|
|
|
COPT = -g -no-pie -Wall -DDEBUG_LEVEL=0 -Werror=parentheses
|
|
LIBS = -lfloatimg -lpnglite -lm
|
|
|
|
OBJS = fonctions.o sfx.o crapulator.o glitches.o metriques.o
|
|
DEPS = fonctions.h crapulator.h metriques.h glitches.h
|
|
|
|
all: fonderie interpolator
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
|
|
fonderie: fonderie.c ${DEPS} ${OBJS} Makefile
|
|
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
|
|
|
crapulator.o: crapulator.c ${DEPS} Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
fonctions.o: fonctions.c fonctions.h Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
sfx.o: sfx.c ${DEPS} Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
# ---------------------------------------------------------
|
|
#
|
|
# another way to brotch some pics...
|
|
#
|
|
|
|
metriques.o: metriques.[hc] Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
glitches.o: glitches.[hc] Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
interpolator: interpolator.c ${OBJS} Makefile
|
|
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
|
|
|
# ---------------------------------------------------------
|