summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-02 11:12:29 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-02 11:12:29 +0200
commit6fba6e14e5e6d844f300635c8c27f7ec243608ba (patch)
tree80cab6518f462035ce92ca698b9b0e840cca34d7 /Makefile
parent490dc079c0374ee2a290a06c42e6ad7e9ca1fa22 (diff)
add multi-threaded benchmarks for NUMA evaluation and the likes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c6d7215..950d1a3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
+EXTRA_CFLAGS =
+ifdef pthread
+ EXTRA_CFLAGS = -DMULTITHREADED -pthread
+endif
+
mbw: mbw.c
- gcc -Wall -Wextra -pedantic -O2 -o mbw mbw.c
+ gcc -Wall -Wextra -pedantic -O2 ${EXTRA_CFLAGS} -o mbw mbw.c
.PHONY: clean
clean: