blob: 42a0e51eb33e6213103b51776456d20bb5dd7b51 [file] [log] [blame]
init(lisp, lisp)
preset(optimize)
preset(32)
preset(debug)
preset(warn)
archetype(c)
CFLAGS += -Ivendor/luajit/dynasm
OBJECTS = main.o \
lisp.o \
compiler.o
LUA = vendor/luajit/src/host/minilua
vendor/luajit/src/host/minilua: vendor/luajit/src/host/minilua.c
status_log(CC, $<)
@$(CC) $< -o $@ -lm
compiler.c: compiler.dasc
status_log(DYNASM, $<)
@$(LUA) vendor/luajit/dynasm/dynasm.lua -o $@ $<
type(executable)
run: lisp
status_log(RUN, ./lisp)
@./lisp "$$(cat test.lisp)"
format:
status_log(FORMAT, *)
@clang-format -i *.c *.h *.dasc
finish