about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--libtokencap/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/libtokencap/Makefile b/libtokencap/Makefile
index 486c6c9e..97bbd2f5 100644
--- a/libtokencap/Makefile
+++ b/libtokencap/Makefile
@@ -20,28 +20,33 @@ VERSION     = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)
 
 CFLAGS      ?= -O3 -funroll-loops -I ../include/
 CFLAGS      += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign
-LDFLAGS     += -ldl
 
 ifeq "$(shell uname)" "Linux"
   TARGETS = libtokencap.so
+  LDFLAGS     += -ldl
 endif
 ifeq "$(shell uname)" "Darwin"
   TARGETS = libtokencap.so
+  LDFLAGS     += -ldl
 endif
 ifeq "$(shell uname)" "FreeBSD"
   TARGETS = libtokencap.so
+  LDFLAGS     += -ldl
 endif
 ifeq "$(shell uname)" "OpenBSD"
   TARGETS = libtokencap.so
+  LDFLAGS     += -ldl
 endif
 ifeq "$(shell uname)" "NetBSD"
   TARGETS = libtokencap.so
 endif
 ifeq "$(shell uname)" "DragonFly"
   TARGETS = libtokencap.so
+  LDFLAGS     += -ldl
 endif
 all: $(TARGETS)
 
+VPATH = ..
 libtokencap.so: libtokencap.so.c ../config.h
 	$(CC) $(CFLAGS) -shared -fPIC $< -o ../$@ $(LDFLAGS)