From cef5b77d4e47d4a7ad00cad7e97397fa4e5391de Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 8 Mar 2017 16:51:16 +0100 Subject: Initial --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3-70-g09d2