mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
25 lines
578 B
Makefile
25 lines
578 B
Makefile
</$objtype/mkfile
|
|
|
|
BIN=/$objtype/bin
|
|
TARG=chibi-scheme
|
|
MODDIR=/sys/lib/chibi-scheme
|
|
|
|
CPPFLAGS= -Iinclude -DPLAN9 '-DUSE_STRING_STREAMS=0' '-DUSE_DEBUG=0'
|
|
CFLAGS= -p $CPPFLAGS
|
|
|
|
OFILES=sexp.$O eval.$O main.$O
|
|
HFILES=include/chibi/sexp.h include/chibi/eval.h include/chibi/config.h include/chibi/install.h
|
|
|
|
</sys/src/cmd/mkone
|
|
|
|
include/chibi/install.h: mkfile
|
|
echo '#define sexp_module_dir "'$MODDIR'"' > include/chibi/install.h
|
|
|
|
install:V: $BIN/$TARG
|
|
test -d $MODDIR || mkdir -p $MODDIR
|
|
cp init.scm $MODDIR/
|
|
|
|
test:V:
|
|
./$O.out tests/r5rs-tests.scm
|
|
|
|
sexp.c:N: gc.c opt/bignum.c
|