2020-11-07 11:29:45 +11:00
|
|
|
#
|
|
|
|
# compilation de la fonderie
|
|
|
|
#
|
2020-11-02 11:25:00 +11:00
|
|
|
|
2020-11-06 07:07:38 +11:00
|
|
|
COPT = -g -no-pie -Wall -DDEBUG_LEVEL=0 -Werror=parentheses
|
2020-11-02 11:25:00 +11:00
|
|
|
LIBS = -lfloatimg -lpnglite -lm
|
2020-11-10 13:58:18 +11:00
|
|
|
|
|
|
|
OBJS = fonctions.o sfx.o crapulator.o glitches.o metriques.o
|
|
|
|
DEPS = fonctions.h crapulator.h metriques.h glitches.h
|
2020-11-02 11:25:00 +11:00
|
|
|
|
2020-11-10 10:50:25 +11:00
|
|
|
all: fonderie interpolator
|
|
|
|
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
|
|
|
|
|
2020-11-06 04:17:14 +11:00
|
|
|
fonderie: fonderie.c ${DEPS} ${OBJS} Makefile
|
2020-11-10 04:32:29 +11:00
|
|
|
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
2020-11-02 11:25:00 +11:00
|
|
|
|
2020-11-06 04:17:14 +11:00
|
|
|
crapulator.o: crapulator.c ${DEPS} Makefile
|
2020-11-02 11:25:00 +11:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-11-07 11:29:45 +11:00
|
|
|
fonctions.o: fonctions.c fonctions.h Makefile
|
2020-11-02 11:25:00 +11:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-11-06 04:17:14 +11:00
|
|
|
sfx.o: sfx.c ${DEPS} Makefile
|
2020-11-02 11:25:00 +11:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
|
|
|
# ---------------------------------------------------------
|
2020-11-10 06:27:57 +11:00
|
|
|
#
|
2020-11-10 10:50:25 +11:00
|
|
|
# another way to brotch some pics...
|
|
|
|
#
|
2020-11-02 11:25:00 +11:00
|
|
|
|
2020-11-10 13:58:18 +11:00
|
|
|
metriques.o: metriques.[hc] Makefile
|
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
|
|
|
glitches.o: glitches.[hc] Makefile
|
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
|
|
|
interpolator: interpolator.c ${OBJS} Makefile
|
2020-11-10 10:50:25 +11:00
|
|
|
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
2020-11-02 11:25:00 +11:00
|
|
|
|
|
|
|
# ---------------------------------------------------------
|