-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathMakefile
31 lines (22 loc) · 979 Bytes
/
Makefile
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
27
28
29
30
31
CXX = g++
CXXFLAGS = -Wall -O3 -std=c++14 -march=native -fopenmp
TARGETS = bin/prepare-leak bin/prepare-similarity bin/prepare-counts bin/prepare-rivals
TARGETS += bin/prepare-viewed-ads bin/prepare-viewed-docs bin/prepare-group-viewed-docs
TARGETS += bin/export-vw-data bin/export-ffm-data bin/export-bin-data-p1 bin/export-bin-data-f1 bin/export-bin-data-f2 bin/export-bin-data-f3 bin/export-bin-data-f4 bin/export-bin-data-f5
TARGETS += bin/ffm
all: $(TARGETS)
bin/%.o: %.cpp
$(CXX) $(CXXFLAGS) $(DFLAG) -MMD -c -o $@ $<
bin/%: bin/%.o
$(CXX) $(CXXFLAGS) -o $@ $^ -lboost_iostreams -lboost_program_options
bin/ffm: bin/ffm-io.o bin/ffm-model.o bin/ffm-nn-model.o bin/ftrl-model.o bin/nn-model.o
bin/export-bin-data-p1: bin/ffm-io.o
bin/export-bin-data-f1: bin/ffm-io.o
bin/export-bin-data-f2: bin/ffm-io.o
bin/export-bin-data-f3: bin/ffm-io.o
bin/export-bin-data-f4: bin/ffm-io.o
bin/export-bin-data-f5: bin/ffm-io.o
-include bin/*.d
.PHONY: clean
clean:
rm bin/*