diff --git a/Makefile b/Makefile index 03c02e4..26c53e6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ -#https://opensource.com/article/18/8/what-how-makefile - buildfile = ./build/app macOSFrameworks = -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL -all: compile run clean +all: init compile run clean + +init: + mkdir -p build compile: clang++ -std=c++17 $(macOSFrameworks) -I ./include/ ./lib/libraylib.a ./src/main.cpp -o $(buildfile)