FloatImg4PythonBinding/tools/Makefile

40 lines
896 B
Makefile
Raw Normal View History

2019-03-04 02:22:55 +11:00
#
# makefile for floatimg tools
# use with caution
#
2019-08-11 03:37:52 +11:00
COPT = -Wall -fpic -g -DDEBUG_LEVEL=0 -lm
2019-03-04 02:22:55 +11:00
DEPS = ../floatimg.h ../libfloatimg.a Makefile
# ----------
2019-09-02 21:22:02 +11:00
all: fimg2pnm mkfimg png2fimg fimgstats fimg2png \
2019-07-03 23:54:23 +11:00
addpnm2fimg cumulfimgs
2019-05-25 02:40:13 +11:00
2019-03-04 02:22:55 +11:00
fimgstats: fimgstats.c $(DEPS)
2019-07-03 23:54:23 +11:00
gcc $(COPT) $< ../libfloatimg.a -o $@
cumulfimgs: cumulfimgs.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-04 02:22:55 +11:00
mkfimg: mkfimg.c $(DEPS)
2019-07-03 23:54:23 +11:00
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-04 02:22:55 +11:00
fimg2pnm: fimg2pnm.c $(DEPS)
2019-07-03 23:54:23 +11:00
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-04 02:22:55 +11:00
fimg2png: fimg2png.c $(DEPS)
2019-07-03 23:54:23 +11:00
gcc $(COPT) $< ../libfloatimg.a -o $@
2019-03-04 02:22:55 +11:00
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)
2019-07-03 23:54:23 +11:00
gcc $(COPT) $< ../libfloatimg.a -lpnglite -o $@
2019-03-04 02:22:55 +11:00