mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-13 23:27:12 +00:00
Compiling with -DMAIKO_ENABLE_NETHUB makes it possible to test out having a WebSocket server that could pass packets back and forth to the Dodo NetHub. Setting Emscripten link-time option for EXIT_RUNTIME allows the runtime code to shutdown when you exit Medley via a (LOGOUT) Set up preloads for all the parts of the Medley directory that MEDLEYDIR-INIT expects to be there. The resulting ldesdl.data is (at this time) 128 MB. It can be installed gzipped if using nginx or some other web server that supports pre-zipped static files. It would be better to have these as lazy-loading files, but the setup for that is complicated. Another alternative to embedding all the data would be if a WebSocket to XNS/Nethub gateway were written and deployed.
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# Options for Emscripten, WASM and SDL
|
|
|
|
CC = emcc $(CLANG_CFLAGS)
|
|
|
|
XFILES = $(OBJECTDIR)sdl.o
|
|
|
|
XFLAGS = -DSDL -sUSE_SDL=2
|
|
|
|
# OPTFLAGS is normally -O2.
|
|
OPTFLAGS = -O2
|
|
DFLAGS = $(XFLAGS) -DRELEASE=351 -DMAIKO_ENABLE_NETHUB
|
|
|
|
MEDLEY?=../../medley
|
|
SYSOUT?=$(MEDLEY)/loadups/full.sysout
|
|
|
|
LD = emcc
|
|
LDFLAGS = -sUSE_SDL=2 -sASYNCIFY -sALLOW_MEMORY_GROWTH -sEXIT_RUNTIME=1 \
|
|
--preload-file $(SYSOUT)@medley/loadups/full.sysout \
|
|
--preload-file $(MEDLEY)/loadups/whereis.hash@medley/loadups/whereis.hash \
|
|
--preload-file $(MEDLEY)/greetfiles/MEDLEYDIR-INIT.LCOM@usr/local/lde/site-init.lisp \
|
|
--preload-file $(MEDLEY)/docs/@medley/docs \
|
|
--preload-file $(MEDLEY)/doctools/@medley/doctools \
|
|
--preload-file $(MEDLEY)/greetfiles/@medley/greetfiles \
|
|
--preload-file $(MEDLEY)/internal/@medley/internal \
|
|
--preload-file $(MEDLEY)/sources/@medley/sources \
|
|
--preload-file $(MEDLEY)/library/@medley/library \
|
|
--preload-file $(MEDLEY)/lispusers/@medley/lispusers \
|
|
--preload-file $(MEDLEY)/fonts/@medley/fonts
|
|
|
|
LDELDFLAGS =
|
|
|
|
OBJECTDIR = ../$(RELEASENAME)/
|
|
|
|
default : ../$(OSARCHNAME)/ldesdl.js
|