first shoot
This commit is contained in:
35
lib/Makefile
Normal file
35
lib/Makefile
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
# 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 $<
|
||||
|
||||
# --------------------------------------------
|
||||
Reference in New Issue
Block a user