diff --git a/analytic-tools/Modules/Makefile b/analytic-tools/Modules/Makefile index 0958a85..e929803 100644 --- a/analytic-tools/Modules/Makefile +++ b/analytic-tools/Modules/Makefile @@ -3,7 +3,7 @@ include ../common.mk CPPFLAGS += -MMD -LIB = Lib.a +LIB = libisri.a SRCS = $(wildcard *.c) OBJS = $(patsubst %.c,%.o,$(SRCS)) DEPS := $(patsubst %.c,%.d,$(SRCS)) diff --git a/analytic-tools/use_lib.mk b/analytic-tools/use_lib.mk index a04fdbb..2051e4c 100644 --- a/analytic-tools/use_lib.mk +++ b/analytic-tools/use_lib.mk @@ -4,8 +4,6 @@ LOCAL_INCLUDE_DIR := $(abspath $(TOP)Modules) include $(TOP)/common.mk -LDFLAGS = $(LOCAL_INCLUDE_DIR)/Lib.a -lm - -# ld(1) needs the LDFLAGS at the end for some dumb reason. -%: %.c - $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(LDFLAGS) +# Add libisri, created in Modules/ +LDFLAGS = -L$(LOCAL_INCLUDE_DIR) +LDLIBS = -lisri -lm