From: Wei-Lin Chiang Date: Sat, 1 Aug 2015 09:13:02 +0000 (+0800) Subject: Fix the python interface for windows X-Git-Tag: v210~2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0da0ff03244ca9bd844c2f97503395718a237834;p=liblinear Fix the python interface for windows Add find_parameter_C to linear.def, and add lib to all target in Makefile.win. --- diff --git a/Makefile.win b/Makefile.win index c4ad3bf..9b3b8c6 100644 --- a/Makefile.win +++ b/Makefile.win @@ -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 diff --git a/linear.def b/linear.def index 96e2620..33aeee6 100644 --- a/linear.def +++ b/linear.def @@ -19,3 +19,4 @@ EXPORTS get_decfun_coef @17 get_decfun_bias @18 check_regression_model @19 + find_parameter_C @20