]> git.pld-linux.org Git - packages/fann.git/blob - fann-python.patch
- BR: rpm-pythonprov
[packages/fann.git] / fann-python.patch
1 diff -urN fann-2.0.0/python/pyfann/Makefile fann-2.0.0.new/python/pyfann/Makefile
2 --- fann-2.0.0/python/pyfann/Makefile   2005-12-03 02:22:43.000000000 +0100
3 +++ fann-2.0.0.new/python/pyfann/Makefile       2010-11-27 17:49:34.672568903 +0100
4 @@ -3,17 +3,17 @@
5  
6  TARGETS = _libfann.so
7  
8 -PYTHON=python2.4
9 +PYTHON=python2.7
10  FANN_DIR="../.."
11 -LIBS=-L. -L/usr/local/lib -L/usr/bin -l$(PYTHON) $(FANN_DIR)/src/fann*.o
12 +LIBS=-L. -L/usr/lib -l$(PYTHON) $(FANN_DIR)/src/fann*.o
13  
14  all: $(TARGETS)
15         
16  _%.so: pyfann_wrap.o fann_helper.o
17 -       gcc $(LIBS) -shared -dll $^ -o $@
18 +       gcc $(LIBS) -shared $^ -o $@
19  
20  %.o: %.c 
21 -       gcc -c $< -I/usr/include/$(PYTHON)/ -I$(FANN_DIR)/src/include/
22 +       $(CC) $(CFLAGS) -c $< -I/usr/include/$(PYTHON)/ -I$(FANN_DIR)/src/include/
23  
24  pyfann_wrap.c: pyfann.i 
25         swig -python $<
This page took 0.09198 seconds and 3 git commands to generate.