diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-05 17:28:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-05 17:28:58 +0200 |
commit | e721090795a766341464c4e3f8fbb6fa528a76f6 (patch) | |
tree | e10e70e9edb52a12c0f760b84d12207c778b0b71 /makefile |
Start tracking with git
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..0fb0966 --- /dev/null +++ b/makefile @@ -0,0 +1,23 @@ +GXX=g++-4.5 +PLUGIN_INC := $(shell $(GXX) -print-file-name=plugin) + +src := plugin.cxx +obj := $(src:.cxx=.o) + +sunrise.so: $(obj) + $(GXX) -shared -o $@ $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) + +%.o: %.cxx + $(GXX) -c -o $@ -fPIC $(CPPFLAGS) -I$(PLUGIN_INC)/include $(CXXFLAGS) $< + +# Test. +# +.PHONY: test +test: sunrise.so test.cxx + $(GXX) -x c++ -S -fplugin=./sunrise.so test.cxx + +# Clean. +# +.PHONY: clean +clean: + rm -f *.o sunrise.so |