X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=example-module%2FMakefile;h=63810a29943d33869b54316b36cf53e691beda82;hb=667464101c917a88273e48a447b1e4daead81b2a;hp=b96605237839a482e8053280226c2e005a7934a9;hpb=f2ad6d315729a024c75870d6761c77cbee570f00;p=metaproxy-moved-to-github.git diff --git a/example-module/Makefile b/example-module/Makefile index b966052..63810a2 100644 --- a/example-module/Makefile +++ b/example-module/Makefile @@ -1,9 +1,13 @@ CONFIG=../../yazpp/yazpp-config SO=metaproxy_filter_myfilter.so + +all: $(SO) + $(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: - rm $(SO) -run: $(SO) + rm -f *.so + +run: all ../src/metaproxy -c config.xml