Add ESP32C3 RISC-V stub
diff --git a/src/lisp/Jmk b/src/lisp/Jmk
deleted file mode 100644
index 022fcc0..0000000
--- a/src/lisp/Jmk
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- mode:makefile -*-
-
-init(lisp, lisp)
-
-option(PLAT, "`platform to build for: either linux or bluejay'", linux)
-
-# preset(optimize)
-preset(32)
-preset(debug)
-preset(warn)
-preset(nasm)
-
-archetype(c)
-archetype(asm)
-
-NO_READLINE ?= 0
-
-CFLAGS += -Ivendor/luajit/dynasm -Werror # -fsanitize=address
-ASMFLAGS += -felf -Fdwarf
-
-ifeq ($(NO_READLINE),1)
-CFLAGS += -DNO_READLINE
-else
-LDFLAGS += -lreadline
-CFLAGS += -lreadline
-endif
-
-OBJECTS = main.o \
- lisp.o \
- compiler.o \
- lib/std.o \
- plat/linux.o \
- istream.o \
- gc.o \
- call_list.o \
- error.o
-
-LUA = vendor/luajit/src/host/minilua
-
-$(LUA): vendor/luajit/src/host/minilua.c
- status_log(CC, $<)
- @$(CC) $< -o $@ -lm
-
-compiler.c: compiler.dasc | $(LUA)
- status_log(DYNASM, $<)
- @$(LUA) vendor/luajit/dynasm/dynasm.lua -o $@ $<
-
-type(executable)
-
-F ?= test.lisp
-lisp_libpath = $(ROOT)/lib/lisp
-
-run: lisp
- status_log(LISP, $(F))
- @LISP_LIBRARY_PATH="$(lisp_libpath)" ./lisp $(F)
-
-repl: lisp
- status_log(LISP, repl)
- @LISP_LIBRARY_PATH="$(lisp_libpath)" ./lisp $(ROOT)/lib/lisp/repl/repl.lisp
-
-leak-check: lisp
- status_log(VALGRIND, lisp $(F))
- @LISP_LIBRARY_PATH="$(lisp_libpath)" valgrind --leak-check=full ./lisp $(F)
-
-format:
- status_log(FORMAT, *)
- @clang-format -i *.c *.h *.dasc plat/* lib/*
-
-finish
diff --git a/src/lisp/Jmk2 b/src/lisp/Jmk2
index 1f4e6b1..5446f50 100644
--- a/src/lisp/Jmk2
+++ b/src/lisp/Jmk2
@@ -2,6 +2,10 @@
init lisp
+presets 32 debug warn nasm
+cflags -Ivendor/luajit/dynasm -O0
+asmflags -felf32
+
# Make this `readline', `edit', or `none'
option READLINE readline
@@ -13,10 +17,6 @@
cflags -L/usr/lib/i386-linux-gnu -l$options(READLINE)
}
-presets 32 debug warn nasm
-cflags -Ivendor/luajit/dynasm -O0
-asmflags -felf32
-
set lua [pwd]/vendor/luajit/src/host/minilua
rule $lua ${lua}.c {