Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 78c129e4a46a64625b53d61bd2b90fab > files > 323

python-cython-0.15-0.1mdv2010.2.i586.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.*