mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-07 03:16:02 +00:00
The makeright script and the makefile-* slices it depends are modified to allow easily specifying the RELEASE version number of the Maiko emulator to be built. The default version remains 351, but can be changed with e.g. RELEASE=201 ./makeright x The object directories and executables are NOT named with the version.
27 lines
662 B
Plaintext
27 lines
662 B
Plaintext
# Options for MacOS, arm64 (aka aarch64) processor, SDL
|
|
|
|
CC = clang -target aarch64-apple-darwin $(CLANG_CFLAGS)
|
|
|
|
XFILES = $(OBJECTDIR)sdl.o
|
|
|
|
#
|
|
# For SDL version 2
|
|
# -DSDL=2 in SDLFLAGS and -framework SDL2 in LDFLAGS
|
|
# For SDL version 3
|
|
# -DSDL=3 in SDLFLAGS and -framework SDL3 in LDFLAGS
|
|
#
|
|
|
|
SDLFLAGS = -DSDL=2 -F /Library/Frameworks
|
|
|
|
# OPTFLAGS is normally -O2.
|
|
OPTFLAGS = -O2 -g
|
|
DEBUGFLAGS = # -DDEBUG -DOPTRACE
|
|
DFLAGS = $(DEBUGFLAGS) $(SDLFLAGS) -DRELEASE=$(RELEASE)
|
|
|
|
LDFLAGS = -rpath /Library/Frameworks -F /Library/Frameworks -framework SDL2
|
|
LDELDFLAGS =
|
|
|
|
OBJECTDIR = ../$(RELEASENAME)/
|
|
|
|
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldesdl
|