1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-01 22:32:40 +00:00

Teach makeright to compile for SDL display on MacOS on x86_64 CPU

This commit is contained in:
Nick Briggs
2022-11-12 20:44:16 -08:00
parent 8c490df964
commit 4ae1987c33
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Options for MacOS, x86 processor, X windows
CC = clang -m64 $(CLANG_CFLAGS)
XFILES = $(OBJECTDIR)sdl.o
SDLFLAGS = -DSDL -I/Library/Frameworks/SDL2.framework/Headers
# OPTFLAGS is normally -O2.
OPTFLAGS = -O1 -g
DEBUGFLAGS = # -DDEBUG -DOPTRACE
DFLAGS = $(DEBUGFLAGS) $(SDLFLAGS) -DRELEASE=351
LDFLAGS = -F/Library/Frameworks -framework SDL2
LDELDFLAGS =
OBJECTDIR = ../$(RELEASENAME)/
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldesdl

View File

@@ -71,6 +71,9 @@ case "$display" in
x) releasename=${osversion}.${architecture}-${display}
ldename=ldex
;;
sdl) releasename=${osversion}.${architecture}-${display}
ldename=ldesdl
;;
*) echo "display-option: $display is not supported."
exit
;;