mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-11 23:43:19 +00:00
* Fix compilation for maiko version 201 Version 201 does not have BIGVM, so SWA_FNHEAD requires swapx which is defined in byteswapdefs.h * Fix compilation for maiko version 201 Version 201 did not have NEWCDRCODING, so the implementation of N_OP_rplcons requires definitions from gcdata.h and address.h * Set up makeright etc. to allow for easier compilation of alternate versions 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. * Remove unnecessary include of gcdata.h from bbtsub.c * Users of gcdata.h should include gchtfinddefs.h explicitly if they use gcdata.h macros * Correct modify_big_reference_count entry parameter type to reflect dependence on GCENTRY size differences between releases * Add MAIKO_RELEASE to CMake options for building
26 lines
503 B
Plaintext
26 lines
503 B
Plaintext
# Options for Linux, Intel x86_64 and SDL
|
|
|
|
CC = gcc -m64 $(GCC_CFLAGS)
|
|
# CC = clang -m64 $(CLANG_CFLAGS)
|
|
|
|
XFILES = $(OBJECTDIR)sdl.o
|
|
|
|
#
|
|
# For SDL version 2
|
|
# -DSDL=2 in XFLAGS and -lSDL2 in LDFLAGS
|
|
# For SDL version 3
|
|
# -DSDL=3 in XFLAGS and -lSDL3 in LDFLAGS
|
|
#
|
|
XFLAGS = -DSDL=2
|
|
|
|
# OPTFLAGS is normally -O2.
|
|
OPTFLAGS = -O2 -g3
|
|
DFLAGS = $(XFLAGS) -DRELEASE=$(RELEASE)
|
|
|
|
LDFLAGS = -lm -lSDL2
|
|
LDELDFLAGS =
|
|
|
|
OBJECTDIR = ../$(RELEASENAME)/
|
|
|
|
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldesdl
|