2018-11-06 19:29:35 +00:00
|
|
|
# GNU Mes --- Maxwell Equations of Software
|
2023-05-03 12:47:09 +00:00
|
|
|
# Copyright © 2018,2023 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2018-11-06 19:29:35 +00:00
|
|
|
#
|
|
|
|
# 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/>.
|
|
|
|
|
2019-06-08 13:36:22 +00:00
|
|
|
config_sh=1
|
|
|
|
AR=${AR-"@AR@"}
|
2018-11-06 19:29:35 +00:00
|
|
|
BASH="@BASH@"
|
|
|
|
BLOOD_ELF="@BLOOD_ELF@"
|
2019-06-08 13:36:22 +00:00
|
|
|
CC=${CC-"@CC@"}
|
2019-12-02 17:26:08 +00:00
|
|
|
CFLAGS=${CFLAGS-"@CFLAGS@"}
|
|
|
|
CPPFLAGS=${CPPFLAGS-"@CPPFLAGS@"}
|
2019-06-08 13:36:22 +00:00
|
|
|
DIFF=${DIFF-@DIFF@}
|
2018-11-06 19:29:35 +00:00
|
|
|
DOT="@DOT@"
|
|
|
|
GIT="@GIT@"
|
|
|
|
GUILD="@GUILD@"
|
2020-10-07 11:55:06 +00:00
|
|
|
GUILD_OPTIMIZE="${GUILD_OPTIMIZE-@GUILD_OPTIMIZE@}"
|
2018-11-06 19:29:35 +00:00
|
|
|
GUILE="@GUILE@"
|
|
|
|
GUILE_EFFECTIVE_VERSION="@GUILE_EFFECTIVE_VERSION@"
|
2019-12-15 09:10:23 +00:00
|
|
|
GUILE_LOAD_PATH="@GUILE_LOAD_PATH@"
|
2018-11-06 19:29:35 +00:00
|
|
|
GUIX="@GUIX@"
|
|
|
|
HELP2MAN="@HELP2MAN@"
|
|
|
|
HEX2="@HEX2@"
|
2019-12-02 17:26:08 +00:00
|
|
|
LDFLAGS=${LDFLAGS-"@LDFLAGS@"}
|
2020-10-18 21:15:11 +00:00
|
|
|
KAEM="@KAEM@"
|
2018-11-06 19:29:35 +00:00
|
|
|
MAKEINFO="@MAKEINFO@"
|
|
|
|
M1="@M1@"
|
2020-10-18 21:15:11 +00:00
|
|
|
M2_PLANET="@M2_PLANET@"
|
2018-11-06 19:29:35 +00:00
|
|
|
MES_FOR_BUILD="@MES_FOR_BUILD@"
|
|
|
|
NYACC="@NYACC@"
|
|
|
|
PACKAGE="@PACKAGE@"
|
2019-06-08 13:36:22 +00:00
|
|
|
PACKAGE_NAME="@PACKAGE_NAME@"
|
|
|
|
PACKAGE_BUGREPORT="@PACKAGE_BUGREPORT@"
|
2018-11-06 19:29:35 +00:00
|
|
|
PERL="@PERL@"
|
2019-07-20 16:56:58 +00:00
|
|
|
#SCHEME="@SCHEME@"
|
2019-06-25 19:40:43 +00:00
|
|
|
SHELL="@SHELL@"
|
2018-11-06 19:29:35 +00:00
|
|
|
TINYCC_PREFIX="@TINYCC_PREFIX@"
|
|
|
|
VERSION="@VERSION@"
|
2019-06-08 13:36:22 +00:00
|
|
|
V=${V-"@V@"}
|
|
|
|
colors=${colors-@colors@}
|
2018-11-06 19:29:35 +00:00
|
|
|
|
|
|
|
abs_top_builddir="@abs_top_builddir@"
|
|
|
|
abs_top_srcdir="@abs_top_srcdir@"
|
|
|
|
arch="@arch@"
|
|
|
|
build="@build@"
|
|
|
|
host="@host@"
|
|
|
|
|
2019-10-15 18:18:31 +00:00
|
|
|
bootstrap=${bootstrap-@bootstrap@}
|
2019-06-08 13:36:22 +00:00
|
|
|
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@
|
2018-11-06 19:29:35 +00:00
|
|
|
|
|
|
|
prefix="@prefix@"
|
|
|
|
|
|
|
|
bindir="@bindir@"
|
|
|
|
datadir="@datadir@"
|
2019-06-08 13:36:22 +00:00
|
|
|
pkgdatadir="@pkgdatadir@"
|
2018-11-06 19:29:35 +00:00
|
|
|
docdir="@docdir@"
|
|
|
|
guile_site_ccache_dir="@guile_site_ccache_dir@"
|
|
|
|
guile_site_dir="@guile_site_dir@"
|
2019-06-08 13:36:22 +00:00
|
|
|
includedir="@includedir@"
|
2018-11-06 19:29:35 +00:00
|
|
|
infodir="@infodir@"
|
|
|
|
libdir="@libdir@"
|
|
|
|
mandir="@mandir@"
|
|
|
|
moduledir="@moduledir@"
|
2019-03-23 20:44:00 +00:00
|
|
|
with_glibc_p="@with_glibc_p@"
|
2018-11-06 19:29:35 +00:00
|
|
|
program_prefix="@program_prefix@"
|
2019-06-08 13:36:22 +00:00
|
|
|
srcdest=${srcdest-"@srcdest@"}
|
|
|
|
srcdir=${srcdir-"@srcdir@"}
|
2018-11-06 19:29:35 +00:00
|
|
|
sysconfdir="@sysconfdir@"
|
|
|
|
top_builddir="@top_builddir@"
|
2019-06-08 13:36:22 +00:00
|
|
|
|
2019-09-06 21:24:23 +00:00
|
|
|
MES_PREFIX=${MES_PREFIX-$abs_top_srcdir}
|
|
|
|
|
2019-06-08 13:36:22 +00:00
|
|
|
export PACKAGE
|
|
|
|
export PACKAGE_NAME
|
|
|
|
export PACKAGE_BUGREPORT
|
|
|
|
export AR
|
|
|
|
export CC
|
|
|
|
export DIFF
|
2019-06-25 19:40:43 +00:00
|
|
|
export SHELL
|
2019-06-08 13:36:22 +00:00
|
|
|
export V
|
x86_64: build: Cater for M2-Planet.
* 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.
2022-11-17 21:48:28 +00:00
|
|
|
export cc_cpu
|
2019-06-08 13:36:22 +00:00
|
|
|
export colors
|
|
|
|
export compiler
|
|
|
|
export courageous
|
2020-10-18 21:15:11 +00:00
|
|
|
export mes_cpu
|
2019-06-08 13:36:22 +00:00
|
|
|
export srcdest
|
|
|
|
export srcdir
|
2020-10-18 21:15:11 +00:00
|
|
|
export stage0_cpu
|
2019-06-08 13:36:22 +00:00
|
|
|
export GUILE_AUTO_COMPILE
|
2019-09-06 21:24:23 +00:00
|
|
|
export MES_PREFIX
|
2020-10-06 11:11:20 +00:00
|
|
|
export TESTS
|
|
|
|
export XFAIL_TESTS
|