FloatImg4PythonBinding/src/lib/Makefile

73 lines
1.3 KiB
Makefile
Raw Normal View History

2019-03-03 16:22:55 +01:00
#
# building the base library
#
LIB_DIR = ../../build/lib
STATIC_LIB = $(LIB_DIR)/libfloatimg.a
OBJ_DIR = ../../build/obj
DYN_OBJ = $(OBJ_DIR)/libfloatimg-lib.o
2021-03-21 09:02:55 +01:00
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
2019-12-18 15:27:06 +01:00
2019-03-03 16:22:55 +01:00
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
2019-09-09 16:02:44 +02:00
fimg-timers.o operators.o fimg-2gray.o \
2019-11-12 00:20:28 +01:00
interpolate.o fimg-compare.o contrast.o
2019-09-09 16:02:44 +02:00
2019-03-03 16:22:55 +01:00
DEPS = Makefile ../floatimg.h
# modify it 'as you like'
AR=ar
all: $(OBJS) $(STATIC_LIB) $(DYN_OBJ)
2019-03-03 16:22:55 +01:00
# t: t.c ../libfloatimg.a $(DEPS)
# gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -lm -o $@
2019-03-03 16:22:55 +01:00
clean:
rm -rf $(OBJS) $(STATIC_LIB) $(DYN_OBJ)
2019-03-03 16:22:55 +01:00
# --------------------------------------------
$(STATIC_LIB): $(OBJS)
mkdir -p $(LIB_DIR)
2019-03-03 16:22:55 +01:00
$(AR) r $@ $?
$(DYN_OBJ): $(OBJS) # verbosity.o
mkdir -p $(OBJ_DIR)
ld -Ur -o $@ $?
2019-03-03 16:22:55 +01:00
fimg-core.o: fimg-core.c $(DEPS)
gcc $(COPT) -c $<
2019-09-10 01:31:48 +02:00
fimg-compare.o: fimg-compare.c $(DEPS)
gcc $(COPT) -c $<
fimg-2gray.o: fimg-2gray.c $(DEPS)
gcc $(COPT) -c $<
2019-08-08 17:16:20 +02:00
operators.o: operators.c $(DEPS)
gcc $(COPT) -c $<
2019-11-12 00:20:28 +01:00
contrast.o: contrast.c $(DEPS)
gcc $(COPT) -c $<
2019-09-09 16:02:44 +02:00
interpolate.o: interpolate.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 $<
# --------------------------------------------