FloatImg/funcs/Makefile

161 lines
3.2 KiB
Makefile
Raw Normal View History

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