189ea8eb9d
* build-aux/cflags.sh: Set cc_cpu. * build-aux/config.sh.in (cc_cpu): Export. * build-aux/export.make (cc_cpu): Likewise. * kaem.arm (cc_cpu): New variable. * kaem.x86 (cc_cpu): New variable. * kaem.run (cc_cpu): New variable. Define __<cc_cpu>__. * scaffold/argv.kaem (cc_cpu): Likewise. Define __linux__ * scaffold/global-array.kaem (cc_cpu): Likewise. * scaffold/hello.kaem (cc_cpu): Likewise. * scaffold/local-array.kaem (cc_cpu): Likewise. * scaffold/local-static-array.kaem (cc_cpu): Likewise. * scaffold/main.kaem (cc_cpu): Likewise. * scaffold/read.kaem (cc_cpu): Likewise. * kaem.x86_64: New file. lib/m2/x86_64/ELF-x86_64.hex2, lib/m2/x86_64/x86_64_defs.M1: New files, imported from M2Libc. lib/linux/x86_64-mes-m2/_exit.c, lib/linux/x86_64-mes-m2/_write.c, lib/linux/x86_64-mes-m2/crt1.M1, lib/linux/x86_64-mes-m2/crt1.c, lib/linux/x86_64-mes-m2/syscall.c: New files, adapted for M2-Planet calling convention from ... * lib/linux/x86_64-mes-mescc: ... here. * build-aux/build.sh.in: Also allow kaem build for x86_64. * include/mes/lib-mini.h[__M2__]: Define as sizeof (void*). * include/mes/mes.h[__M2__](M2_CELL_SIZE): Define as sizeof (struct scm). * lib/x86_64-mes/x86_64.M1 (add____$i8,%rbp, mov____%rdi,%rbp): New defines. * src/posix.c (TIME_UNITS_PER_SECOND): Cater for 64bit M2-Planet.
112 lines
2.7 KiB
Bash
112 lines
2.7 KiB
Bash
# GNU Mes --- Maxwell Equations of Software
|
|
# Copyright © 2018,2023 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
|
#
|
|
# This file is part of GNU Mes.
|
|
#
|
|
# GNU Mes is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or (at
|
|
# your option) any later version.
|
|
#
|
|
# GNU Mes is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
config_sh=1
|
|
AR=${AR-"@AR@"}
|
|
BASH="@BASH@"
|
|
BLOOD_ELF="@BLOOD_ELF@"
|
|
CC=${CC-"@CC@"}
|
|
CFLAGS=${CFLAGS-"@CFLAGS@"}
|
|
CPPFLAGS=${CPPFLAGS-"@CPPFLAGS@"}
|
|
DIFF=${DIFF-@DIFF@}
|
|
DOT="@DOT@"
|
|
GIT="@GIT@"
|
|
GUILD="@GUILD@"
|
|
GUILD_OPTIMIZE="${GUILD_OPTIMIZE-@GUILD_OPTIMIZE@}"
|
|
GUILE="@GUILE@"
|
|
GUILE_EFFECTIVE_VERSION="@GUILE_EFFECTIVE_VERSION@"
|
|
GUILE_LOAD_PATH="@GUILE_LOAD_PATH@"
|
|
GUIX="@GUIX@"
|
|
HELP2MAN="@HELP2MAN@"
|
|
HEX2="@HEX2@"
|
|
LDFLAGS=${LDFLAGS-"@LDFLAGS@"}
|
|
KAEM="@KAEM@"
|
|
MAKEINFO="@MAKEINFO@"
|
|
M1="@M1@"
|
|
M2_PLANET="@M2_PLANET@"
|
|
MES_FOR_BUILD="@MES_FOR_BUILD@"
|
|
NYACC="@NYACC@"
|
|
PACKAGE="@PACKAGE@"
|
|
PACKAGE_NAME="@PACKAGE_NAME@"
|
|
PACKAGE_BUGREPORT="@PACKAGE_BUGREPORT@"
|
|
PERL="@PERL@"
|
|
#SCHEME="@SCHEME@"
|
|
SHELL="@SHELL@"
|
|
TINYCC_PREFIX="@TINYCC_PREFIX@"
|
|
VERSION="@VERSION@"
|
|
V=${V-"@V@"}
|
|
colors=${colors-@colors@}
|
|
|
|
abs_top_builddir="@abs_top_builddir@"
|
|
abs_top_srcdir="@abs_top_srcdir@"
|
|
arch="@arch@"
|
|
build="@build@"
|
|
host="@host@"
|
|
|
|
bootstrap=${bootstrap-@bootstrap@}
|
|
compiler=${compiler-@compiler@}
|
|
courageous=${courageous-@courageous@}
|
|
mes_system=@mes_system@
|
|
mes_cpu=@mes_cpu@
|
|
mes_bits=@mes_bits@
|
|
mes_libc=@mes_libc@
|
|
mes_kernel=@mes_kernel@
|
|
|
|
prefix="@prefix@"
|
|
|
|
bindir="@bindir@"
|
|
datadir="@datadir@"
|
|
pkgdatadir="@pkgdatadir@"
|
|
docdir="@docdir@"
|
|
guile_site_ccache_dir="@guile_site_ccache_dir@"
|
|
guile_site_dir="@guile_site_dir@"
|
|
includedir="@includedir@"
|
|
infodir="@infodir@"
|
|
libdir="@libdir@"
|
|
mandir="@mandir@"
|
|
moduledir="@moduledir@"
|
|
with_glibc_p="@with_glibc_p@"
|
|
program_prefix="@program_prefix@"
|
|
srcdest=${srcdest-"@srcdest@"}
|
|
srcdir=${srcdir-"@srcdir@"}
|
|
sysconfdir="@sysconfdir@"
|
|
top_builddir="@top_builddir@"
|
|
|
|
MES_PREFIX=${MES_PREFIX-$abs_top_srcdir}
|
|
|
|
export PACKAGE
|
|
export PACKAGE_NAME
|
|
export PACKAGE_BUGREPORT
|
|
export AR
|
|
export CC
|
|
export DIFF
|
|
export SHELL
|
|
export V
|
|
export cc_cpu
|
|
export colors
|
|
export compiler
|
|
export courageous
|
|
export mes_cpu
|
|
export srcdest
|
|
export srcdir
|
|
export stage0_cpu
|
|
export GUILE_AUTO_COMPILE
|
|
export MES_PREFIX
|
|
export TESTS
|
|
export XFAIL_TESTS
|