retroforth/nga-c/GNUmakefile
crc c41dab370e some experimental vm and tooling stuff (nga-c)
FossilOrigin-Name: 4024b2d35d4e5d0ae3a15c14f497569120c527882edbf055e79726f200e8c322
2021-04-08 19:51:34 +00:00

27 lines
645 B
Makefile

CFLAGS ?= -std=c89 -O2 -Werror -Wall -Wextra
EFLAGS ?= -lm -DSTRL
ENABLED ?=
ENABLED += -DENABLE_FLOATS
ENABLED += -DENABLE_SOCKETS
ENABLED += -DENABLE_FILES
ENABLED += -DENABLE_UNIX
ENABLED += -DENABLE_RNG
ENABLED += -DENABLE_CLOCK
ENABLED += -DENABLE_SCRIPTING
default: update vm kernel extend finish
update:
cp ../image/* .
vm: nga.c
$(CC) $(CFLAGS) $(EFLAGS) $(ENABLED) nga.c -o retro
kernel: retro.forth retro.muri assemble.retro
./retro -u ngaImage -f retro.forth -f assemble.retro
extend: retro.forth devices.retro extend.retro
./retro -u retro.nga -f retro.forth -f devices.retro -f extend.retro
finish:
mv retro.nga ngaImage