2019-03-03 16:22:55 +01:00
|
|
|
#---------------------------------------------------------------
|
|
|
|
|
2020-01-03 19:38:00 +01:00
|
|
|
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
|
2019-03-03 16:22:55 +01:00
|
|
|
DEPS = ../floatimg.h Makefile
|
2019-09-12 19:48:12 +02:00
|
|
|
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
|
2020-01-03 15:39:11 +01:00
|
|
|
fimg-libpnm.o rampes.o
|
2019-09-12 19:48:12 +02:00
|
|
|
|
|
|
|
#---------------------------------------------------------------
|
|
|
|
|
|
|
|
t: t.c $(DEPS) ../libfloatimg.a
|
2019-12-13 18:18:07 +01:00
|
|
|
gcc $(COPT) $< ../libfloatimg.a -lnetpbm -lpnglite -lm -o $@
|
2019-03-03 16:22:55 +01:00
|
|
|
|
|
|
|
#---------------------------------------------------------------
|
|
|
|
|
|
|
|
../libfloatimg.a: $(OBJS)
|
|
|
|
$(AR) r $@ $?
|
|
|
|
|
|
|
|
fimg-png.o: fimg-png.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
fimg-tiff.o: fimg-tiff.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-09-12 19:48:12 +02:00
|
|
|
fimg-libpnm.o: fimg-libpnm.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-03-03 16:22:55 +01:00
|
|
|
misc-plots.o: misc-plots.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
filtrage.o: filtrage.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
2019-08-28 21:08:59 +02:00
|
|
|
|
2020-01-03 15:39:11 +01:00
|
|
|
rampes.o: rampes.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-08-28 21:08:59 +02:00
|
|
|
utils.o: utils.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|