Added making directories in Makefile

This commit is contained in:
TriantaTV 2023-02-26 19:56:00 -06:00
parent 3c901e5f89
commit 805430a090

View File

@ -2,7 +2,10 @@ INC := -I include
STD := -std=c++11 STD := -std=c++11
SFML := -lsfml-graphics -lsfml-window -lsfml-system SFML := -lsfml-graphics -lsfml-window -lsfml-system
all: compile link all: dirs compile link
dirs:
mkdir bin build
compile: compile:
g++ $(INC) $(STD) -c -o build/main.o src/main.cpp g++ $(INC) $(STD) -c -o build/main.o src/main.cpp