git » fp-git.git » commit 86f45d6

added the pylib rule to build the python module

author ecalot
2005-03-25 11:35:17 UTC
committer ecalot
2005-03-25 11:35:17 UTC
parent b08a4b4410c1fb440278cb4311a0b786b30278f0

added the pylib rule to build the python module

PR/src/Makefile +11 -0

diff --git a/PR/src/Makefile b/PR/src/Makefile
index bbac51b..eae7e3b 100644
--- a/PR/src/Makefile
+++ b/PR/src/Makefile
@@ -210,3 +210,14 @@ getopt1.o: ports/getopt1.c
 	$(INFO) Porting the Unix-like getopt function \(second part\)...
 	$(CC) $(OPTIONS) -c ports/getopt1.c
 
+#python
+python.o: addons/python.c
+	$(INFO) Building the python interfaces
+	$(CC) -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/python2.3 -c addons/python.c $(INCLUDE)
+	
+pylib: python.o $(LIBOBJ)
+	$(INFO) Building the python module
+	$(MAKEDIR) addons/python
+	$(CC) -pthread -shared python.o $(LIBOBJ) -o addons/python/pr.so
+
+