build: Cater for M2-Planet. WIP
* configure: Drop MES_SEED, support M2-Planet. * kaem.run: Also build bin/mes. * build-aux/bootstrap.sh.in: Run kaem bootstrap. * build-aux/build.sh.in: Run kaem bootstrap. Build bin/mes. Update scripts and users. * build-aux/install.sh.in: Install all built bin/mes-* flavours.
This commit is contained in:
parent
b63d27a4b5
commit
e6839a2b43
|
@ -69,8 +69,6 @@
|
||||||
/scaffold/read-m2
|
/scaffold/read-m2
|
||||||
/scaffold/tiny-mes-m2
|
/scaffold/tiny-mes-m2
|
||||||
|
|
||||||
/src/mes
|
|
||||||
|
|
||||||
/.config
|
/.config
|
||||||
/.config.make
|
/.config.make
|
||||||
/.store
|
/.store
|
||||||
|
|
|
@ -27,6 +27,11 @@ MES_STACK=${MES_STACK-5000000}
|
||||||
export MES_STACK
|
export MES_STACK
|
||||||
MES_PREFIX=${MES_PREFIX-$PWD}
|
MES_PREFIX=${MES_PREFIX-$PWD}
|
||||||
|
|
||||||
|
if test -n "@M2_PLANET@"; then
|
||||||
|
echo " KAEM kaem.run"
|
||||||
|
kaem --strict --verbose
|
||||||
|
fi
|
||||||
|
|
||||||
. build-aux/configure-lib.sh
|
. build-aux/configure-lib.sh
|
||||||
|
|
||||||
CPPFLAGS="-D HAVE_CONFIG_H=1 -I include"
|
CPPFLAGS="-D HAVE_CONFIG_H=1 -I include"
|
||||||
|
@ -83,8 +88,9 @@ for c in $mes_SOURCES; do
|
||||||
o=$(basename $c .c).o
|
o=$(basename $c .c).o
|
||||||
objects="$objects $o"
|
objects="$objects $o"
|
||||||
done
|
done
|
||||||
echo " CCLD src/mes"
|
echo " CCLD bin/mes-mescc"
|
||||||
$CC -nostdlib -o src/mes -L mescc-lib mescc-lib/crt1.o $objects -lc
|
$CC -nostdlib -o bin/mes-mescc -L mescc-lib mescc-lib/crt1.o $objects -lc
|
||||||
|
cp bin/mes-mescc bin/mes
|
||||||
|
|
||||||
(
|
(
|
||||||
mkdir -p gcc-lib
|
mkdir -p gcc-lib
|
||||||
|
|
|
@ -40,4 +40,5 @@ done
|
||||||
if test $mes_libc = system; then
|
if test $mes_libc = system; then
|
||||||
LIBS=-lmes
|
LIBS=-lmes
|
||||||
fi
|
fi
|
||||||
link src/mes
|
link bin/mes-$compiler
|
||||||
|
cp bin/mes-$compiler bin/mes
|
||||||
|
|
|
@ -42,7 +42,9 @@ if $courageous; then
|
||||||
set +e
|
set +e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${SHELL} ${srcdest}build-aux/build-scaffold.sh
|
if test "$compiler" != bootstrap; then
|
||||||
|
${SHELL} ${srcdest}build-aux/build-scaffold.sh
|
||||||
|
fi
|
||||||
|
|
||||||
if test -n "$GUILE" -a "$GUILE" != true; then
|
if test -n "$GUILE" -a "$GUILE" != true; then
|
||||||
${SHELL} ${srcdest}build-aux/build-guile.sh
|
${SHELL} ${srcdest}build-aux/build-guile.sh
|
||||||
|
@ -108,6 +110,7 @@ export LIBS
|
||||||
compiler=gcc ${SHELL} ${srcdest}build-aux/build-source-lib.sh
|
compiler=gcc ${SHELL} ${srcdest}build-aux/build-source-lib.sh
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
(
|
(
|
||||||
if test $compiler = gcc; then
|
if test $compiler = gcc; then
|
||||||
LDFLAGS="$LDFLAGS
|
LDFLAGS="$LDFLAGS
|
||||||
|
@ -121,9 +124,27 @@ export LIBS
|
||||||
-I ${srcdest}include
|
-I ${srcdest}include
|
||||||
-I ${srcdest}include/$mes_kernel/$mes_cpu
|
-I ${srcdest}include/$mes_kernel/$mes_cpu
|
||||||
"
|
"
|
||||||
|
if test "$compiler" != bootstrap; then
|
||||||
${SHELL} ${srcdest}build-aux/build-mes.sh
|
${SHELL} ${srcdest}build-aux/build-mes.sh
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if test -n "$M2_PLANET"; then
|
||||||
|
(
|
||||||
|
. ${srcdest}build-aux/trace.sh
|
||||||
|
if [ -z "$V" -o "$V" = 0 ]; then
|
||||||
|
__verbose=
|
||||||
|
else
|
||||||
|
__verbose=--verbose
|
||||||
|
fi
|
||||||
|
trace "KAEM scaffold/main.kaem" kaem --strict $__verbose -f scaffold/main.kaem
|
||||||
|
trace "KAEM scaffold/hello.kaem" kaem --strict $__verbose -f scaffold/hello.kaem
|
||||||
|
trace "KAEM scaffold/argv.kaem" kaem --strict $__verbose -f scaffold/argv.kaem
|
||||||
|
trace "KAEM scaffold/read.kaem" kaem --strict $__verbose -f scaffold/read.kaem
|
||||||
|
trace "KAEM kaem.run" kaem --strict $__verbose
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
mkdir -p mescc-lib
|
mkdir -p mescc-lib
|
||||||
cp config.sh mescc-lib
|
cp config.sh mescc-lib
|
||||||
|
|
|
@ -30,8 +30,10 @@ GUILE_EFFECTIVE_VERSION="@GUILE_EFFECTIVE_VERSION@"
|
||||||
GUIX="@GUIX@"
|
GUIX="@GUIX@"
|
||||||
HELP2MAN="@HELP2MAN@"
|
HELP2MAN="@HELP2MAN@"
|
||||||
HEX2="@HEX2@"
|
HEX2="@HEX2@"
|
||||||
|
KAEM="@KAEM@"
|
||||||
MAKEINFO="@MAKEINFO@"
|
MAKEINFO="@MAKEINFO@"
|
||||||
M1="@M1@"
|
M1="@M1@"
|
||||||
|
M2_PLANET="@M2_PLANET@"
|
||||||
MES_FOR_BUILD="@MES_FOR_BUILD@"
|
MES_FOR_BUILD="@MES_FOR_BUILD@"
|
||||||
MES_SEED="@MES_SEED@"
|
MES_SEED="@MES_SEED@"
|
||||||
NYACC="@NYACC@"
|
NYACC="@NYACC@"
|
||||||
|
|
|
@ -43,7 +43,16 @@ fi
|
||||||
|
|
||||||
DESTDIR=${DESTDIR-}
|
DESTDIR=${DESTDIR-}
|
||||||
mkdir -p ${DESTDIR}${bindir}
|
mkdir -p ${DESTDIR}${bindir}
|
||||||
cp $_v src/mes ${DESTDIR}${bindir}/mes
|
cp $_v bin/mes ${DESTDIR}${bindir}/mes
|
||||||
|
if test -f bin/mes-gcc; then
|
||||||
|
cp $_v bin/mes-gcc ${DESTDIR}${bindir}/mes-gcc
|
||||||
|
fi
|
||||||
|
if test -f bin/mes-m2; then
|
||||||
|
cp $_v bin/mes-m2 ${DESTDIR}${bindir}/mes-m2
|
||||||
|
fi
|
||||||
|
if test -f bin/mes-mescc; then
|
||||||
|
cp $_v bin/mes-mescc ${DESTDIR}${bindir}/mes-mescc2
|
||||||
|
fi
|
||||||
cp $_v scripts/mesar ${DESTDIR}${bindir}/mesar
|
cp $_v scripts/mesar ${DESTDIR}${bindir}/mesar
|
||||||
cp $_v scripts/mescc.scm ${DESTDIR}${bindir}/mescc.scm
|
cp $_v scripts/mescc.scm ${DESTDIR}${bindir}/mescc.scm
|
||||||
cp $_v scripts/mescc ${DESTDIR}${bindir}/mescc
|
cp $_v scripts/mescc ${DESTDIR}${bindir}/mescc
|
||||||
|
|
|
@ -36,10 +36,10 @@ if [ -n "$srcdest" ]; then
|
||||||
fi
|
fi
|
||||||
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
|
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
|
||||||
|
|
||||||
PATH="$abs_top_builddir/scripts:$abs_top_builddir/scripts:$abs_top_builddir/src:$abs_top_builddir/build-aux:$PATH"
|
PATH="$abs_top_builddir/scripts:$abs_top_builddir/scripts:$abs_top_builddir/bin:$abs_top_builddir/build-aux:$PATH"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
MES=${MES-${abs_top_builddir}/src/${program_prefix}mes}
|
MES=${MES-${abs_top_builddir}/bin/${program_prefix}mes}
|
||||||
export MES
|
export MES
|
||||||
|
|
||||||
bindir=${abs_top_builddir}/scripts
|
bindir=${abs_top_builddir}/scripts
|
||||||
|
|
|
@ -364,7 +364,6 @@ Some influential environment variables:
|
||||||
GUILE guile command
|
GUILE guile command
|
||||||
GUILD guild command
|
GUILD guild command
|
||||||
MES_FOR_BUILD build system MES [can be mes or guile]
|
MES_FOR_BUILD build system MES [can be mes or guile]
|
||||||
MES_SEED location of mes-seed
|
|
||||||
" PACKAGE VERSION (getenv "prefix")))
|
" PACKAGE VERSION (getenv "prefix")))
|
||||||
|
|
||||||
(define (main args)
|
(define (main args)
|
||||||
|
@ -417,12 +416,7 @@ Some influential environment variables:
|
||||||
(when %verbose?
|
(when %verbose?
|
||||||
(stderr "configure args=~s\n" args))
|
(stderr "configure args=~s\n" args))
|
||||||
(for-each (lambda (v) (apply setenv (string-split v #\=))) vars)
|
(for-each (lambda (v) (apply setenv (string-split v #\=))) vars)
|
||||||
(let* ((mes-seed (or (getenv "MES_SEED")
|
(let* ((tinycc-prefix (or (getenv "TINYCC_PREFIX")
|
||||||
(string-append srcdest "../mes-seed")))
|
|
||||||
(mes-seed (and mes-seed
|
|
||||||
(file-exists? (string-append mes-seed "/x86-mes/mes.S"))
|
|
||||||
mes-seed))
|
|
||||||
(tinycc-prefix (or (getenv "TINYCC_PREFIX")
|
|
||||||
(string-append srcdest "../tinycc-prefix")))
|
(string-append srcdest "../tinycc-prefix")))
|
||||||
(gcc (or (getenv "CC") "gcc"))
|
(gcc (or (getenv "CC") "gcc"))
|
||||||
(tcc (or (getenv "TCC") "tcc"))
|
(tcc (or (getenv "TCC") "tcc"))
|
||||||
|
@ -430,7 +424,9 @@ Some influential environment variables:
|
||||||
(deps (fold (lambda (program results)
|
(deps (fold (lambda (program results)
|
||||||
(cons (check-program-version program) results))
|
(cons (check-program-version program) results))
|
||||||
'()
|
'()
|
||||||
(list (make-dep "hex2" #:version '(0 6))
|
(list (make-dep "kaem" #:version '(0 6) #:optional? #t)
|
||||||
|
(make-dep "M2-Planet" #:version '(0 1 3) #:optional? #t)
|
||||||
|
(make-dep "hex2" #:version '(0 6))
|
||||||
(make-dep "M1" #:version '(0 6))
|
(make-dep "M1" #:version '(0 6))
|
||||||
(make-dep "blood-elf" #:version '(0 6))
|
(make-dep "blood-elf" #:version '(0 6))
|
||||||
(make-dep "diff" #:optional? #t)
|
(make-dep "diff" #:optional? #t)
|
||||||
|
@ -479,7 +475,7 @@ Some influential environment variables:
|
||||||
"))
|
"))
|
||||||
deps)
|
deps)
|
||||||
deps))
|
deps))
|
||||||
(mesc? (file-name "cc is Mes C" deps))
|
(mescc? (file-name "cc is Mes C" deps))
|
||||||
(deps (if cc
|
(deps (if cc
|
||||||
(cons (check-compile-c cc (make-dep "cc is Tiny CC" #:data "#if !defined (__TINYCC__)
|
(cons (check-compile-c cc (make-dep "cc is Tiny CC" #:data "#if !defined (__TINYCC__)
|
||||||
#error no tinycc
|
#error no tinycc
|
||||||
|
@ -508,7 +504,11 @@ Some influential environment variables:
|
||||||
(equal? "linux" (car kernel-list))) "linux")
|
(equal? "linux" (car kernel-list))) "linux")
|
||||||
((equal? '( "gnu") kernel-list) "gnu")
|
((equal? '( "gnu") kernel-list) "gnu")
|
||||||
(else "unknown")))
|
(else "unknown")))
|
||||||
(compiler (if gcc? "gcc" "mescc"))
|
(m2-planet (file-name "M2-Planet" deps))
|
||||||
|
(compiler (or (and gcc? "gcc")
|
||||||
|
(and tcc? "tcc")
|
||||||
|
(and mescc? "mescc")
|
||||||
|
"bootstrap"))
|
||||||
(mes-system (string-join (list mes-cpu mes-kernel "mes") "-")))
|
(mes-system (string-join (list mes-cpu mes-kernel "mes") "-")))
|
||||||
|
|
||||||
(define* (substitute file-name pairs
|
(define* (substitute file-name pairs
|
||||||
|
@ -594,10 +594,11 @@ See \"Porting GNU Mes\" in the manual, or try --with-courage\n" mes-system)
|
||||||
("@GUILE@" . ,guile)
|
("@GUILE@" . ,guile)
|
||||||
("@GUIX@" . ,(or (file-name "guix" deps) ""))
|
("@GUIX@" . ,(or (file-name "guix" deps) ""))
|
||||||
("@HELP2MAN@" . ,(or (file-name "help2man" deps) ""))
|
("@HELP2MAN@" . ,(or (file-name "help2man" deps) ""))
|
||||||
|
("@KAEM@" . ,(or (file-name "kaem" deps) ""))
|
||||||
|
("@M2_PLANET@" . ,(or (file-name "M2-Planet" deps) ""))
|
||||||
("@MAKEINFO@" . ,(or (file-name "makeinfo" deps) ""))
|
("@MAKEINFO@" . ,(or (file-name "makeinfo" deps) ""))
|
||||||
("@MES_FOR_BUILD@" . ,(or (file-name "mes" deps)
|
("@MES_FOR_BUILD@" . ,(or (file-name "mes" deps)
|
||||||
guile))
|
guile))
|
||||||
("@MES_SEED@" . ,(or mes-seed ""))
|
|
||||||
("@PERL@" . ,(or (file-name "perl" deps) ""))
|
("@PERL@" . ,(or (file-name "perl" deps) ""))
|
||||||
("#SCHEME=\"@SCHEME@\"" . ,(if with-cheating? (string-append "\nSCHEME=\"" guile "\"") ""))
|
("#SCHEME=\"@SCHEME@\"" . ,(if with-cheating? (string-append "\nSCHEME=\"" guile "\"") ""))
|
||||||
("@SCHEME@" . ,(if with-cheating? guile ""))
|
("@SCHEME@" . ,(if with-cheating? guile ""))
|
||||||
|
@ -615,8 +616,8 @@ See \"Porting GNU Mes\" in the manual, or try --with-courage\n" mes-system)
|
||||||
deps))))
|
deps))))
|
||||||
|
|
||||||
(when (and (not cc)
|
(when (and (not cc)
|
||||||
(not mes-seed))
|
(not m2-planet))
|
||||||
(format (current-error-port) "must supply C compiler or MES_SEED/x86-mes/mes.S\n")
|
(format (current-error-port) "must supply C compiler or M2-Planet\n")
|
||||||
(exit 2))
|
(exit 2))
|
||||||
(for-each (lambda (o)
|
(for-each (lambda (o)
|
||||||
(let* ((src (string-append srcdest o))
|
(let* ((src (string-append srcdest o))
|
||||||
|
|
|
@ -71,6 +71,8 @@ fi
|
||||||
GUILE=${GUILE-$(command -v guile)} || true
|
GUILE=${GUILE-$(command -v guile)} || true
|
||||||
HEX2=${HEX2-$(command -v hex2)}
|
HEX2=${HEX2-$(command -v hex2)}
|
||||||
M1=${M1-$(command -v M1)}
|
M1=${M1-$(command -v M1)}
|
||||||
|
M2_PLANET=${M1-$(command -v M2-Planet)}
|
||||||
|
KAEM=${KAEM-$(command -v kaem)}
|
||||||
MES_FOR_BUILD=${MES_FOR_BUILD-$(command -v mes || command -v guile || echo mes)}
|
MES_FOR_BUILD=${MES_FOR_BUILD-$(command -v mes || command -v guile || echo mes)}
|
||||||
GIT=${GIT-$(command -v git)} || true
|
GIT=${GIT-$(command -v git)} || true
|
||||||
PERL=${PERL-$(command -v perl)} || true
|
PERL=${PERL-$(command -v perl)} || true
|
||||||
|
@ -154,6 +156,8 @@ subst () {
|
||||||
-e s,"@HEX2FLAGS@,$HEX2FLAGS,"\
|
-e s,"@HEX2FLAGS@,$HEX2FLAGS,"\
|
||||||
-e s,"@M1@,$M1,"\
|
-e s,"@M1@,$M1,"\
|
||||||
-e s,"@M1FLAGS@,$M1FLAGS,"\
|
-e s,"@M1FLAGS@,$M1FLAGS,"\
|
||||||
|
-e s,"@M2_PLANET@,$M2_PLANET,"\
|
||||||
|
-e s,"@KAEM@,$KAEM,"\
|
||||||
-e s,"@MES_FOR_BUILD@,$MES_FOR_BUILD,"\
|
-e s,"@MES_FOR_BUILD@,$MES_FOR_BUILD,"\
|
||||||
-e s,"@MES_SEED@,$MES_SEED,"\
|
-e s,"@MES_SEED@,$MES_SEED,"\
|
||||||
-e s,"@MES_SEED@,$MES_SEED,"\
|
-e s,"@MES_SEED@,$MES_SEED,"\
|
||||||
|
|
|
@ -520,7 +520,7 @@ build-aux/check-boot.sh
|
||||||
Run a single Mes boot test
|
Run a single Mes boot test
|
||||||
|
|
||||||
@example
|
@example
|
||||||
MES_BOOT=scaffold/boot/00-zero.scm src/mes
|
MES_BOOT=scaffold/boot/00-zero.scm bin/mes
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Run a single Mes Scheme test
|
Run a single Mes Scheme test
|
||||||
|
|
16
kaem.run
16
kaem.run
|
@ -19,6 +19,8 @@
|
||||||
# Usage:
|
# Usage:
|
||||||
# kaem --verbose --strict
|
# kaem --verbose --strict
|
||||||
|
|
||||||
|
mkdir -p m2
|
||||||
|
|
||||||
M2-Planet \
|
M2-Planet \
|
||||||
--debug \
|
--debug \
|
||||||
--architecture x86 \
|
--architecture x86 \
|
||||||
|
@ -107,9 +109,9 @@ M2-Planet \
|
||||||
-f src/struct.c \
|
-f src/struct.c \
|
||||||
-f src/symbol.c \
|
-f src/symbol.c \
|
||||||
-f src/vector.c \
|
-f src/vector.c \
|
||||||
-o bin/mes.M1
|
-o m2/mes.M1
|
||||||
|
|
||||||
blood-elf -f bin/mes.M1 -o bin/mes.blood-elf-M1
|
blood-elf -f m2/mes.M1 -o m2/mes.blood-elf-M1
|
||||||
|
|
||||||
M1 \
|
M1 \
|
||||||
--LittleEndian \
|
--LittleEndian \
|
||||||
|
@ -117,18 +119,20 @@ M1 \
|
||||||
-f lib/m2/x86/x86_defs.M1 \
|
-f lib/m2/x86/x86_defs.M1 \
|
||||||
-f lib/x86-mes/x86.M1 \
|
-f lib/x86-mes/x86.M1 \
|
||||||
-f lib/linux/x86-mes-m2/crt1.M1 \
|
-f lib/linux/x86-mes-m2/crt1.M1 \
|
||||||
-f bin/mes.M1 \
|
-f m2/mes.M1 \
|
||||||
-f bin/mes.blood-elf-M1 \
|
-f m2/mes.blood-elf-M1 \
|
||||||
-o bin/mes.hex2
|
-o m2/mes.hex2
|
||||||
|
|
||||||
|
mkdir -p bin
|
||||||
hex2 \
|
hex2 \
|
||||||
--LittleEndian \
|
--LittleEndian \
|
||||||
--architecture x86 \
|
--architecture x86 \
|
||||||
--BaseAddress 0x1000000 \
|
--BaseAddress 0x1000000 \
|
||||||
--exec_enable \
|
--exec_enable \
|
||||||
-f lib/x86-mes/elf32-header.hex2 \
|
-f lib/x86-mes/elf32-header.hex2 \
|
||||||
-f bin/mes.hex2 \
|
-f m2/mes.hex2 \
|
||||||
-o bin/mes-m2
|
-o bin/mes-m2
|
||||||
|
|
||||||
echo Running mes-m2
|
echo Running mes-m2
|
||||||
./bin/mes-m2 -c "(display 'Hello,M2-mes!) (newline)"
|
./bin/mes-m2 -c "(display 'Hello,M2-mes!) (newline)"
|
||||||
|
cp bin/mes-m2 bin/mes
|
||||||
|
|
16
simple.make
16
simple.make
|
@ -177,6 +177,7 @@ gc-m2: bin/gc-m2
|
||||||
|
|
||||||
bin/mes-gcc: simple.make $(GCC_SOURCES) $(MES_SOURCES) $(INCLUDES) | bin
|
bin/mes-gcc: simple.make $(GCC_SOURCES) $(MES_SOURCES) $(INCLUDES) | bin
|
||||||
$(CC) $(CFLAGS) $(GCC_SOURCES) $(MES_SOURCES) -o $@
|
$(CC) $(CFLAGS) $(GCC_SOURCES) $(MES_SOURCES) -o $@
|
||||||
|
cp -f $@ bin/mes
|
||||||
|
|
||||||
bin/gc-gcc: simple.make $(GCC_SOURCES) $(TEST_GC_SOURCES) $(INCLUDES) | bin
|
bin/gc-gcc: simple.make $(GCC_SOURCES) $(TEST_GC_SOURCES) $(INCLUDES) | bin
|
||||||
$(CC) $(CFLAGS) -D GC_TEST=1 $(GCC_SOURCES) $(TEST_GC_SOURCES) -o $@
|
$(CC) $(CFLAGS) -D GC_TEST=1 $(GCC_SOURCES) $(TEST_GC_SOURCES) -o $@
|
||||||
|
@ -194,33 +195,34 @@ M2_PLANET_SOURCES = \
|
||||||
$(M2_PLANET_INCLUDES:%.h=%.h) \
|
$(M2_PLANET_INCLUDES:%.h=%.h) \
|
||||||
$(M2_SOURCES)
|
$(M2_SOURCES)
|
||||||
|
|
||||||
bin/mes-m2.M1: simple.make $(M2_PLANET_SOURCES) $(MES_SOURCES) $(M2_PLANET_INCLUDES) | bin
|
m2/mes-m2.M1: simple.make $(M2_PLANET_SOURCES) $(MES_SOURCES) $(M2_PLANET_INCLUDES) | bin
|
||||||
$(M2_PLANET) $(M2_PLANET_FLAGS) $(M2_PLANET_SOURCES:%=-f %) $(MES_SOURCES:%.c=-f %.c) -o $@ || rm -f $@
|
$(M2_PLANET) $(M2_PLANET_FLAGS) $(M2_PLANET_SOURCES:%=-f %) $(MES_SOURCES:%.c=-f %.c) -o $@ || rm -f $@
|
||||||
|
|
||||||
bin/mes-m2.blood-elf.M1: bin/mes-m2.M1
|
m2/mes-m2.blood-elf.M1: m2/mes-m2.M1
|
||||||
# blood-elf --32 -f $< -o $@
|
# blood-elf --32 -f $< -o $@
|
||||||
blood-elf -f $< -o $@
|
blood-elf -f $< -o $@
|
||||||
|
|
||||||
bin/mes-m2.hex2: bin/mes-m2.blood-elf.M1
|
m2/mes-m2.hex2: m2/mes-m2.blood-elf.M1
|
||||||
M1 \
|
M1 \
|
||||||
--LittleEndian \
|
--LittleEndian \
|
||||||
--architecture $(M2_PLANET_ARCH) \
|
--architecture $(M2_PLANET_ARCH) \
|
||||||
-f lib/m2/x86/x86_defs.M1 \
|
-f lib/m2/x86/x86_defs.M1 \
|
||||||
-f lib/x86-mes/x86.M1 \
|
-f lib/x86-mes/x86.M1 \
|
||||||
-f lib/linux/x86-mes-m2/crt1.M1 \
|
-f lib/linux/x86-mes-m2/crt1.M1 \
|
||||||
-f bin/mes-m2.M1 \
|
-f m2/mes-m2.M1 \
|
||||||
-f bin/mes-m2.blood-elf.M1 \
|
-f m2/mes-m2.blood-elf.M1 \
|
||||||
-o $@
|
-o $@
|
||||||
|
|
||||||
bin/mes-m2: bin/mes-m2.hex2
|
bin/mes-m2: m2/mes-m2.hex2
|
||||||
hex2 \
|
hex2 \
|
||||||
--LittleEndian \
|
--LittleEndian \
|
||||||
--architecture $(M2_PLANET_ARCH) \
|
--architecture $(M2_PLANET_ARCH) \
|
||||||
--BaseAddress 0x1000000 \
|
--BaseAddress 0x1000000 \
|
||||||
--exec_enable \
|
--exec_enable \
|
||||||
-f lib/x86-mes/elf32-header.hex2 \
|
-f lib/x86-mes/elf32-header.hex2 \
|
||||||
-f bin/mes-m2.hex2 \
|
-f m2/mes-m2.hex2 \
|
||||||
-o $@
|
-o $@
|
||||||
|
cp -f $@ bin/mes
|
||||||
|
|
||||||
# Clean up after ourselves
|
# Clean up after ourselves
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests catch)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests catch)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests closure)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests closure)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests cwv)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests cwv)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests display)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests display)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests fluids)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests fluids)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests getopt-long)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests getopt-long)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests guile)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests guile)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests let-syntax)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests let-syntax)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests let)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests let)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
if [ "$MES" != guile ]; then
|
if [ "$MES" != guile ]; then
|
||||||
export MES_BOOT=boot-02.scm
|
export MES_BOOT=boot-02.scm
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../bin/mes}
|
||||||
$MES < $0
|
$MES < $0
|
||||||
exit $?
|
exit $?
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests match)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests match)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests math)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests math)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests module)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests module)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests optargs)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests optargs)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests peg)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests peg)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
if [ "$MES" != guile ]; then
|
if [ "$MES" != guile ]; then
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../bin/mes}
|
||||||
MES_BOOT=boot-02.scm exec $MES < $0
|
MES_BOOT=boot-02.scm exec $MES < $0
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests pmatch)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests pmatch)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-13)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-13)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES_ARENA=${MES_ARENA-10000000} exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests psyntax)' -s "$0" "$@"
|
MES_ARENA=${MES_ARENA-10000000} exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests psyntax)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
# along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if [ "$MES" != guile ]; then
|
if [ "$MES" != guile ]; then
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../bin/mes}
|
||||||
MES_BOOT=boot-02.scm exec $MES < $0
|
MES_BOOT=boot-02.scm exec $MES < $0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
if [ "$MES" != guile ]; then
|
if [ "$MES" != guile ]; then
|
||||||
export MES_BOOT=boot-02.scm
|
export MES_BOOT=boot-02.scm
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../bin/mes}
|
||||||
$MES < $0
|
$MES < $0
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-1)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-1)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-13)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-13)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-14)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-14)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-16)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-16)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-43)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-43)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-9)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests srfi-9)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests syntax)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests syntax)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
exec ${MES-src/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests vector)' -s "$0" "$@"
|
exec ${MES-bin/mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests vector)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; -*-scheme-*-
|
;;; -*-scheme-*-
|
||||||
|
|
Loading…
Reference in New Issue