aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2a5eda8..6eb9b92 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,18 @@
-1brc: main.ha hashmap.ha
- hare build -o 1brc .
+JOBS ?= $(shell nproc)
+
+1brc: main.ha hashmap.ha pthread.ha
+ hare build -D JOBS=$(JOBS) -lpthread -j $(JOBS) -o 1brc .
measurements.txt:
./generate.py 1_000_000_000
+run: 1brc measurements.txt
+ ./1brc
+
clean:
rm -f 1brc
check:
hare test
-.PHONY: clean check
+.PHONY: run clean check