diff options
| author | tomsmeding <tom.smeding@gmail.com> | 2017-03-10 08:42:43 +0100 |
|---|---|---|
| committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-10 08:42:43 +0100 |
| commit | 0b207132e1f195cc6d962e37392a8e2cb2b434d6 (patch) | |
| tree | b5054e1813e45b263882f60cb6dc207b13dfb51e /Makefile | |
| parent | bb20eddefe24a3528e46ab1c51a7e14e38277b65 (diff) | |
Make multithreading work
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 $@ $< |
