[Python-checkins] r46848 - sandbox/trunk/decimal-c/Makefile
mateusz.rukowicz
python-checkins at python.org
Sun Jun 11 04:12:37 CEST 2006
Author: mateusz.rukowicz
Date: Sun Jun 11 04:12:37 2006
New Revision: 46848
Modified:
sandbox/trunk/decimal-c/Makefile
Log:
This is how it should look like.
Modified: sandbox/trunk/decimal-c/Makefile
==============================================================================
--- sandbox/trunk/decimal-c/Makefile (original)
+++ sandbox/trunk/decimal-c/Makefile Sun Jun 11 04:12:37 2006
@@ -3,7 +3,7 @@
PYTHON_25=../../python/python
PYTH_DIR=../../python
-all: _decimal.o _decimal.so run
+all: _decimal.so run
module:
$(PYTHON_25) setup.py build
cp build/lib*/_decimal.so .
@@ -17,8 +17,11 @@
debug: _decimal.so
gdb $(PYTHON_25)
-_decimal.o: _decimal.c decimal.h
- gcc -pthread -fno-strict-aliasing -DNDEBUG -g -Wall -Wstrict-prototypes -fPIC -I${PYTH_DIR}/Include -I${PYTH_DIR} -c _decimal.c -o _decimal.o
-_decimal.so: _decimal.o
- gcc -pthread -shared _decimal.o -o _decimal.so
-
+#_decimal.o: _decimal.c decimal.h
+# gcc -pthread -fno-strict-aliasing -g -O1 -DNEDEBUG -Wall -Wstrict-prototypes -fPIC -I${PYTH_DIR}/Include -I${PYTH_DIR} -c _decimal.c -o _decimal.o
+#_decimal.so: _decimal.o
+# gcc -pthread -shared _decimal.o -g -o _decimal.so
+
+_decimal.so:
+ $(PYTHON_25) setup.py build
+ cp build/lib*/_decimal.so .
More information about the Python-checkins
mailing list