2023-04-13 14:15:47 +02:00
|
|
|
# -------------------------------------------------------------
|
|
|
|
|
|
|
|
# These are used when building and signing a release.
|
|
|
|
|
2024-09-17 00:52:17 +02:00
|
|
|
VERSION ?= 2024.10
|
|
|
|
KEYPAIR ?= 2024-10
|
2023-04-13 14:15:47 +02:00
|
|
|
|
|
|
|
# -------------------------------------------------------------
|
|
|
|
|
|
|
|
# Installation targets
|
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
DATADIR ?= $(PREFIX)/share/RETRO12
|
|
|
|
DOCSDIR ?= $(PREFIX)/share/doc/RETRO12
|
|
|
|
EXAMPLESDIR ?= $(PREFIX)/share/examples/RETRO12
|
|
|
|
MANDIR ?= $(PREFIX)/man/man1
|
|
|
|
|
|
|
|
# -------------------------------------------------------------
|
|
|
|
|
|
|
|
# Flags for adding in libraries we need to link to.
|
|
|
|
|
|
|
|
# If not using floating point, you can remove the `-lm` from
|
|
|
|
# LIBM.
|
|
|
|
|
|
|
|
LIBM ?= -lm
|
|
|
|
LIBDL ?=
|
|
|
|
|
|
|
|
# -------------------------------------------------------------
|
|
|
|
|
|
|
|
OPTIONS ?=
|
2024-10-30 13:14:39 +01:00
|
|
|
#OPTIONS += -DBIT64
|
2023-04-13 14:15:47 +02:00
|
|
|
|
2024-01-08 15:50:33 +01:00
|
|
|
# This helps improve performance on some systems.
|
|
|
|
|
|
|
|
# OPTIONS += -DBRANCH_PREDICTION
|
|
|
|
|
2024-01-08 14:55:39 +01:00
|
|
|
# This may help improve performance, but not all compilers
|
|
|
|
# support it. (E.g., clang-1200 on some macOS systems does
|
|
|
|
# not support it).
|
|
|
|
|
|
|
|
# OPTIONS += -march=native
|
|
|
|
|
2023-04-13 14:15:47 +02:00
|
|
|
# The I/O devices can be enabled or disabled. Comment or
|
|
|
|
# uncomment the corresponding ENABLED and DEVICES lines and
|
|
|
|
# then run `make`. Of particular note here, sockets support
|
|
|
|
# is disabled by default and you may wish to enable it.
|
|
|
|
|
2023-11-20 14:16:55 +01:00
|
|
|
# The I/O devices can be enabled or disabled. Comment or
|
|
|
|
# uncomment the corresponding ENABLED and DEVICES lines and
|
|
|
|
# then run `make`. Of particular note here, sockets support
|
|
|
|
# is disabled by default and you may wish to enable it.
|
|
|
|
|
|
|
|
OPTIONS += -DMAKEFILE_CONFIG
|
|
|
|
|
|
|
|
ENABLED ?=
|
|
|
|
ENABLED += -DENABLE_FLOATS
|
|
|
|
ENABLED += -DENABLE_FILES
|
|
|
|
ENABLED += -DENABLE_UNIX
|
|
|
|
ENABLED += -DENABLE_RNG
|
|
|
|
ENABLED += -DENABLE_CLOCK
|
|
|
|
ENABLED += -DENABLE_SCRIPTING
|
|
|
|
# ENABLED += -DENABLE_SOCKETS
|
|
|
|
ENABLED += -DENABLE_SIGNALS
|
|
|
|
ENABLED += -DENABLE_MULTICORE
|
|
|
|
# ENABLED += -DENABLE_FFI
|
|
|
|
ENABLED += -DENABLE_ERROR
|
|
|
|
ENABLED += -DENABLE_UNSIGNED
|
|
|
|
ENABLED += -DENABLE_MALLOC
|
|
|
|
ENABLED += -DENABLE_BLOCKS
|
2024-01-22 16:19:00 +01:00
|
|
|
ENABLED += -DENABLE_IOCTL
|
2023-11-20 14:16:55 +01:00
|
|
|
|
2023-04-13 14:15:47 +02:00
|
|
|
DEVICES ?=
|
|
|
|
DEVICES += interface/ll.retro
|
|
|
|
DEVICES += interface/dedup.retro
|
2024-09-09 14:49:56 +02:00
|
|
|
DEVICES += interface/stack-comments.retro
|
2023-04-13 14:15:47 +02:00
|
|
|
DEVICES += interface/sources.retro
|
2024-01-08 19:24:08 +01:00
|
|
|
DEVICES += interface/devices.retro
|
2023-04-13 14:15:47 +02:00
|
|
|
DEVICES += interface/floatingpoint.retro
|
|
|
|
DEVICES += interface/filesystem.retro
|
|
|
|
DEVICES += interface/unix.retro
|
|
|
|
DEVICES += interface/rng.retro
|
|
|
|
DEVICES += interface/clock.retro
|
|
|
|
DEVICES += interface/scripting.retro
|
|
|
|
DEVICES += interface/sockets.retro
|
|
|
|
DEVICES += interface/multicore.retro
|
|
|
|
DEVICES += interface/ffi.retro
|
|
|
|
DEVICES += interface/unsigned.retro
|
|
|
|
DEVICES += interface/future.retro
|
|
|
|
DEVICES += interface/block.retro
|
|
|
|
DEVICES += interface/deprecated.retro
|
2023-05-15 12:49:07 +02:00
|
|
|
DEVICES += interface/error.retro
|
2024-01-22 16:19:00 +01:00
|
|
|
DEVICES += interface/ioctl.retro
|
2023-04-13 14:15:47 +02:00
|
|
|
DEVICES += interface/final.retro
|
2023-12-11 13:42:14 +01:00
|
|
|
DEVICES += interface/library.retro
|
2024-09-12 15:33:16 +02:00
|
|
|
DEVICES += interface/descriptions.retro
|
2023-04-13 14:15:47 +02:00
|
|
|
|
|
|
|
# -------------------------------------------------------------
|
|
|
|
|
|
|
|
GLOSSARY ?= ./bin/retro tools/glossary.retro
|
2024-10-30 13:14:39 +01:00
|
|
|
ASSEMBLE ?= ./tools/retro-muri.py
|
|
|
|
#EXTEND ?= ./tools/retro-extend.py
|
2023-04-13 14:15:47 +02:00
|
|
|
EXTEND ?= ./bin/retro-extend
|
|
|
|
EXPORT ?= ./bin/retro-embedimage
|
|
|
|
RETRO ?= ./bin/retro
|
|
|
|
|
|
|
|
# -------------------------------------------------------------
|