FloatImg4PythonBinding/funcs/Makefile

35 lines
800 B
Makefile
Raw Normal View History

2019-03-04 02:22:55 +11:00
#---------------------------------------------------------------
2019-09-13 04:48:12 +11:00
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=1
2019-03-04 02:22:55 +11:00
DEPS = ../floatimg.h Makefile
2019-09-13 04:48:12 +11:00
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
fimg-libpnm.o
#---------------------------------------------------------------
t: t.c $(DEPS) ../libfloatimg.a
gcc $(COPT) $< ../libfloatimg.a -lnetpbm -o $@
2019-03-04 02:22:55 +11:00
#---------------------------------------------------------------
../libfloatimg.a: $(OBJS)
$(AR) r $@ $?
fimg-png.o: fimg-png.c $(DEPS)
gcc $(COPT) -c $<
fimg-tiff.o: fimg-tiff.c $(DEPS)
gcc $(COPT) -c $<
2019-09-13 04:48:12 +11:00
fimg-libpnm.o: fimg-libpnm.c $(DEPS)
gcc $(COPT) -c $<
2019-03-04 02:22:55 +11:00
misc-plots.o: misc-plots.c $(DEPS)
gcc $(COPT) -c $<
filtrage.o: filtrage.c $(DEPS)
gcc $(COPT) -c $<
2019-08-29 06:08:59 +11:00
utils.o: utils.c $(DEPS)
gcc $(COPT) -c $<