# change PYTHON_25 to point to a 2.5 HEAD build # (a fairly recent HEAD is necessary) PYTHON_25=../../pyth/python/python PYTH_DIR=../../pyth/python/ all: _decimal.so run module: $(PYTHON_25) setup.py build cp build/lib*/_decimal.so . clean: rm -rf build/ rm _decimal.o _decimal.so >& /dev/null test: _decimal.so $(PYTHON_25) test_decimal.py run: _decimal.so $(PYTHON_25) -i run.py debug: _decimal.so gdb $(PYTHON_25) #_decimal.o: _decimal.c decimal.h # gcc -pthread -fno-strict-aliasing -g -std=c89 -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: _decimal.c $(PYTHON_25) setup.py build cp build/lib*/_decimal.so .