forked from ycjuan/libffm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.win
More file actions
26 lines (18 loc) · 697 Bytes
/
Makefile.win
File metadata and controls
26 lines (18 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CXX = cl.exe
CFLAGS = /nologo /O2 /EHsc /D "_CRT_SECURE_NO_DEPRECATE" /D "USEOMP" /D "USESSE" /openmp
TARGET = windows
all: $(TARGET) $(TARGET)\ffm-train.exe $(TARGET)\ffm-predict.exe
$(TARGET)\ffm-predict.exe: ffm.h ffm-predict.cpp ffm.obj timer.obj
$(CXX) $(CFLAGS) ffm-predict.cpp ffm.obj timer.obj -Fe$(TARGET)\ffm-predict.exe
$(TARGET)\ffm-train.exe: ffm.h ffm-train.cpp ffm.obj timer.obj
$(CXX) $(CFLAGS) ffm-train.cpp ffm.obj timer.obj -Fe$(TARGET)\ffm-train.exe
ffm.obj: ffm.cpp ffm.h
$(CXX) $(CFLAGS) -c ffm.cpp
timer.obj: timer.cpp timer.h
$(CXX) $(CFLAGS) -c timer.cpp
.PHONY: $(TARGET)
$(TARGET):
-mkdir $(TARGET)
clean:
-erase /Q *.obj *.exe $(TARGET)\.
-rd $(TARGET)