summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-13 15:29:23 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-13 15:29:23 +0100
commite9bebe253fdecee009414bdce7ccdfba83f980e6 (patch)
tree49330d7108869ddfbe8682fb6f20ff79794f57b5 /Makefile
parent22f2335259594569ba4a95544939ef72f3d1bb9d (diff)
add simple cache benchmark application
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3569430..0860731 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,18 @@ CXXFLAGS = -std=c++14
TARGETS = src/app/${app}/main.cc src/os/object/cpp_helpers.cc src/os/object/outputstream.cc
+ifeq (${timer_cycles}, 1)
+ COMMON_FLAGS += -DTIMER_CYCLES
+endif
+
+ifeq (${timer_us}, 1)
+ COMMON_FLAGS += -DTIMER_US
+endif
+
+ifeq (${timer_s}, 1)
+ COMMON_FLAGS += -DTIMER_S
+endif
+
ifeq (${loop}, 1)
COMMON_FLAGS += -DWITH_LOOP
endif