Add macros
diff --git a/src/lisp/Jmk b/src/lisp/Jmk
index ec4e5da..394e077 100644
--- a/src/lisp/Jmk
+++ b/src/lisp/Jmk
@@ -4,14 +4,17 @@
option(PLAT, "`platform to build for: either linux or bluejay'", linux)
-preset(optimize)
+# preset(optimize)
preset(32)
preset(debug)
preset(warn)
+preset(nasm)
-archetype(c, asm)
+archetype(c)
+archetype(asm)
CFLAGS += -Ivendor/luajit/dynasm
+ASMFLAGS += -felf -Fdwarf
OBJECTS = main.o \
lisp.o \
@@ -19,7 +22,8 @@
lib/std.o \
plat/linux.o \
istream.o \
- gc.o
+ gc.o \
+ call_list.o
LUA = vendor/luajit/src/host/minilua
@@ -33,9 +37,11 @@
type(executable)
+F ?= test.lisp
+
run: lisp
- status_log(LISP, test.lisp)
- @./lisp ./test.lisp
+ status_log(LISP, $(F))
+ @./lisp $(F)
format:
status_log(FORMAT, *)