]> git.pld-linux.org Git - packages/fann.git/blob - fann-python.patch
- fix name _libfann library
[packages/fann.git] / fann-python.patch
1 diff -urN fann-1.2.0/python/makefile.gnu fann-1.2.0.new/python/makefile.gnu
2 --- fann-1.2.0/python/makefile.gnu      2004-10-09 13:56:57.000000000 +0200
3 +++ fann-1.2.0.new/python/makefile.gnu  2005-11-13 20:10:45.000000000 +0100
4 @@ -1,18 +1,18 @@
5  # This makefile was written to compile a distribution of pyfann for
6  # GNU platforms (cygwin included.)
7  
8 -TARGETS = _libfann.dll
9 +TARGETS = _libfann.so
10  
11 -PYTHON=python2.3
12 -LIBS=-L. -L/usr/local/lib -L/usr/bin -l$(PYTHON) ../src/fann*.o
13 +PYTHON=python2.4
14 +LIBS=-L. -L/usr/lib -L/usr/bin -l$(PYTHON) ../src/fann*.o
15  
16  all: $(TARGETS)
17  
18 -_%.dll: %_wrap.o fann_helper.o
19 -       gcc $(LIBS) -shared -dll $^ -o $@
20 +_%.so: %_wrap.o fann_helper.o
21 +       gcc $(LIBS) -shared $^ -o $@
22  
23  %.o: %.c 
24 -       gcc -c $< -I/usr/include/$(PYTHON)/
25 +       gcc -c $< -I/usr/include/$(PYTHON)/ -I../src/include/
26  
27  %_wrap.c: %.i 
28         swig -python $<
This page took 0.044676 seconds and 4 git commands to generate.