X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=example-module%2FMakefile;h=c73d3620150bc07700556906193a86003148b587;hb=152c01491a6c92308f779e8f42b1cdbc046358f3;hp=8264d1691914a985ee7a479643b0dae9696e6e63;hpb=a28906b37e77689e7f42f22c58da8e61acc794e6;p=metaproxy-moved-to-github.git diff --git a/example-module/Makefile b/example-module/Makefile index 8264d16..c73d362 100644 --- a/example-module/Makefile +++ b/example-module/Makefile @@ -1,13 +1,18 @@ -CONFIG=../../yazpp/yazpp-config +CONFIG=../metaproxy-config SO=metaproxy_filter_myfilter.so -all: $(SO) +all: $(SO) mytest $(SO): filter_myfilter.cpp - $(CXX) -shared `$(CONFIG) --cflags` -I ../src $< -o $(SO) ../src/.libs/libmetaproxy.so -ldl + $(CXX) -shared `$(CONFIG) --cflags` -fPIC $< \ + -o $@ `$(CONFIG) --libs` + +mytest: mytest.cpp + $(CXX) `$(CONFIG) --cflags` $< \ + -o $@ `$(CONFIG) --libs` clean: - rm *.so + rm -f *.so mytest run: all ../src/metaproxy -c config.xml