diff options
Diffstat (limited to 'pongc/Makefile')
-rw-r--r-- | pongc/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pongc/Makefile b/pongc/Makefile new file mode 100644 index 0000000..5e17124 --- /dev/null +++ b/pongc/Makefile @@ -0,0 +1,22 @@ +CXXFLAGS = $(shell pkg-config --cflags gdk-x11-2.0) \ + $(shell pkg-config --cflags gstreamer-0.10) \ + $(shell pkg-config --cflags pygtk-2.0) \ + $(shell python-config --cflags) \ + -fPIC -O2 +LDFLAGS = $(shell pkg-config --libs gdk-x11-2.0) \ + $(shell pkg-config --cflags gstreamer-0.10) \ + $(shell pkg-config --libs pygtk-2.0) \ + $(shell python-config --libs) + +all: _pongc.so + +clean: + rm -rf _pongc.so *_wrap.cxx pongc.py pongc.pyc *.o + +%_wrap.cpp: %.i + swig -c++ -python -o $*_wrap.cpp $< + +pongc.o: pongc.h + +_pongc.so: pongc.o pongc_wrap.o + $(CXX) -shared $(LDFLAGS) -o $@ $^ |