CC=gcc PYTHON_INCLUDE=/usr/include/python2.5 PYTHON_LIBRARY=/usr/lib/python2.5 NUMPY_INCLUDE=$(PYTHON_LIBRARY)/site-packages/numpy/core/include/numpy/ GOTO_LIBRARY=/home/flatberg/GotoBLAS BLAS_LIBRARY=/usr/lib BLAS=blas GOTO=goto all: numpy_module.so numpy_module.so: numpy_module.o sympowerit.o $(CC) -Wall -shared numpy_module.o sympowerit.o -o _numpy_module.so -L$(PYTHON_LIBRARY) -lpython2.5 -L$(BLAS_LIBRARY) -l$(BLAS) -llapack -lg2c -lm numpy_module.o: numpy_module.c numpy_module.h $(CC) -fPIC -Wall -O2 -g -c -I$(PYTHON_INCLUDE) -I$(NUMPY_INCLUDE) numpy_module.c c_egines.o: sympowerit.c $(CC) -Wall -O2 -g -c sympowerit.c clean: -rm numpy_module.o sympowerit.o -rm -rf _numpy_module.so