-
Notifications
You must be signed in to change notification settings - Fork 312
/
Makefile
72 lines (51 loc) · 2.3 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
INCFLAGS = -I/usr/local/include/ -I./src/
CPP = g++
CPPFLAGS = -g -O3 $(INCFLAGS) -fopenmp -Wall -Wno-strict-aliasing
LINKERFLAGS = -lz
DEBUGFLAGS = -g -ggdb $(INCFLAGS)
HEADERS=$(shell find . -name '*.hpp')
all: apps tests
apps: example_apps/connectedcomponents example_apps/pagerank example_apps/pagerank_functional example_apps/communitydetection example_apps/unionfind_connectedcomps example_apps/stronglyconnectedcomponents example_apps/trianglecounting example_apps/randomwalks example_apps/minimumspanningforest
als: example_apps/matrix_factorization/als_edgefactors example_apps/matrix_factorization/als_vertices_inmem
tests: tests/basic_smoketest tests/bulksync_functional_test tests/dynamicdata_smoketest tests/test_dynamicedata_loader
echo:
echo $(HEADERS)
clean:
@rm -rf bin/*
cd toolkits/collaborative_filtering/; make clean; cd ../../
cd toolkits/parsers/; make clean; cd ../../
cd toolkits/graph_analytics/; make clean; cd ../../
blocksplitter: src/preprocessing/blocksplitter.cpp $(HEADERS)
$(CPP) $(CPPFLAGS) src/preprocessing/blocksplitter.cpp -o bin/blocksplitter $(LINKERFLAGS)
sharder_basic: src/preprocessing/sharder_basic.cpp $(HEADERS)
@mkdir -p bin
$(CPP) $(CPPFLAGS) src/preprocessing/sharder_basic.cpp -o bin/sharder_basic $(LINKERFLAGS)
example_apps/% : example_apps/%.cpp $(HEADERS)
@mkdir -p bin/$(@D)
$(CPP) $(CPPFLAGS) -Iexample_apps/ [email protected] -o bin/$@ $(LINKERFLAGS)
myapps/% : myapps/%.cpp $(HEADERS)
@mkdir -p bin/$(@D)
$(CPP) $(CPPFLAGS) -Imyapps/ [email protected] -o bin/$@ $(LINKERFLAGS)
tests/%: src/tests/%.cpp $(HEADERS)
@mkdir -p bin/$(@D)
$(CPP) $(CPPFLAGS) src/[email protected] -o bin/$@ $(LINKERFLAGS)
graphlab_als: example_apps/matrix_factorization/graphlab_gas/als_graphlab.cpp
$(CPP) $(CPPFLAGS) example_apps/matrix_factorization/graphlab_gas/als_graphlab.cpp -o bin/graphlab_als $(LINKERFLAGS)
cf:
cd toolkits/collaborative_filtering/; bash ./test_eigen.sh;
if [ $$? -ne 0 ]; then exit 1; fi
cd toolkits/collaborative_filtering/; make
cf_test:
cd toolkits/collaborative_filtering/; make test;
cfd:
cd toolkits/collaborative_filtering/; make -f Makefile.debug
parsers:
cd toolkits/parsers/; make
parsersd:
cd toolkits/parsers/; make -f Makefile.debug
ga:
cd toolkits/graph_analytics/; make
ta:
cd toolkits/text_analysis/; make
docs: */**
doxygen conf/doxygen/doxygen.config