1 #You must ensure nmake.exe, cl.exe, link.exe are in system path.
6 ##########################################
8 CFLAGS = -nologo -O2 -EHsc -I. -D __WIN32__ -D _CRT_SECURE_NO_DEPRECATE
11 all: $(TARGET)\train.exe $(TARGET)\predict.exe
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
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
19 linear.obj: linear.cpp linear.h
20 $(CXX) $(CFLAGS) -c linear.cpp
22 tron.obj: tron.cpp tron.h
23 $(CXX) $(CFLAGS) -c tron.cpp
26 -erase /Q *.obj $(TARGET)\.