shithub: femtolisp

ref: 477dc93db81feed168d2bcd42bc9a7fc3a88d4c0
dir: /mkfile/

View raw version
</$objtype/mkfile

BIN=/$objtype/bin
TARG=flisp
CFLAGS=$CFLAGS -p -D__plan9__ -D__${objtype}__ -Iplan9 -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

</sys/src/cmd/mkone

$O.out: llt/libllt.$O.a

llt/libllt.$O.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

nuke:V:
	rm -f *.[$OS] [$OS].out *.acid $TARG $CLEANFILES
	cd llt && mk nuke

clean:V:
	rm -f *.[$OS] [$OS].out $TARG $CLEANFILES
	cd llt && mk clean