Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/Clooper
diff options
context:
space:
mode:
authorJames <olpc@localhost.localdomain>2007-03-17 22:56:01 (GMT)
committer James <olpc@localhost.localdomain>2007-03-17 22:56:01 (GMT)
commitff558a42ff8d9d9e041be41eb734c0f8f34a4536 (patch)
treefabbe1bf479d3cb67d523c9245c9631395f33777 /Util/Clooper
parentfec8aed1a6d1b01d1314ab144bd5698c43266ed5 (diff)
more flexible to python version
Diffstat (limited to 'Util/Clooper')
-rw-r--r--Util/Clooper/Makefile14
-rw-r--r--Util/Clooper/aclient.cpp2
2 files changed, 12 insertions, 4 deletions
diff --git a/Util/Clooper/Makefile b/Util/Clooper/Makefile
index 85c439b..3b585f2 100644
--- a/Util/Clooper/Makefile
+++ b/Util/Clooper/Makefile
@@ -1,12 +1,20 @@
CC=gcc
-CXXFLAGS+=-g -Wall -Werror -fPIC -I/home/james/cvs/sugar-jhbuild/build/include #-O3 -finline
-LDFLAGS+= -L/home/james/cvs/sugar-jhbuild/build/lib -L/usr/local/lib -lpython2.5 -lcsound -lasound
+CXXFLAGS+=-g -Wall -Werror -fPIC -O3 -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.4
+LDFlAGS+=-lpython2.4
all : aclient.so
aclient.so : aclient.cpp
- g++ $(CXXFLAGS) $(PYTHON) -shared -o $@ $< $(LDFLAGS)
+ g++ $(CPPFLAGS) $(CXXFLAGS) -shared -o $@ $< $(LDFLAGS)
clean :
rm aclient.so
diff --git a/Util/Clooper/aclient.cpp b/Util/Clooper/aclient.cpp
index 07186c4..1129916 100644
--- a/Util/Clooper/aclient.cpp
+++ b/Util/Clooper/aclient.cpp
@@ -1,4 +1,4 @@
-#include <python2.5/Python.h>
+#include <Python.h>
#include <pthread.h>
#include <stdio.h>