shithub: femtolisp

ref: d1a1d3b2a82b874b79d971a4c2456854068b026a
dir: /mkfile/

View raw version
</$objtype/mkfile

BIN=/$objtype/bin
TARG=flisp
CFLAGS=$CFLAGS -p -DPLAN9 -DNDEBUG -D__${objtype}__ -Illt

HFILES=\
	cvalues.c\
	equal.c\
	equalhash.h\
	flisp.h\
	opcodes.h\
	operators.c\
	print.c\
	read.c\
	types.c\

OFILES=\
	builtins.$O\
	equalhash.$O\
	flisp.$O\
	flmain.$O\
	iostream.$O\
	string.$O\
	table.$O\

default:V: all

install:V: /sys/lib/flisp/flisp.boot

/sys/lib/flisp/%: %
	mkdir -p /sys/lib/flisp/
	cp $prereq $target

CLEANFILES=llt/libllt.a

</sys/src/cmd/mkone

$O.out: llt/libllt.a

llt/libllt.a:
	cd llt && mk

bootstrap:V: $O.out
	cp flisp.boot flisp.boot.bak && \
	./$O.out mkboot0.lsp system.lsp compiler.lsp > flisp.boot.new && \
	mv flisp.boot.new flisp.boot && \
	./$O.out mkboot1.lsp