diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-08 16:51:16 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-08 16:56:26 +0100 |
commit | cef5b77d4e47d4a7ad00cad7e97397fa4e5391de (patch) | |
tree | 1c45cbb3ef4ac4ca3788951a548945be4b20c0a2 /Makefile |
Initial
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ccea193 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CXX = g++ +CXXFLAGS = -Wall -Wextra -std=c++11 -O2 -fwrapv + +.PHONY: all clean remake + +all: roots + +clean: + rm -f roots *.o + +remake: clean + $(MAKE) all + + +roots: $(patsubst %.cpp,%.o,$(wildcard *.cpp)) + $(CXX) -o $@ $^ + +%.o: %.cpp $(wildcard *.h) + $(CXX) $(CXXFLAGS) -c -o $@ $< |