]> granicus.if.org Git - liblinear/commitdiff
Fix the python interface for windows
authorWei-Lin Chiang <b02902056@ntu.edu.tw>
Sat, 1 Aug 2015 09:13:02 +0000 (17:13 +0800)
committerWei-Lin Chiang <b02902056@ntu.edu.tw>
Sat, 1 Aug 2015 09:13:02 +0000 (17:13 +0800)
Add find_parameter_C to linear.def,
and add lib to all target in Makefile.win.

Makefile.win
linear.def

index c4ad3bf579cb32d638531da72cb5ac2340d22b58..9b3b8c6533cac2670baf10b8723fbcfd13e8235e 100644 (file)
@@ -2,7 +2,7 @@ CXX = cl.exe
 CFLAGS = /nologo /O2 /EHsc /I. /D _WIN64 /D _CRT_SECURE_NO_DEPRECATE
 TARGET = windows
 
-all: $(TARGET)\train.exe $(TARGET)\predict.exe
+all: $(TARGET)\train.exe $(TARGET)\predict.exe lib
 
 $(TARGET)\train.exe: tron.obj linear.obj train.c blas\*.c
        $(CXX) $(CFLAGS) -Fe$(TARGET)\train.exe tron.obj linear.obj train.c blas\*.c
@@ -20,5 +20,5 @@ lib: linear.cpp linear.h linear.def tron.obj
        $(CXX) $(CFLAGS) -LD linear.cpp tron.obj blas\*.c -Fe$(TARGET)\liblinear -link -DEF:linear.def 
 
 clean:
-        -erase /Q *.obj $(TARGET)\.
+        -erase /Q *.obj $(TARGET)\*.exe $(TARGET)\*.dll $(TARGET)\*.exp $(TARGET)\*.lib
 
index 96e262007d9e1aa05211de0284c0240d233e7621..33aeee67c267713ec97d7d71d52d282eb838b2fd 100644 (file)
@@ -19,3 +19,4 @@ EXPORTS
     get_decfun_coef @17
     get_decfun_bias @18
     check_regression_model  @19
+    find_parameter_C @20