]> granicus.if.org Git - liblinear/blob - Makefile.win
(no commit message)
[liblinear] / Makefile.win
1 #You must ensure nmake.exe, cl.exe, link.exe are in system path.
2 #VCVARS32.bat
3 #Under dosbox prompt
4 #nmake -f Makefile.win
5
6 ##########################################
7 CXXC = cl.exe
8 CFLAGS = -nologo -O2 -EHsc -I. -D __WIN32__ -D _CRT_SECURE_NO_DEPRECATE
9 TARGET = windows
10
11 all: $(TARGET)\train.exe $(TARGET)\predict.exe
12
13 $(TARGET)\train.exe: tron.obj linear.obj train.c blas\*.c
14         $(CXX) $(CFLAGS) -Fe$(TARGET)\train.exe tron.obj linear.obj train.c blas\*.c
15
16 $(TARGET)\predict.exe: tron.obj linear.obj predict.c blas\*.c
17         $(CXX) $(CFLAGS) -Fe$(TARGET)\predict.exe tron.obj linear.obj predict.c blas\*.c
18
19 linear.obj: linear.cpp linear.h
20     $(CXX) $(CFLAGS) -c linear.cpp
21
22 tron.obj: tron.cpp tron.h
23     $(CXX) $(CFLAGS) -c tron.cpp
24
25 clean:
26     -erase /Q *.obj $(TARGET)\.
27