X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=example-module%2FMakefile;h=c73d3620150bc07700556906193a86003148b587;hb=586d78659d671683f33ec55f4a7d32b28e345ccd;hp=a352aed8610a78913340b95da9e8759b6c495a63;hpb=5a0f6c23f56d1df24e8ce09408bb68a0c2526b94;p=metaproxy-moved-to-github.git diff --git a/example-module/Makefile b/example-module/Makefile index a352aed..c73d362 100644 --- a/example-module/Makefile +++ b/example-module/Makefile @@ -1,15 +1,18 @@ CONFIG=../metaproxy-config SO=metaproxy_filter_myfilter.so -all: $(SO) +all: $(SO) mytest $(SO): filter_myfilter.cpp - echo $(LIBS) - $(CXX) -shared `$(CONFIG) --cflags` -fPIC -I ../src $< \ - -o $(SO) `$(CONFIG) --libs` + $(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