Demos/Makefile.nodistutils
raw| 1 | PYHOME = $(HOME)/pkg/python/version |
| 2 | PYINCLUDE = \ |
| 3 | -I$(PYHOME)/include/python2.2 \ |
| 4 | -I$(PYHOME)/$(ARCH)/include/python2.2 |
| 5 | |
| 6 | %.c: %.pyx |
| 7 | ../bin/cython $< |
| 8 | |
| 9 | %.o: %.c |
| 10 | gcc -c -fPIC $(PYINCLUDE) $< |
| 11 | |
| 12 | %.so: %.o |
| 13 | gcc -shared $< -lm -o $@ |
| 14 | |
| 15 | all: primes.so spam.so numeric_demo.so |
| 16 | |
| 17 | clean: |
| 18 | @echo Cleaning Demos |
| 19 | @rm -f *.c *.o *.so *~ core core.* |
| 20 | @cd callback; $(MAKE) clean |
| 21 | @cd embed; $(MAKE) clean |