From 57f0bf52b707c7a1417ae3966b824aaecea1a219 Mon Sep 17 00:00:00 2001 From: Jonathan Moallem Date: Thu, 19 Nov 2020 15:01:24 +1100 Subject: [PATCH] Fixed missing build folder on make --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)