blob: c0ead5243262ea88398c47532486dc4372cd17a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff --git a/python/Makefile b/python/Makefile
index 32268e7..dbc128f 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -11,8 +11,8 @@ LDFLAGS = -shared
all: svmc.so
-svmc.so: svmc_wrap.o ../svm.o
- $(CXX) $(LDFLAGS) -o svmc.so svmc_wrap.o ../svm.o
+svmc.so: svmc_wrap.o svm.o
+ $(CXX) $(LDFLAGS) -o svmc.so svmc_wrap.o svm.o
svmc_wrap.o: svmc_wrap.c ../svm.h
$(CXX) $(CFLAGS) -fPIC -c svmc_wrap.c
@@ -20,8 +20,8 @@ svmc_wrap.o: svmc_wrap.c ../svm.h
svmc_wrap.c: svmc.i
$(SWIG) -python -noproxy svmc.i
-../svm.o: ../svm.cpp ../svm.h
- cd ..; $(CXX) $(CFLAGS) -fPIC -c svm.cpp
+svm.o: ../svm.cpp ../svm.h
+ $(CXX) $(CFLAGS) -fPIC -c ../svm.cpp -o svm.o
clean:
rm -f *~ *.o *.so *.pyc *.pyo
|