2019-03-03 16:22:55 +01:00
|
|
|
#
|
|
|
|
# building the base library
|
|
|
|
#
|
|
|
|
|
2019-08-12 22:20:25 +02:00
|
|
|
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
|
2019-03-03 16:22:55 +01:00
|
|
|
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
|
2019-08-08 17:16:20 +02:00
|
|
|
fimg-timers.o operators.o
|
2019-03-03 16:22:55 +01:00
|
|
|
DEPS = Makefile ../floatimg.h
|
|
|
|
|
|
|
|
# modify it 'as you like'
|
|
|
|
AR=ar
|
|
|
|
|
|
|
|
all: $(OBJS) ../libfloatimg.a
|
|
|
|
|
2019-06-29 19:33:23 +02:00
|
|
|
t: t.c ../libfloatimg.a $(DEPS)
|
2019-08-08 17:16:20 +02:00
|
|
|
gcc $(COPT) $< ../libfloatimg.a -lm -o $@
|
2019-06-29 19:33:23 +02:00
|
|
|
|
2019-03-03 16:22:55 +01:00
|
|
|
# --------------------------------------------
|
|
|
|
|
|
|
|
../libfloatimg.a: $(OBJS)
|
|
|
|
$(AR) r $@ $?
|
|
|
|
|
|
|
|
fimg-core.o: fimg-core.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-08-08 17:16:20 +02:00
|
|
|
operators.o: operators.c $(DEPS)
|
|
|
|
gcc $(COPT) -c $<
|
|
|
|
|
2019-03-03 16:22:55 +01: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 $<
|
|
|
|
|
|
|
|
# --------------------------------------------
|