From 91903e04dc7554d70df99dd725ddb8e576a6652b Mon Sep 17 00:00:00 2001 From: Bill Rossi Date: Mon, 20 Jan 2025 21:49:20 -0500 Subject: [PATCH] Different compiler flags for MacOS --- 01_text_adventure/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/01_text_adventure/Makefile b/01_text_adventure/Makefile index a1d96d4..13ee32c 100644 --- a/01_text_adventure/Makefile +++ b/01_text_adventure/Makefile @@ -1,5 +1,9 @@ CC=gcc -CFLAGS=-Wall -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 +ifeq ($(shell uname),Darwin) + CFLAGS=-Wall -lraylib -lm -lpthread -ldl -lX11 +else + CFLAGS=-Wall -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 +endif .PHONY: clean run