diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-02-18 23:47:00 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-02-20 00:03:07 (GMT) |
commit | 1c66573c30e9ebec4ad78dab282c702de12f9552 (patch) | |
tree | 0c2bac71eaa04844ddb1d5f918b953e3dadd82b7 /colorsc/Makefile | |
parent | b999a05ad78264d6b7975bf39c8297f36a514ed1 (diff) |
Support 24/32 screen depths; remove fake header and use real ones
Diffstat (limited to 'colorsc/Makefile')
-rw-r--r-- | colorsc/Makefile | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/colorsc/Makefile b/colorsc/Makefile index 3b0055b..87bfff0 100644 --- a/colorsc/Makefile +++ b/colorsc/Makefile @@ -1,11 +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 +LDFLAGS = $(shell pkg-config --libs gdk-x11-2.0) \ + $(shell pkg-config --libs gstreamer-0.10) \ + $(shell pkg-config --libs pygtk-2.0) \ + $(shell python-config --libs) + all: _colorsc.so clean: - rm -rf _colorsc.so *_wrap.cxx colorsc.py colorsc.pyc build + rm -rf _colorsc.so colorsc.cpp colorsc.py colorsc.pyc *.o -%_wrap.cxx: %.i - swig -c++ -python $< +%.cpp: %.i + swig -c++ -python -o $*.cpp $< -_colorsc.so: colorsc_wrap.cxx colorsc.h canvas.h canvas.cpp - python setup.py build_ext --inplace +canvas.o: colorsc.h canvas.h +_colorsc.so: colorsc.o canvas.o + $(CXX) -shared $(LDFLAGS) -o $@ $^ |