boilerplate for plasmas

This commit is contained in:
tth
2021-02-03 19:33:38 +01:00
parent 1b24c65877
commit 75f36c0f6a
6 changed files with 67 additions and 19 deletions

View File

@@ -1,19 +1,16 @@
#---------------------------------------------------------------
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=1
DEPS = ../floatimg.h Makefile
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
fimg-libpnm.o rampes.o sfx0.o geometry.o rotate.o \
equalize.o fimg-fits.o saturation.o histogram.o \
hsv.o classif.o contour2x2.o qsortrgb.o exporter.o \
displacement.o dithering.o
displacement.o dithering.o plasmas.o
#---------------------------------------------------------------
tests.o: tests.c tests.h $(DEPS)
gcc $(COPT) -c $<
t: t.c $(DEPS) ../libfloatimg.a tests.o
gcc $(COPT) $< \
tests.o \
@@ -23,7 +20,11 @@ t: t.c $(DEPS) ../libfloatimg.a tests.o
-ltiff \
-lz -lm -o $@
tests.o: tests.c tests.h $(DEPS)
gcc $(COPT) -c $<
#---------------------------------------------------------------
# upper-level functions
../libfloatimg.a: $(OBJS)
$(AR) r $@ $?
@@ -67,6 +68,8 @@ equalize.o: equalize.c $(DEPS)
dithering.o: dithering.c $(DEPS)
gcc $(COPT) -c $<
plasmas.o: plasmas.c $(DEPS)
gcc $(COPT) -c $<
sfx0.o: sfx0.c $(DEPS)
gcc $(COPT) -c $<