diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..402060c --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CXX=g++ +CXXFLAGS=-std=c++17 -Wall -Wextra -Wpedantic -Werror +IFLAGS=-I inc +SOURCES=*.cpp + +.PHONY: all +all: debug release + +debug: $(SOURCES) + $(CXX) $^ $(CXXFLAGS) $(IFLAGS) -g -o $@ + +release: $(SOURCES) + $(CXX) $^ $(CXXFLAGS) $(IFLAGS) -O3 -o $@ + +.PHONY: clean +clean: + rm debug release diff --git a/Circle.hpp b/inc/Circle.hpp similarity index 100% rename from Circle.hpp rename to inc/Circle.hpp diff --git a/Rectangle.hpp b/inc/Rectangle.hpp similarity index 100% rename from Rectangle.hpp rename to inc/Rectangle.hpp diff --git a/Shape.hpp b/inc/Shape.hpp similarity index 100% rename from Shape.hpp rename to inc/Shape.hpp diff --git a/Square.hpp b/inc/Square.hpp similarity index 100% rename from Square.hpp rename to inc/Square.hpp