More clever construction.
[sympyx.git] / Makefile
blob90f6fa2765cd4ec6c7f169d0ae376c0cc909db00
1 all: csympy.so
3 CFLAGS=-g
4 #CFLAGS=-O3
5 PYVER=2.5
7 csympy.c: csympy.pyx
8 cython --convert-range csympy.pyx
10 csympy.o: csympy.c
11 gcc -fPIC $(CFLAGS) -I/usr/include/python$(PYVER) -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include/ -c -o csympy.o csympy.c
13 csympy.so: csympy.o
14 gcc -shared csympy.o -o csympy.so -lglib-2.0
16 clean:
17 rm -f csympy.so csympy.o csympy.c csympy_api.h
18 rm -f *.pyc