FloatImg4PythonBinding/lib/Makefile

36 lines
655 B
Makefile
Raw Normal View History

2019-03-04 02:22:55 +11:00
#
# 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
# --------------------------------------------
../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 $<
# --------------------------------------------