projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow control of pass-through of vhosts for virt_db
[metaproxy-moved-to-github.git]
/
example-module
/
Makefile
diff --git
a/example-module/Makefile
b/example-module/Makefile
index
b966052
..
63810a2
100644
(file)
--- a/
example-module/Makefile
+++ b/
example-module/Makefile
@@
-1,9
+1,13
@@
CONFIG=../../yazpp/yazpp-config
SO=metaproxy_filter_myfilter.so
CONFIG=../../yazpp/yazpp-config
SO=metaproxy_filter_myfilter.so
+
+all: $(SO)
+
$(SO): filter_myfilter.cpp
$(SO): filter_myfilter.cpp
- $(CXX) -shared -nostdlib `$(CONFIG) --cflags` -I ../src $< -o $(SO) ../src/.libs/libmetaproxy.so
+ $(CXX) -shared `$(CONFIG) --cflags` -fPIC -I ../src $< -o $(SO) ../src/.libs/libmetaproxy.so -ldl
clean:
clean:
- rm $(SO)
-run: $(SO)
+ rm -f *.so
+
+run: all
../src/metaproxy -c config.xml
../src/metaproxy -c config.xml