From 12ce6db05a69be594a7256161aa995072046dac6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 24 Apr 2021 16:02:53 +0100 Subject: added compilation for macos --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index edbf455..46828eb 100644 --- a/Makefile +++ b/Makefile @@ -4,11 +4,14 @@ FLAGS=-lm -lraylib .DEFAULT_GOAL := install -${PROG}: ${PROG}.c - ${CC} ${PROG}.c -o ${PROG} ${FLAGS} - install: ${PROG} cp ${PROG} ~/.local/bin/ +build: ${PROG}.c + ${CC} ${PROG}.c -o ${PROG} ${FLAGS} + +build-osx: ${PROG} + clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL libraylib.a ${PROG}.c -o ${PROG} + clean: ${PROG} rm ${PROG} -- cgit v1.2.1