added macos makefile
Some checks failed
Build Project / build (push) Has been cancelled

This commit is contained in:
swim67667
2026-06-24 00:26:52 -04:00
parent e8a6af63af
commit 3adef4de7b

25
MakefileMacOS Normal file
View File

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