Permalink
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (52 sloc) 2.05 KB
#PYTHON=python2.5
#PYPREFIX=/usr
PYTHON=python2.6
PYPREFIX=/usr/local/stow/python-2.6.1-dbg
CFLAGS=-Wall -g -fno-strict-aliasing -Wstrict-prototypes $(COPT) -Werror $(INCLUDE)
#INCLUDE=-I/home/agthorr/Python-3.0/Include -I/home/agthorr/Python-3.0/ #-I/home/agthorr/mypython-3.0/Include/ -I/home/agthorr/mypython-3.0/
INCLUDE=-I$(PYPREFIX)/include/$(PYTHON)
CC=gcc #-L/home/agthorr/Python-3.0
#COPT=-O3 -DLIMIT=128 -DNDEBUG=1 # For performance
#COPT=-fno-inline -pg -O3 -DLIMIT=128 -DNDEBUG=1# -ftest-coverage -fprofile-arcs # For profiling
COPT=-DLIMIT=8 -DPy_DEBUG=1 # For debug mode
LDFLAGS=-g -shared $(COPT)
DLLFLAGS=-Wl,--enable-auto-image-base
LD=$(CC)
LOADLIBES=-L$(PYPREFIX)/lib -L$(PYPREFIX)/lib/$(PYTHON)/config/ -l$(PYTHON).dll
blist.dll: blist.o
$(LD) $(LDFLAGS) $(DLLFLAGS) -o $@ $< $(LOADLIBES)
blist.so: blist.o
$(LD) $(LDFLAGS) -o $@ $< $(LOADLIBES)
clean:
rm -f *.o *.so *.dll
egg:
$(PYTHON) setup.py register
rm -f dist/*.asc
$(PYTHON) setup.py sdist upload -s
rsync -e ssh dist/* stutzbachenterprises.com:stutzbachenterprises/html/blist/
bdist_egg:
CFLAGS='-O3 -fno-strict-aliasing' $(PYTHON) setup.py build -f
rm -f dist/*.asc
$(PYTHON) setup.py bdist_egg upload -s
html:
rst2html README.rst
speed:
$(PYTHON) speed_test.py
rsync -e ssh -r fig/* stutzbachenterprises.com:stutzbachenterprises/html/fig/
test: COPT=-DLIMIT=8 -DPy_DEBUG=1
test: LOADLIBES=-l$(PYTHON) -L/bin
test: clean blist.so
$(PYTHON)-dbg test_blist.py
testing: test.o blist.o
$(LD) --static -pg test.o blist.o -o testing $(LOADLIBES)
win:
/cygdrive/c/Python26/python.exe setup.py bdist_wininst
/cygdrive/c/Python27/python.exe setup.py bdist_wininst
/cygdrive/c/Python31/python.exe setup.py bdist_wininst
/cygdrive/c/Python32/python.exe setup.py bdist_wininst
gpg --detach-sign -a dist/blist-$(VERSION).win32-py2.6.exe
gpg --detach-sign -a dist/blist-$(VERSION).win32-py2.7.exe
gpg --detach-sign -a dist/blist-$(VERSION).win32-py3.1.exe
gpg --detach-sign -a dist/blist-$(VERSION).win32-py3.2.exe
winegg:
/cygdrive/c/Python26/python.exe setup.py bdist_egg upload -s