X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=example-module%2FMakefile;h=c73d3620150bc07700556906193a86003148b587;hb=586d78659d671683f33ec55f4a7d32b28e345ccd;hp=63810a29943d33869b54316b36cf53e691beda82;hpb=804bb1e1d62375f7716d5e9fb496b4bb1410e6b6;p=metaproxy-moved-to-github.git diff --git a/example-module/Makefile b/example-module/Makefile index 63810a2..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` -fPIC -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 -f *.so + rm -f *.so mytest run: all ../src/metaproxy -c config.xml