2020-11-07 01:29:45 +01:00
|
|
|
#
|
2020-11-20 22:25:30 +01:00
|
|
|
# compilation de la fonderie, du crapulator
|
|
|
|
# et de tout le crap...
|
2020-11-07 01:29:45 +01:00
|
|
|
#
|
2020-11-02 01:25:00 +01:00
|
|
|
|
2020-11-25 14:38:39 +01:00
|
|
|
COPT = -g -fpic -no-pie -Wall -DDEBUG_LEVEL=0 -Werror=parentheses
|
2021-01-08 22:57:45 +01:00
|
|
|
LIBS = ../libfloatimg.a -ltiff -lpnglite -lm -lz -lcfitsio
|
2020-11-10 03:58:18 +01:00
|
|
|
|
2020-12-03 21:56:45 +01:00
|
|
|
OBJS = fonctions.o sfx.o crapulator.o glitches.o metriques.o \
|
2021-01-08 22:57:45 +01:00
|
|
|
filterstack.o single.o
|
2020-12-03 21:56:45 +01:00
|
|
|
|
|
|
|
DEPS = fonctions.h crapulator.h metriques.h glitches.h sfx.h \
|
2021-01-08 22:57:45 +01:00
|
|
|
filterstack.h crapdef.h crapstr.h single.h
|
2020-11-02 01:25:00 +01:00
|
|
|
|
2020-11-15 21:31:02 +01:00
|
|
|
all: fonderie interpolator t
|
|
|
|
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
|
2020-12-03 21:56:45 +01:00
|
|
|
t: t.c Makefile ${OBJS}
|
2021-01-08 22:57:45 +01:00
|
|
|
gcc ${COPT} $< ${OBJS} ${LIBS} -o $@
|
2020-11-10 00:50:25 +01:00
|
|
|
|
|
|
|
# ---------------------------------------------------------
|
2020-12-08 15:51:07 +01:00
|
|
|
#
|
2020-12-24 10:28:56 +01:00
|
|
|
# the two main programms
|
2020-12-08 15:51:07 +01:00
|
|
|
#
|
2020-11-10 00:50:25 +01:00
|
|
|
|
2020-11-05 18:17:14 +01:00
|
|
|
fonderie: fonderie.c ${DEPS} ${OBJS} Makefile
|
2020-11-09 18:32:29 +01:00
|
|
|
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
2020-11-02 01:25:00 +01:00
|
|
|
|
2020-12-08 15:51:07 +01:00
|
|
|
# another way to brotch some pics...
|
|
|
|
interpolator: interpolator.c ${DEPS} ${OBJS} Makefile
|
|
|
|
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
|
|
|
|
2020-12-29 16:40:26 +01:00
|
|
|
# ---------------------------------------------------------
|
|
|
|
#
|
2021-01-08 22:57:45 +01:00
|
|
|
# some files are magically generated, sorry.
|
2020-12-29 16:40:26 +01:00
|
|
|
#
|
|
|
|
crapdef.h: crapulors.liste Makefile craplist2h.awk
|
|
|
|
./craplist2h.awk < $< | tee $@
|
|
|
|
|
|
|
|
crapstr.h: crapulors.liste Makefile craplist2str.awk
|
|
|
|
./craplist2str.awk < $< | tee $@
|
|
|
|
|
2020-12-08 15:51:07 +01:00
|
|
|
# ---------------------------------------------------------
|
2020-12-24 10:28:56 +01:00
|
|
|
#
|
|
|
|
# a lot of silly functions
|
|
|
|
#
|
2020-11-05 18:17:14 +01:00
|
|
|
crapulator.o: crapulator.c ${DEPS} Makefile
|
2020-11-02 01:25:00 +01:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-11-07 01:29:45 +01:00
|
|
|
fonctions.o: fonctions.c fonctions.h Makefile
|
2020-11-02 01:25:00 +01:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-11-05 18:17:14 +01:00
|
|
|
sfx.o: sfx.c ${DEPS} Makefile
|
2020-11-02 01:25:00 +01:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2021-01-08 22:57:45 +01:00
|
|
|
single.o: single.c ${DEPS} Makefile
|
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-12-03 21:56:45 +01:00
|
|
|
filterstack.o: filterstack.c ${DEPS} Makefile
|
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-11-10 14:10:55 +01:00
|
|
|
metriques.o: metriques.c metriques.h Makefile
|
2020-11-10 03:58:18 +01:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-11-10 13:59:25 +01:00
|
|
|
glitches.o: glitches.c glitches.h Makefile
|
2020-11-10 03:58:18 +01:00
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2020-11-02 01:25:00 +01:00
|
|
|
# ---------------------------------------------------------
|