mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-17 04:57:23 +00:00
On or before macOS Ventura's release, defaulting the @rpath to include /Library/Frameworks stopped. Since we expect the SDL2 framework to be installed there we must add a -rpath option. This should be backwards compatible with older macOS releases. (verified on Catalina but nothing older)
20 lines
478 B
Plaintext
20 lines
478 B
Plaintext
# Options for MacOS, x86 processor, SDL
|
|
|
|
CC = clang -m64 -target x86_64-apple-darwin $(CLANG_CFLAGS)
|
|
|
|
XFILES = $(OBJECTDIR)sdl.o
|
|
|
|
SDLFLAGS = -DSDL -F /Library/Frameworks
|
|
|
|
# OPTFLAGS is normally -O2.
|
|
OPTFLAGS = -O2 -g
|
|
DEBUGFLAGS = # -DDEBUG -DOPTRACE
|
|
DFLAGS = $(DEBUGFLAGS) $(SDLFLAGS) -DRELEASE=351
|
|
|
|
LDFLAGS = -rpath /Library/Frameworks -F /Library/Frameworks -framework SDL2
|
|
LDELDFLAGS =
|
|
|
|
OBJECTDIR = ../$(RELEASENAME)/
|
|
|
|
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldesdl
|