Fixed missing build folder on make

This commit is contained in:
Jonathan Moallem 2020-11-19 15:01:24 +11:00
parent 85f1dd7a1e
commit 57f0bf52b7

View File

@ -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)