2019-03-04 02:22:55 +11:00
|
|
|
#---------------------------------------------------------------
|
|
|
|
|
2021-04-23 20:08:05 +11:00
|
|
|
# Please, use the 'Gloabl.makefile' system !
|
|
|
|
|
|
|
|
|
2021-04-23 20:15:56 +11:00
|
|
|
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
|
2019-03-04 02:22:55 +11:00
|
|
|
DEPS = ../floatimg.h Makefile
|
2020-11-09 06:42:27 +11:00
|
|
|
|
2019-09-13 04:48:12 +11:00
|
|
|
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
|
2021-03-21 15:08:35 +11:00
|
|
|
fimg-libpnm.o rampes.o sfx0.o sfx1.o sfx2.o \
|
2021-03-21 19:02:55 +11:00
|
|
|
geometry.o rotate.o fimg-openexr.o \
|
2020-09-09 07:55:17 +11:00
|
|
|
equalize.o fimg-fits.o saturation.o histogram.o \
|
2020-10-27 02:45:36 +11:00
|
|
|
hsv.o classif.o contour2x2.o qsortrgb.o exporter.o \
|
2021-04-28 09:21:45 +11:00
|
|
|
displacement.o dithering.o plasmas.o incrustator.o
|
2019-09-13 04:48:12 +11:00
|
|
|
|
|
|
|
#---------------------------------------------------------------
|
|
|
|
|
2021-02-01 01:36:03 +11:00
|
|
|
t: t.c $(DEPS) ../libfloatimg.a tests.o
|
2020-11-09 06:42:27 +11:00
|
|
|
gcc $(COPT) $< \
|
2021-02-01 01:36:03 +11:00
|
|
|
tests.o \
|
2020-11-09 06:42:27 +11:00
|
|
|
-I/usr/include/netpbm/ \
|
|
|
|
-I/usr/include/cfitsio/ \
|
|
|
|
../libfloatimg.a -lnetpbm -lpnglite -lcfitsio \
|
|
|
|
-ltiff \
|
|
|
|
-lz -lm -o $@
|
2019-03-04 02:22:55 +11:00
|
|
|
|
2021-02-04 05:33:38 +11:00
|
|
|
tests.o: tests.c tests.h $(DEPS)
|
2021-02-20 14:18:22 +11:00
|
|
|
gcc $(COPT) -I/usr/include/netpbm -c $<
|
2021-02-04 05:33:38 +11:00
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
#---------------------------------------------------------------
|
2021-02-04 05:33:38 +11:00
|
|
|
# upper-level functions
|
2019-03-04 02:22:55 +11:00
|
|
|
|
|
|
|
../libfloatimg.a: $(OBJS)
|
|
|
|
$(AR) r $@ $?
|
|
|
|
|
2021-04-28 09:21:45 +11:00
|
|
|
# ###
|
|
|
|
|
|
|
|
incrustator.o: incrustator.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
displacement.o: displacement.c $(DEPS)
|
2020-10-27 02:45:36 +11:00
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
fimg-png.o: fimg-png.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2021-02-20 13:31:09 +11:00
|
|
|
fimg-bmp.o: fimg-bmp.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
fimg-tiff.o: fimg-tiff.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2021-03-21 19:02:55 +11:00
|
|
|
fimg-openexr.o: fimg-openexr.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-07-24 19:38:13 +11:00
|
|
|
fimg-fits.o: fimg-fits.c $(DEPS)
|
2020-11-09 06:42:27 +11:00
|
|
|
gcc $(COPT) -I/usr/include/cfitsio/ -c $<
|
2020-07-24 19:38:13 +11:00
|
|
|
|
2019-09-13 04:48:12 +11:00
|
|
|
fimg-libpnm.o: fimg-libpnm.c $(DEPS)
|
2020-11-09 06:42:27 +11:00
|
|
|
gcc $(COPT) -I/usr/include/netpbm -c $<
|
2019-09-13 04:48:12 +11:00
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
misc-plots.o: misc-plots.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
filtrage.o: filtrage.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
2019-08-29 06:08:59 +11:00
|
|
|
|
2020-02-14 06:44:22 +11:00
|
|
|
geometry.o: geometry.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-03-24 19:31:52 +11:00
|
|
|
rotate.o: rotate.c $(DEPS)
|
2020-03-26 19:12:25 +11:00
|
|
|
gcc $(COPT) -c $<
|
2020-03-24 19:31:52 +11:00
|
|
|
|
2020-07-28 17:19:38 +11:00
|
|
|
saturation.o: saturation.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-09-03 10:37:53 +11:00
|
|
|
histogram.o: histogram.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-04-12 08:18:33 +11:00
|
|
|
equalize.o: equalize.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-10-30 23:14:23 +11:00
|
|
|
dithering.o: dithering.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2021-02-04 05:33:38 +11:00
|
|
|
plasmas.o: plasmas.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
2020-10-30 23:14:23 +11:00
|
|
|
|
2020-02-08 04:01:28 +11:00
|
|
|
sfx0.o: sfx0.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2021-03-21 05:47:42 +11:00
|
|
|
sfx1.o: sfx1.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2021-03-21 15:08:35 +11:00
|
|
|
sfx2.o: sfx2.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-10-07 20:32:23 +11:00
|
|
|
contour2x2.o: contour2x2.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-01-04 01:39:11 +11:00
|
|
|
rampes.o: rampes.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-10-04 22:05:28 +11:00
|
|
|
classif.o: classif.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-10-08 20:24:29 +11:00
|
|
|
qsortrgb.o: qsortrgb.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-10-16 20:20:10 +11:00
|
|
|
exporter.o: exporter.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2020-10-08 20:24:29 +11:00
|
|
|
|
2020-09-09 07:55:17 +11:00
|
|
|
hsv.o: hsv.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-08-29 06:08:59 +11:00
|
|
|
utils.o: utils.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|