diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -11,6 +11,8 @@ endif CHECK_CFLAGS = $(shell pkg-config check --cflags) CHECK_LDLIBS = $(shell pkg-config check --libs) +CURL_LDLIBS = -lcurl +EXPAT_LDLIBS = -lexpat .PHONY: all check clean @@ -24,9 +26,11 @@ clean: $(RM) dbfp_check $(RM) dbfp.o dbfp_check.o -libdbfp.so: LDFLAGS = -shared +libdbfp.so: LDFLAGS += -shared +libdbfp.so: LDLIBS += $(CURL_LDLIBS) +libdbfp.so: LDLIBS += $(EXPAT_LDLIBS) libdbfp.so: dbfp.o - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) dbfp_check: LDLIBS += $(CHECK_LDLIBS) dbfp_check: LDLIBS += -ldbfp -L. |