Update Makefile for MacOS build.
This commit is contained in:
@@ -20,8 +20,9 @@ FLAGS = -Wall -Wextra -ggdb -fno-caret-diagnostics -fno-show-column -Wno-missing
|
||||
|
||||
ifeq ($(DETECTED_OS),macos)
|
||||
INCLUDE = -I./sdl/include/
|
||||
LIBS = ./sdl/lib/arm_macos/libSDL2.a -lm
|
||||
FRAMEWORKS = -framework IOKit -framework Cocoa -framework OpenGL
|
||||
LIBS = ./sdl/lib/arm-macos/libSDL2.a -lm
|
||||
FRAMEWORKS = -framework Cocoa -framework IOKit -framework CoreAudio -framework AudioToolbox -framework ForceFeedback -framework Carbon -framework GameController -framework Metal -framework QuartzCore -framework CoreHaptics
|
||||
|
||||
else ifeq ($(DETECTED_OS),linux)
|
||||
INCLUDE = -I./sdl/include/
|
||||
LIBS = ./sdl/lib/x86_64-linux/libSDL2.a -lm -lX11
|
||||
|
||||
+1
-1
@@ -395,7 +395,7 @@ S32 main(int argc, char *argv[])
|
||||
#endif // Also, __rdtsc is not available on MacOS ARM; I have not checked MacOS x64.
|
||||
|
||||
S32 MonitorRefreshHz = SDLGetWindowRefreshRate(Window);
|
||||
S32 GameUpdateHz = MonitorRefreshHz;
|
||||
S32 GameUpdateHz = MonitorRefreshHz / 2;
|
||||
F32 TargetSecondsPerFrame = 1.0f / (F32)GameUpdateHz;
|
||||
|
||||
game_controller_input *OldKeyboardController = GetController(OldInput, 0);
|
||||
|
||||
Reference in New Issue
Block a user