-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
44 lines (34 loc) · 1.17 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
#
# LLAMA's top level makefile
#
TARGETS := benchmark examples tools utils
BENCHMARK_CORE_TARGETS := benchmark-memory benchmark-memory-wd \
benchmark-persistent benchmark-persistent-wd benchmark-slcsr \
benchmark-streaming
BENCHMARK_CORE_DEBUG_TARGETS := $(patsubst %,%_debug,${BENCHMARK_CORE_TARGETS})
BENCHMARK_OTHER_TARGETS := benchmark-w-memory
BENCHMARK_OTHER_DEBUG_TARGETS := $(patsubst %,%_debug,${BENCHMARK_OTHER_TARGETS})
BENCHMARK_TARGETS := ${BENCHMARK_CORE_TARGETS} ${BENCHMARK_CORE_DEBUG_TARGETS}\
${BENCHMARK_OTHER_TARGETS} ${BENCHMARK_OTHER_DEBUG_TARGETS}
ifdef TASK
BENCHMARK_BASE := bench-${TASK}
else
BENCHMARK_BASE := benchmark
endif
ifdef ONE_VT
BENCHMARK_BASE := ${BENCHMARK_BASE}-onevt
MFLAGS := ${MFLAGS} ONE_VT=${ONE_VT}
endif
ifdef FLAT_VT
BENCHMARK_BASE := ${BENCHMARK_BASE}-flatvt
MFLAGS := ${MFLAGS} FLAT_VT=${FLAT_VT}
endif
MFLAGS := ${MFLAGS} TASK=${TASK} DEBUG_NODE=${DEBUG_NODE}
.PHONY: all clean ${BENCHMARK_TARGETS}
all clean:
@for t in ${TARGETS}; do \
${MAKE} ${MFLAGS} -C "$$t" $@ || exit 1; \
done
${BENCHMARK_TARGETS}:
@${MAKE} ${MFLAGS} -C benchmark \
../bin/`echo "$@" | sed "s/benchmark/${BENCHMARK_BASE}/g"`