FloatImg/tools/Makefile

78 lines
1.9 KiB
Makefile
Raw Permalink Normal View History

2019-03-04 02:22:55 +11:00
#
# makefile for floatimg tools
# use with caution
#
2021-04-23 22:20:20 +11:00
# PLEASE ! update to the 'Global.makefile' concept !
#
2019-03-04 02:22:55 +11:00
2022-01-23 00:47:46 +11:00
COPT = -Wall -Wextra -fpic -g -DDEBUG_LEVEL=0
2019-03-04 02:22:55 +11:00
DEPS = ../floatimg.h ../libfloatimg.a Makefile
# ----------
2021-02-27 08:32:42 +11:00
all: fimg2pnm mkfimg png2fimg fimgstats fimg2png \
2021-04-03 19:46:00 +11:00
fimg2tiff fimg2text fimg2fits \
2021-04-06 04:20:36 +11:00
addpnm2fimg cumulfimgs fimgops fimgfx \
2023-11-29 21:25:43 +11:00
fimgmetadata fimgfilters \
2023-01-21 19:06:36 +11:00
fimghalfsize fimgextract
2019-05-25 02:40:13 +11:00
2023-11-29 21:25:43 +11:00
fimgfilters: fimgfilters.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2022-04-10 08:18:14 +11:00
fimgmetadata: fimgmetadata.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2023-01-21 19:06:36 +11:00
fimgextract: fimgextract.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2019-03-04 02:22:55 +11:00
fimgstats: fimgstats.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2019-07-03 23:54:23 +11:00
cumulfimgs: cumulfimgs.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lcfitsio \
-ltiff -lpnglite -lz -lm -o $@
2019-03-04 02:22:55 +11:00
mkfimg: mkfimg.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2019-03-04 02:22:55 +11:00
2019-09-11 16:43:08 +11:00
fimgops: fimgops.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2019-09-11 16:43:08 +11:00
2019-11-30 03:06:40 +11:00
fimgfx: fimgfx.c $(DEPS)
2022-05-17 17:30:20 +11:00
gcc $(COPT) $< ../libfloatimg.a \
-ltiff -lpnglite -lcfitsio -lm -o $@
2019-11-30 03:06:40 +11:00
2021-04-06 04:20:36 +11:00
fimghalfsize: fimghalfsize.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2021-04-06 04:20:36 +11:00
2019-03-04 02:22:55 +11:00
fimg2pnm: fimg2pnm.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2019-03-04 02:22:55 +11:00
2021-04-03 19:46:00 +11:00
fimg2fits: fimg2fits.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lcfitsio -o $@
2021-04-03 19:46:00 +11:00
2019-03-04 02:22:55 +11:00
fimg2png: fimg2png.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -lm -o $@
2019-03-04 02:22:55 +11:00
2021-02-27 08:32:42 +11:00
fimg2text: fimg2text.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2021-02-27 08:32:42 +11:00
2020-08-22 21:31:46 +11:00
fimg2tiff: fimg2tiff.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -ltiff -lm -o $@
2020-08-22 21:31:46 +11:00
2020-01-23 22:38:19 +11:00
#
# this tool require an external library
# http://la.buvette.org/devel/libimage/libimage.html
#
2019-09-11 00:39:33 +11:00
addtga2fimg: addtga2fimg.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -limageSO -lm -o $@
2019-03-04 02:22:55 +11:00
2019-06-30 08:50:03 +11:00
addpnm2fimg: addpnm2fimg.c $(DEPS)
2019-07-03 23:54:23 +11:00
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2019-06-30 08:50:03 +11:00
2019-03-04 02:22:55 +11:00
# if "undefined reference to crc32" then "use -lz"
png2fimg: png2fimg.c $(DEPS)
2021-05-16 21:18:26 +11:00
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -lm -o $@
2019-03-04 02:22:55 +11:00