From 45db9977a0543700e943d6217f5772fa93e0dcaa Mon Sep 17 00:00:00 2001 From: Tokarak <63452145+Tokarak@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:16:55 +0100 Subject: [PATCH] Fix SDL include from sdl_gfx Resolves #332; for MacOS only. --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4acf1b66..5c9a2c0a 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,6 @@ # Run `brew install sdl12-compat sdl_gfx sdl_mixer sdl_ttf glew` # Run "make" to build HyperRogue as ./hyperrogue. # -# As a workaround to a build error, macOS users will have -# to manually edit `$(brew --prefix)/include/SDL/SDL_gfxPrimitives.h` at -# line 38 to use quote include. -# # For MSYS2 and MinGW-w64: # You might need to run commands such as "pacman -S mingw-w64-x86_64-SDL" # to install SDL and other required libraries. @@ -70,7 +66,7 @@ endif ifeq (${OS},osx) HOMEBREW_PREFIX := $(shell brew --prefix) - CXXFLAGS_EARLY += -DMAC -I$(HOMEBREW_PREFIX)/include + CXXFLAGS_EARLY += -DMAC -I$(HOMEBREW_PREFIX)/include -I$(HOMEBREW_PREFIX)/include/SDL EXE_EXTENSION := LDFLAGS_EARLY += -L$(HOMEBREW_PREFIX)/lib LDFLAGS_GL := -framework AppKit -framework OpenGL