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