2019-03-04 02:22:55 +11:00
|
|
|
#
|
|
|
|
# building the base library
|
|
|
|
#
|
|
|
|
|
2022-01-23 00:47:46 +11:00
|
|
|
COPT = -Wall -Wextra -fpic -g -no-pie -DDEBUG_LEVEL=0
|
2019-12-19 01:27:06 +11:00
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
|
2019-09-10 01:02:44 +11:00
|
|
|
fimg-timers.o operators.o fimg-2gray.o \
|
2022-03-19 11:21:58 +11:00
|
|
|
interpolate.o fimg-compare.o contrast.o \
|
2022-07-11 15:12:25 +11:00
|
|
|
metadata.o alphachan.o
|
2019-09-10 01:02:44 +11:00
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
DEPS = Makefile ../floatimg.h
|
|
|
|
|
|
|
|
# modify it 'as you like'
|
|
|
|
AR=ar
|
|
|
|
|
|
|
|
all: $(OBJS) ../libfloatimg.a
|
|
|
|
|
2019-06-30 04:33:23 +11:00
|
|
|
t: t.c ../libfloatimg.a $(DEPS)
|
2020-01-23 22:38:19 +11:00
|
|
|
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -lm -o $@
|
2019-06-30 04:33:23 +11:00
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
# --------------------------------------------
|
|
|
|
|
|
|
|
../libfloatimg.a: $(OBJS)
|
|
|
|
$(AR) r $@ $?
|
|
|
|
|
2022-07-11 15:12:25 +11:00
|
|
|
alphachan.o: alphachan.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
fimg-core.o: fimg-core.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-09-10 10:31:48 +11:00
|
|
|
fimg-compare.o: fimg-compare.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-08-24 22:24:01 +11:00
|
|
|
fimg-2gray.o: fimg-2gray.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-08-09 02:16:20 +11:00
|
|
|
operators.o: operators.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2022-03-19 11:21:58 +11:00
|
|
|
metadata.o: metadata.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-11-12 10:20:28 +11:00
|
|
|
contrast.o: contrast.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-09-10 01:02:44 +11:00
|
|
|
interpolate.o: interpolate.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-03-04 02:22:55 +11:00
|
|
|
fimg-pnm.o: fimg-pnm.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
fimg-file.o: fimg-file.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
fimg-math.o: fimg-math.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
fimg-timers.o: fimg-timers.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
|
|
|
# --------------------------------------------
|