add some comments in the Makefiles relating to configuration options
FossilOrigin-Name: 907f4e1a4268bde8ca72c4de2a02f0b0b64a6631e14d15722e99181a7b357c6e
This commit is contained in:
parent
05a0191316
commit
41089951f9
2 changed files with 64 additions and 6 deletions
36
GNUmakefile
36
GNUmakefile
|
@ -1,12 +1,33 @@
|
|||
# This is the Makefile for Linux, macOS, and other systems
|
||||
# using GNU Make. For BSD users, look at the Makefile instead.
|
||||
# -------------------------------------------------------------
|
||||
|
||||
# These are used when building and signing a release.
|
||||
|
||||
VERSION ?= 2022.1
|
||||
KEYPAIR ?= 2022-01
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
# Installation targets
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
DATADIR ?= $(PREFIX)/share/RETRO12
|
||||
DOCSDIR ?= $(PREFIX)/share/doc/RETRO12
|
||||
EXAMPLESDIR ?= $(PREFIX)/share/examples/RETRO12
|
||||
MANDIR ?= $(PREFIX)/share/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
|
||||
|
||||
# You can comment out this if not enabling the FFI.
|
||||
|
||||
LIBDL ?=
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
|
@ -15,6 +36,17 @@ endif
|
|||
|
||||
CFLAGS ?= -O2
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Don't uncomment the line with -DNEEDS_STRL. I use the BSD
|
||||
# strl* functions and provide a copy of them when needed. GNU
|
||||
# libc does not include these.
|
||||
|
||||
ENABLED ?=
|
||||
ENABLED += -DENABLE_FLOATS
|
||||
ENABLED += -DENABLE_FILES
|
||||
|
@ -39,10 +71,12 @@ DEVICES += interface/clock.retro
|
|||
DEVICES += interface/scripting.retro
|
||||
# DEVICES += interface/sockets.retro
|
||||
DEVICES += interface/sources.retro
|
||||
# DEVICES += interface/multicore.retro
|
||||
DEVICES += interface/multicore.retro
|
||||
DEVICES += interface/deprecated.retro
|
||||
DEVICES += interface/unsigned.retro
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
all: build
|
||||
|
||||
help:
|
||||
|
|
34
Makefile
34
Makefile
|
@ -1,16 +1,39 @@
|
|||
# Linux / macOS users: This Makefile is mainly intended for BSD
|
||||
# systems. You probably want to look at or
|
||||
# edit the GNUmakefile.
|
||||
# This is the Makefile for BSD systems. If using GNU Make (e.g.
|
||||
# on Linux or macOS), look at the GNUmakefile instead.
|
||||
# -------------------------------------------------------------
|
||||
|
||||
# These are used when building and signing a release.
|
||||
|
||||
VERSION ?= 2022.1
|
||||
KEYPAIR ?= 2022-01
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
# Installation targets
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
DATADIR ?= $(PREFIX)/share/RETRO12
|
||||
DOCSDIR ?= $(PREFIX)/share/doc/RETRO12
|
||||
EXAMPLESDIR ?= $(PREFIX)/share/examples/RETRO12
|
||||
MANDIR ?= $(PREFIX)/man/man1
|
||||
LIBM ?= -lm -g
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
# 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 ?=
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
# 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.
|
||||
|
||||
ENABLED ?=
|
||||
ENABLED += -DENABLE_FLOATS
|
||||
ENABLED += -DENABLE_FILES
|
||||
|
@ -37,6 +60,8 @@ DEVICES += interface/multicore.retro
|
|||
DEVICES += interface/unsigned.retro
|
||||
DEVICES += interface/deprecated.retro
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
all: build
|
||||
|
||||
help:
|
||||
|
@ -206,7 +231,6 @@ doc/Glossary-Names-and-Stack.txt: bin/retro sorted
|
|||
./bin/retro tools/glossary.retro export concise-stack >doc/Glossary-Names-and-Stack.txt
|
||||
|
||||
|
||||
|
||||
# other targets
|
||||
|
||||
release: clean build glossary
|
||||
|
|
Loading…
Reference in a new issue