diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..50862e2 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CXX=g++ +CC=gcc + +CXXFLAGS=-Wextra -Os -std=c++17 +LDFLAGS=-Wextra + +all: obj pilang + +obj: + mkdir -p obj + +pilang: obj/main.o + $(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS) + +obj/main.o: main.cpp + $(CXX) -c $^ -o $@ $(CXXFLAGS) + +clean: + rm -Rf ./obj/ + rm -f ./pilang +