complicated build system is mandatory

This commit is contained in:
2020-12-29 16:40:26 +01:00
parent f39f7ec830
commit 1693ad9051
8 changed files with 89 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ OBJS = fonctions.o sfx.o crapulator.o glitches.o metriques.o \
filterstack.o
DEPS = fonctions.h crapulator.h metriques.h glitches.h sfx.h \
filterstack.h
filterstack.h crapdef.h crapstr.h
all: fonderie interpolator t
@@ -31,6 +31,16 @@ fonderie: fonderie.c ${DEPS} ${OBJS} Makefile
interpolator: interpolator.c ${DEPS} ${OBJS} Makefile
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
# ---------------------------------------------------------
#
# some files are generated, sorry.
#
crapdef.h: crapulors.liste Makefile craplist2h.awk
./craplist2h.awk < $< | tee $@
crapstr.h: crapulors.liste Makefile craplist2str.awk
./craplist2str.awk < $< | tee $@
# ---------------------------------------------------------
#
# a lot of silly functions