Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 72e0913cefe7683427338e51dd70bbde > files > 203

python-cython-0.11.3-1mdv2009.1.x86_64.rpm

PYHOME = $(HOME)/pkg/python/version
PYINCLUDE = \
	-I$(PYHOME)/include/python2.2 \
	-I$(PYHOME)/$(ARCH)/include/python2.2

%.c:	%.pyx
	../../bin/cython $<

%.o:	%.c
	gcc -c -fPIC $(PYINCLUDE) $<

%.so:	%.o
	gcc -shared $< -lm -o $@

all:	cheese.so

clean:
	@echo Cleaning Demos/callback
	@rm -f *.c *.o *.so *~ core core.*