From 82208a8315b3d2ec355e3329aa588eea2b064aa6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Mar 2010 09:59:54 +0200 Subject: Reorganize the directory structure --- odb/makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 odb/makefile (limited to 'odb/makefile') diff --git a/odb/makefile b/odb/makefile new file mode 100644 index 0000000..9a5fab9 --- /dev/null +++ b/odb/makefile @@ -0,0 +1,23 @@ +GXX=g++-4.5 +PLUGIN_INC := $(shell $(GXX) -print-file-name=plugin) + +src := plugin.cxx +obj := $(src:.cxx=.o) + +odb.so: $(obj) + $(GXX) -shared -o $@ $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) + +%.o: %.cxx + $(GXX) -c -o $@ -fPIC $(CPPFLAGS) -I$(PLUGIN_INC)/include $(CXXFLAGS) $< + +# Test. +# +.PHONY: test +test: odb.so test.cxx + $(GXX) -x c++ -S -fplugin=./odb.so test.cxx + +# Clean. +# +.PHONY: clean +clean: + rm -f *.o odb.so -- cgit v1.1