Updated Makefile config for MacOS.
This commit is contained in:
6
Makefile
6
Makefile
@@ -19,8 +19,8 @@ FLAGS = -Wall -Wextra -ggdb -fno-caret-diagnostics -fno-show-column -Wno-missing
|
|||||||
#-std=c99 -pedantic
|
#-std=c99 -pedantic
|
||||||
|
|
||||||
ifeq ($(DETECTED_OS),macos)
|
ifeq ($(DETECTED_OS),macos)
|
||||||
INCLUDE = $(shell pkg-config --cflags raylib)
|
INCLUDE = -I./raylib/include/
|
||||||
LIBS = $(shell pkg-config --libs raylib)
|
LIBS = ./raylib/lib/arm_macos/libraylib.a -lm
|
||||||
FRAMEWORKS = -framework IOKit -framework Cocoa -framework OpenGL
|
FRAMEWORKS = -framework IOKit -framework Cocoa -framework OpenGL
|
||||||
else ifeq ($(DETECTED_OS),linux)
|
else ifeq ($(DETECTED_OS),linux)
|
||||||
INCLUDE = -I./raylib/include/
|
INCLUDE = -I./raylib/include/
|
||||||
@@ -35,7 +35,7 @@ endif
|
|||||||
EXE=main
|
EXE=main
|
||||||
|
|
||||||
$(EXE): $(EXE).c
|
$(EXE): $(EXE).c
|
||||||
$(CC) $(FLAGS) $(UFLAGS) $(INCLUDE) $^ $(LIBS) -o $@
|
$(CC) $(FLAGS) $(UFLAGS) $(INCLUDE) $^ $(LIBS) $(FRAMEWORKS) -o $@
|
||||||
|
|
||||||
tags: $(OBJS)
|
tags: $(OBJS)
|
||||||
ctags -R *.h *.c
|
ctags -R *.h *.c
|
||||||
|
|||||||
Reference in New Issue
Block a user