blob: 17f1910d4c1b69796e90a86e00887137e2aca8f4 [file] [log] [blame]
swissChili0fc3f262021-08-09 22:05:17 -07001# -*- mode:tcl -*-
2
3source "../../share/jmk/jmk.tcl"
4
5init lisp
6
7presets 32 debug warn nasm
8cflags -Ivendor/luajit/dynasm -O0
9
10option NO_READLINE 0
11
12type executable
13
14if {$options(NO_READLINE) == 0} {
15 cflags -lreadline
16} else {
17 cflags -DNO_READLINE
18}
19
20set lua vendor/luajit/src/host/minilua
21
22rule $lua ${lua}.c {
23 log CC $source
24 cc $source -o $target -lm
25}
26
27rule compiler.c "compiler.dasc $lua" {
28 log DYNASM $first_source
29 shell $::lua vendor/luajit/dynasm/dynasm.lua -o $target $first_source
30}
31
32sources main.c lisp.c compiler.c lib/std.c plat/linux.c istream.c gc.c \
33 call_list.s error.c