X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=example-module%2FMakefile;h=a352aed8610a78913340b95da9e8759b6c495a63;hb=e6e0048fc813a45acdd712e7579ba846f936fa17;hp=b96605237839a482e8053280226c2e005a7934a9;hpb=f2ad6d315729a024c75870d6761c77cbee570f00;p=metaproxy-moved-to-github.git diff --git a/example-module/Makefile b/example-module/Makefile index b966052..a352aed 100644 --- a/example-module/Makefile +++ b/example-module/Makefile @@ -1,9 +1,15 @@ -CONFIG=../../yazpp/yazpp-config +CONFIG=../metaproxy-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 + echo $(LIBS) + $(CXX) -shared `$(CONFIG) --cflags` -fPIC -I ../src $< \ + -o $(SO) `$(CONFIG) --libs` clean: - rm $(SO) -run: $(SO) + rm -f *.so + +run: all ../src/metaproxy -c config.xml