aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-06-02 15:45:12 +0200
committercbdev <cb@cbcdn.com>2019-06-02 15:45:12 +0200
commitedcec9fa9086599d56bffe7fdb2c1f05ae7a3ad8 (patch)
tree4e2bb02bbe8a2db9d4f217a664e73c25c37c7633 /makefile
parentb9297647c68c963a977e2c18f421211e24f9e85a (diff)
downloadwebsocksy-edcec9fa9086599d56bffe7fdb2c1f05ae7a3ad8.tar.gz
websocksy-edcec9fa9086599d56bffe7fdb2c1f05ae7a3ad8.tar.bz2
websocksy-edcec9fa9086599d56bffe7fdb2c1f05ae7a3ad8.zip
File backend peer query
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile
index c389148..20b6579 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,5 @@
.PHONY: all clean plugins
-PLUGINPATH=plugins/
+PLUGINPATH?=plugins/
CFLAGS=-g -Wall -Wpedantic -DPLUGINS=\"$(PLUGINPATH)\"
LDLIBS=-lnettle -ldl
@@ -11,8 +11,9 @@ all: websocksy
plugins:
$(MAKE) -C plugins
+websocksy: LDFLAGS += -Wl,-export-dynamic
websocksy: websocksy.c websocksy.h $(OBJECTS) plugins
- $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(OBJECTS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) $< -o $@ $(OBJECTS)
clean:
$(RM) $(OBJECTS)