ref: 34f94d8f686d27d00fcca2c4bc596d339fd3f5b0
dir: /mkfile/
</$objtype/mkfile BIN=/$objtype/bin TARG=flisp CFLAGS=$CFLAGS -p -D__plan9__ -D__${objtype}__ -I3rd -Iplan9 CLEANFILES=boot.h builtin_fns.h HFILES=\ equalhash.h\ flisp.h\ OFILES=\ 3rd/mt19937-64.$O\ 3rd/wcwidth.$O\ bitvector-ops.$O\ bitvector.$O\ builtins.$O\ cvalues.$O\ dump.$O\ equal.$O\ equalhash.$O\ flisp.$O\ flmain.$O\ hashing.$O\ htable.$O\ ios.$O\ iostream.$O\ llt.$O\ main_plan9.$O\ operators.$O\ print.$O\ ptrhash.$O\ random.$O\ read.$O\ string.$O\ table.$O\ timefuncs.$O\ types.$O\ utf8.$O\ default:V: all </sys/src/cmd/mkone boot.h: flisp.boot sed 's,\\,\\\\,g;s,",\\",g;s,^,",g;s,$,\\n",g' $prereq >$target builtin_fns.h: sed -n 's/^BUILTIN[_]?(\(".*)/BUILTIN_FN\1/gp' *.c >$target main_plan9.$O: boot.h builtin_fns.h flisp.$O: maxstack.inc opcodes.h builtin_fns.h flmain.$O: boot.h builtins.$O: builtin_fns.h %.$O: %.c $CC $CFLAGS -o $target $stem.c bootstrap:V: $O.out ./$O.out gen.lsp && \ 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] [$OS].out *.acid $TARG $CLEANFILES clean:V: rm -f *.[$OS] */*.[$OS] [$OS].out $TARG $CLEANFILES