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