python_version=2.6 go: radixsort.so rm -f *.dat ./radixsorttest # unused, but nice to know it's there radixsort.py: radixsort.m4 m4 -Dm4py=1 < radixsort.m4 > radixsort.py radixsort.pyx: radixsort.m4 m4 -Dm4pyx=1 < radixsort.m4 > radixsort.pyx radixsort.c: radixsort.pyx cython radixsort.pyx radixsort.o: radixsort.c gcc -c -fPIC -I /usr/include/python$(python_version) radixsort.c radixsort.so: radixsort.o gcc -shared radixsort.o -o radixsort.so graph.ps: radix_sort.dat tim_sort.dat graph-ps.gp gnuplot graph-ps.gp clean: rm -f *.dat graph.ps radixsort.pyx radixsort.c *.so *.o radixsort.py