aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-10 08:42:43 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-10 08:42:43 +0100
commit0b207132e1f195cc6d962e37392a8e2cb2b434d6 (patch)
treeb5054e1813e45b263882f60cb6dc207b13dfb51e /Makefile
parentbb20eddefe24a3528e46ab1c51a7e14e38277b65 (diff)
Make multithreading work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ccea193..69b46fb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++11 -O2 -fwrapv
+LDFLAGS = -pthread
.PHONY: all clean remake
@@ -13,7 +14,7 @@ remake: clean
roots: $(patsubst %.cpp,%.o,$(wildcard *.cpp))
- $(CXX) -o $@ $^
+ $(CXX) -o $@ $^ $(LDFLAGS)
%.o: %.cpp $(wildcard *.h)
$(CXX) $(CXXFLAGS) -c -o $@ $<