-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (26 loc) · 1002 Bytes
/
Copy pathmakefile
File metadata and controls
36 lines (26 loc) · 1002 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
27
28
29
30
31
32
33
34
35
36
OUT = ./build
MK_DIR = mkdir -p $(OUT)
BENCH_DIR = ../../lib/benchmark
JITBUILDER_DIR = ../../lib/omr/jitbuilder/release/cpp
CXX = /usr/bin/g++
CXXFLAGS = --std=c++0x -fno-rtti -fPIC -Wno-write-strings -O3
HEADERS = -I. -I$(BENCH_DIR)/include -I../../lib/omr/include_core -I$(JITBUILDER_DIR)/include
BENCH_LD = -L$(BENCH_DIR)/build/src -lbenchmark -lpthread
JITBUILDER_LD = -L$(JITBUILDER_DIR) -ljitbuilder -ldl
main: NestedLoop.o main.o
$(MK_DIR)
$(CXX) $(CXXFLAGS) -o $(OUT)/$@ NestedLoop.o main.o $(JITBUILDER_LD)
bench: NestedLoop.o bench.o
$(MK_DIR)
$(CXX) $(CXXFLAGS) -o $(OUT)/$@ NestedLoop.o bench.o $(JITBUILDER_LD) $(BENCH_LD)
NestedLoop.o: NestedLoop.cpp
$(CXX) $(CXXFLAGS) $(HEADERS) -c $< -o $@
main.o: main.cpp
$(CXX) $(CXXFLAGS) $(HEADERS) -c $< -o $@
bench.o: bench.cpp
$(CXX) $(CXXFLAGS) $(HEADERS) -c $< -o $@
clean:
rm NestedLoop.o bench.o main.o
rm -rf $(OUT)
run-bench: bench
$(OUT)/bench --benchmark_report_aggregates_only --benchmark_repetitions=20