diff options
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 $@ $< |