FloatImg4PythonBinding/tools/Makefile

57 lines
1.3 KiB
Makefile
Raw Normal View History

2019-03-03 16:22:55 +01:00
#
# makefile for floatimg tools
# use with caution
#
2019-08-10 18:37:52 +02:00
COPT = -Wall -fpic -g -DDEBUG_LEVEL=0 -lm
2019-03-03 16:22:55 +01:00
DEPS = ../floatimg.h ../libfloatimg.a Makefile
# ----------
2021-02-26 22:32:42 +01:00
all: fimg2pnm mkfimg png2fimg fimgstats fimg2png \
fimg2tiff fimg2text \
2019-11-29 17:06:40 +01:00
addpnm2fimg cumulfimgs fimgops fimgfx
2019-05-24 17:40:13 +02:00
2019-03-03 16:22:55 +01:00
fimgstats: fimgstats.c $(DEPS)
2019-07-03 14:54:23 +02:00
gcc $(COPT) $< ../libfloatimg.a -o $@
cumulfimgs: cumulfimgs.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-03 16:22:55 +01:00
mkfimg: mkfimg.c $(DEPS)
2019-07-03 14:54:23 +02:00
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-03 16:22:55 +01:00
2019-09-11 07:43:08 +02:00
fimgops: fimgops.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-11-29 17:06:40 +01:00
fimgfx: fimgfx.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-03 16:22:55 +01:00
fimg2pnm: fimg2pnm.c $(DEPS)
2019-07-03 14:54:23 +02:00
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-03 16:22:55 +01:00
fimg2png: fimg2png.c $(DEPS)
2020-01-23 12:38:19 +01:00
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -o $@
2019-03-03 16:22:55 +01:00
2021-02-26 22:32:42 +01:00
fimg2text: fimg2text.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -o $@
2020-08-22 12:31:46 +02:00
fimg2tiff: fimg2tiff.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -ltiff -o $@
2020-01-23 12:38:19 +01:00
#
# this tool require an external library
# http://la.buvette.org/devel/libimage/libimage.html
#
2019-09-10 15:39:33 +02:00
addtga2fimg: addtga2fimg.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -limageSO -lm -o $@
2019-03-03 16:22:55 +01:00
2019-06-29 23:50:03 +02:00
addpnm2fimg: addpnm2fimg.c $(DEPS)
2019-07-03 14:54:23 +02:00
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
2019-06-29 23:50:03 +02:00
2019-03-03 16:22:55 +01:00
# if "undefined reference to crc32" then "use -lz"
png2fimg: png2fimg.c $(DEPS)
2020-01-23 12:38:19 +01:00
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -o $@
2019-03-03 16:22:55 +01:00