blob: 5e171242cb41936696b894b82ce0ec3fe6128f7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 $@ $^
|