From 3adef4de7b82907997cb9fabd4246b819e533dfc Mon Sep 17 00:00:00 2001 From: swim67667 <150874399+Swim67667@users.noreply.github.com> Date: Wed, 24 Jun 2026 00:26:52 -0400 Subject: [PATCH] added macos makefile --- MakefileMacOS | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 MakefileMacOS diff --git a/MakefileMacOS b/MakefileMacOS new file mode 100644 index 0000000..bb2b7ee --- /dev/null +++ b/MakefileMacOS @@ -0,0 +1,25 @@ +CC=gcc + +SRC=src/main.c \ + src/world.c \ + src/player.c \ + src/physics.c \ + src/render.c \ + src/collision.c + +OUT=wrldbox + +# On macOS, Homebrew usually installs raylib to /opt/homebrew +INCLUDES=-Iinclude -I/opt/homebrew/include +LIBPATH=-Llib -L/opt/homebrew/lib + +CFLAGS=-O2 -Wall + +# macOS-specific flags replacing Linux X11 dependencies +LIBS=-lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo + +all: + $(CC) $(SRC) $(CFLAGS) $(INCLUDES) $(LIBPATH) -o $(OUT) $(LIBS) + +clean: + rm -f $(OUT) \ No newline at end of file