39 lines
727 B
Makefile
39 lines
727 B
Makefile
#
|
|
# building the base library
|
|
#
|
|
|
|
COPT = -Wall -fpic -g -pg -no-pie -DDEBUG_LEVEL=0
|
|
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
|
|
fimg-timers.o
|
|
DEPS = Makefile ../floatimg.h
|
|
|
|
# modify it 'as you like'
|
|
AR=ar
|
|
|
|
all: $(OBJS) ../libfloatimg.a
|
|
|
|
t: t.c ../libfloatimg.a $(DEPS)
|
|
gcc $(COPT) $< ../libfloatimg.a -o $@
|
|
|
|
# --------------------------------------------
|
|
|
|
../libfloatimg.a: $(OBJS)
|
|
$(AR) r $@ $?
|
|
|
|
fimg-core.o: fimg-core.c $(DEPS)
|
|
gcc $(COPT) -c $<
|
|
|
|
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 $<
|
|
|
|
# --------------------------------------------
|