You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
323 B
20 lines
323 B
PYHOME = $(HOME)/pkg/python/version
|
|
PYINCLUDE = \
|
|
-I$(PYHOME)/include/python2.2 \
|
|
-I$(PYHOME)/$(ARCH)/include/python2.2
|
|
|
|
%.c: %.pyx
|
|
../../bin/pyrexc $<
|
|
|
|
%.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.*
|