-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
43 lines (32 loc) · 962 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
32
33
34
35
36
37
38
39
40
41
CFLAGS=-Wall -O3 -DREST_LOG -msse4
all: x86
x86:
$(MAKE) --file MakeFoREST release \
MCXXFLAGS="-O3 -Wall -Werror -DARCH_X86 -DNDEBUG -lglog" \
CC="gcc" \
CXX="g++" \
GLOG_CONFIGURE=""
# Build lPowerProbe and offline benchmark
$(MAKE) --file MakeFoREST offline \
CXX="g++" \
CC="gcc"
# run offline script from make
$(MAKE) --file MakeFoREST offline-run
mic:
$(MAKE) --file MakeFoREST release \
CXX="icpc -mmic" \
CC="icc -mmic" \
MCXXFLAGS="-O3 -DARCH_MIC -DNDEBUG -lglog" \
GLOG_CONFIGURE="CC=icc CXX=icpc CXXFLAGS=-mmic LDFLAGS=-mmic CFLAGS=-mmic --host --host-alias x86_64"
# Build lPowerProbe and offline benchmark
$(MAKE) --file MakeFoREST offline \
CXX="icpc -mmic" \
CC="icc -mmic" \
MCXXFLAGS="-O3 -DARCH_MIC -DNDEBUG" \
$(MAKE) -C offline offline
# Build MIC library
$(MAKE) -C offline/lPowerProbe mic-libs
clean:
$(MAKE) -e --file MakeFoREST clean
distclean:
$(MAKE) -e --file MakeFoREST distclean