Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-03-04 15:48:10 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-03-04 15:48:10 (GMT)
commite3f798c723efebaa9d06ff0de52af50d76d36967 (patch)
tree1683ca12a4c8c2cf577ddf979c87bccfd088bb5e /common/Util
parent656a061d12a3d257d569804dd10275783bfcc733 (diff)
Do not use hardcoded FLAGS
Diffstat (limited to 'common/Util')
-rw-r--r--common/Util/Clooper/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/common/Util/Clooper/Makefile b/common/Util/Clooper/Makefile
index 6ea2e2c..c929fed 100644
--- a/common/Util/Clooper/Makefile
+++ b/common/Util/Clooper/Makefile
@@ -1,20 +1,14 @@
CC=gcc
-CXXFLAGS+= -Wall -Werror -fPIC -O2 -finline
-LDFLAGS+= -lasound
-
-LDFLAGS+= -L/usr/local/lib -lcsound
-
-CPPFLAGS+=-I/home/james/cvs/sugar-jhbuild/build/include/python2.5
-LDFLAGS+=-L/home/james/cvs/sugar-jhbuild/build/lib
-
-CPPFLAGS+=-I/usr/include/python2.5
-LDFLAGS+=-lpython2.5
+CXXFLAGS = $(shell python-config --cflags) \
+ -Wall -Werror -fPIC -O2 -finline
+LDFLAGS+= $(python-config --libs) \
+ -lasound -lcsound
all : aclient.so
aclient.so : aclient.cpp audio.cpp
- g++ $(CPPFLAGS) $(CXXFLAGS) -shared -o $@ $< $(LDFLAGS)
+ g++ $(CXXFLAGS) -shared -o $@ $< $(LDFLAGS)
clean :
rm aclient.so