Cython has moved to github.
cython-devel
view Demos/embed/Makefile @ 2622:e7638a4a3d4a
Test for --embedded mode.
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Wed Oct 28 22:12:14 2009 -0700 (2 years ago) |
| parents | 75c97e04e73f |
| children | b60435de6367 |
line source
1 # Makefile for creating our standalone Cython program
2 PYVERSION=$(shell python -c "import sys; print sys.version[:3]")
3 PYPREFIX=$(shell python -c "import sys; print sys.prefix")
4 INCLUDES=-I$(PYPREFIX)/include/python$(PYVERSION)
6 embedded: embedded.o
7 gcc -o $@ $^ -lpython$(PYVERSION)
9 embedded.o: embedded.c
10 gcc -c $^ $(INCLUDES)
12 embedded.c: embedded.pyx
13 @python ../../cython.py --embed embedded.pyx
15 all: embedded
17 clean:
18 @echo Cleaning Demos/embed
19 @rm -f *~ *.o *.so core core.* *.c embedded
21 test: clean all
22 ./embedded > test.output
23 python assert_equal.py embedded.output test.output
