retroforth/nga-c/Makefile
crc db1571d2f3 nga-c: new vm: add support for embedded image
FossilOrigin-Name: 6a34f9ce18e124e010668a9c2eaafe8d7aff3e5b35cb5fa67809f56abf9bb26a
2021-04-14 11:53:01 +00:00

27 lines
654 B
Makefile

CFLAGS ?= -std=c89 -O2 -Werror -Wall -Wextra
EFLAGS ?= -lm
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 listen.retro -f extend.retro
finish:
mv retro.nga ngaImage