FloatImg4PythonBinding/tools/Makefile

37 lines
784 B
Makefile
Raw Normal View History

2019-03-03 16:22:55 +01:00
#
# makefile for floatimg tools
# use with caution
#
COPT = -Wall -fpic -g -DDEBUG_LEVEL=1
DEPS = ../floatimg.h ../libfloatimg.a Makefile
# ----------
2019-06-29 23:50:03 +02:00
all: fimg2pnm addtga2fimg mkfimg png2fimg fimgstats fimg2png \
addpnm2fimg
2019-05-24 17:40:13 +02:00
2019-03-03 16:22:55 +01:00
fimgstats: fimgstats.c $(DEPS)
gcc -g $< ../libfloatimg.a -o $@
mkfimg: mkfimg.c $(DEPS)
gcc -g $< ../libfloatimg.a -o $@
fimg2pnm: fimg2pnm.c $(DEPS)
gcc -g $< ../libfloatimg.a -o $@
fimg2png: fimg2png.c $(DEPS)
gcc -g $< ../libfloatimg.a -o $@
addtga2fimg: addtga2fimg.c $(DEPS)
gcc -g $< ../libfloatimg.a -limageSO -lm -o $@
2019-06-29 23:50:03 +02:00
addpnm2fimg: addpnm2fimg.c $(DEPS)
gcc -g $< ../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)
gcc -g $< ../libfloatimg.a -lpnglite -o $@