FloatImg/extras/Fonderie/Makefile

74 lines
1.8 KiB
Makefile
Raw Normal View History

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