From 4ae1987c33b2df7bf602ec5a0e9c5436f58ac14b Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sat, 12 Nov 2022 20:44:16 -0800 Subject: [PATCH] Teach makeright to compile for SDL display on MacOS on x86_64 CPU --- bin/makefile-darwin.x86_64-sdl | 19 +++++++++++++++++++ bin/makeright | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 bin/makefile-darwin.x86_64-sdl diff --git a/bin/makefile-darwin.x86_64-sdl b/bin/makefile-darwin.x86_64-sdl new file mode 100644 index 0000000..b15e07b --- /dev/null +++ b/bin/makefile-darwin.x86_64-sdl @@ -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 diff --git a/bin/makeright b/bin/makeright index 9f2ab0c..1fde522 100755 --- a/bin/makeright +++ b/bin/makeright @@ -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 ;;