nga-c: start using the new codebase for default builds

FossilOrigin-Name: b37aa67e623301045afe2afce32812b914c790607571db70869d0d580f9ab6c8
This commit is contained in:
crc 2021-04-19 16:26:10 +00:00
parent 2fae760607
commit b543cd63f5
3 changed files with 703 additions and 436 deletions

View file

@ -136,15 +136,14 @@ update-extensions: bin/retro
vm/nga-c/retro-image.c: ngaImage bin/retro-embedimage bin/retro-extend interface/filesystem.retro interface/floatingpoint.retro interface/unix.retro interface/rng.retro interface/sockets.retro interface/scripting.retro interface/retro-unix.retro interface/clock.retro
cp ngaImage rre.image
./bin/retro-extend rre.image interface/filesystem.retro interface/floatingpoint.retro interface/unix.retro interface/rng.retro interface/sockets.retro interface/scripting.retro interface/clock.retro interface/retro-unix.retro
./bin/retro-embedimage rre.image >vm/nga-c/retro-image.c
./bin/retro-embedimage rre.image >vm/nga-c/image.c
bin/retro: vm/nga-c/retro-image.c vm/nga-c/retro-unix.c vm/nga-c/bsd-strl.c vm/nga-c/config.h vm/nga-c/dev-clock.c vm/nga-c/dev-files.c vm/nga-c/dev-floatingpoint.c vm/nga-c/dev-image.c vm/nga-c/dev-rng.c vm/nga-c/dev-sockets.c vm/nga-c/dev-unix.c vm/nga-c/prototypes.h package/list.forth package/load-extensions.retro
cd vm/nga-c && $(CC) -DFAST $(OPTIONS) $(CFLAGS) $(LDFLAGS) -o ../../bin/retro retro-unix.c $(LIBM)
bin/retro: vm/nga-c/image.c vm/nga-c/retro.c package/list.forth package/load-extensions.retro
cd vm/nga-c && $(CC) -DFAST $(OPTIONS) $(ENABLED) $(CFLAGS) $(LDFLAGS) -o ../../bin/retro retro.c $(LIBM)
cd package && ../bin/retro -u rre.image -f list.forth
./bin/retro-embedimage rre.image >vm/nga-c/retro-image.c
./bin/retro-embedimage rre.image >vm/nga-c/image.c
rm rre.image
cd vm/nga-c && $(CC) -DFAST $(OPTIONS) $(CFLAGS) $(LDFLAGS) -o ../../bin/retro retro-unix.c $(LIBM)
cd vm/nga-c && $(CC) -DFAST $(OPTIONS) $(ENABLED) $(CFLAGS) $(LDFLAGS) -o ../../bin/retro retro-unix.c $(LIBM)
# optional targets

File diff suppressed because it is too large Load diff