2019-07-07 10:17:03 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# GNU Mes --- Maxwell Equations of Software
|
2021-05-02 11:10:40 +00:00
|
|
|
# Copyright © 2019,2020,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2019-07-07 10:17:03 +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/>.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
|
|
|
|
V=${V-1}
|
|
|
|
|
|
|
|
if [ "$V" = 2 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
|
|
|
. ./config.sh
|
|
|
|
|
2019-07-28 11:01:37 +00:00
|
|
|
libc_mini_shared_SOURCES="
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/mes/eputs.c
|
|
|
|
lib/mes/oputs.c
|
|
|
|
"
|
|
|
|
|
|
|
|
if test $mes_libc = mes; then
|
2019-07-28 11:01:37 +00:00
|
|
|
libc_mini_shared_SOURCES="$libc_mini_shared_SOURCES
|
2020-10-06 08:33:55 +00:00
|
|
|
lib/mes/globals.c
|
2019-07-28 11:01:37 +00:00
|
|
|
lib/stdlib/exit.c
|
2020-11-28 17:22:51 +00:00
|
|
|
lib/$mes_kernel/$mes_cpu-mes-$compiler/_exit.c
|
|
|
|
lib/$mes_kernel/$mes_cpu-mes-$compiler/_write.c
|
2019-07-28 11:01:37 +00:00
|
|
|
lib/stdlib/puts.c
|
|
|
|
lib/string/strlen.c
|
|
|
|
"
|
2019-03-10 20:52:05 +00:00
|
|
|
|
|
|
|
if test $mes_kernel = gnu; then
|
|
|
|
libc_mini_shared_SOURCES="$libc_mini_shared_SOURCES
|
|
|
|
lib/gnu/_exit.c
|
|
|
|
lib/gnu/exec-startup-get-data.c
|
2019-03-11 21:45:56 +00:00
|
|
|
lib/gnu/fd-get.c
|
|
|
|
lib/gnu/fd-write.c
|
|
|
|
lib/gnu/io-write.c
|
|
|
|
lib/gnu/_write.c
|
2019-03-10 20:52:05 +00:00
|
|
|
lib/gnu/hurd-start.c
|
|
|
|
lib/gnu/proc-mark-exit.c
|
|
|
|
lib/gnu/syscall.c
|
|
|
|
lib/gnu/task-get-special-port.c
|
|
|
|
lib/gnu/task-terminate.c
|
|
|
|
lib/gnu/vm-statistics.c
|
|
|
|
lib/mach/mach-init.c
|
|
|
|
lib/mach/mach_host_self.S
|
|
|
|
lib/mach/mach_msg_trap.S
|
|
|
|
lib/mach/mach_reply_port.S
|
|
|
|
lib/mach/mach_task_self.S
|
|
|
|
lib/mach/mach_thread_self.S
|
|
|
|
lib/mach/msg.c
|
2019-03-13 07:51:44 +00:00
|
|
|
lib/string/argz-extract.c
|
2019-03-10 20:52:05 +00:00
|
|
|
"
|
|
|
|
fi
|
2019-07-28 11:01:37 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
libc_mini_SOURCES="$libc_mini_shared_SOURCES"
|
|
|
|
|
|
|
|
if test $mes_libc = mes; then
|
|
|
|
libc_mini_SOURCES="$libc_mini_SOURCES
|
2019-12-07 22:29:34 +00:00
|
|
|
lib/mes/mini-write.c
|
2019-07-07 10:17:03 +00:00
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
Introduce libmescc.a; Put division by integer in there; split syscalls' errno off.
* build-aux/configure-lib.sh (libmescc_SOURCES): Add lib/mes/div.c,
lib/linux/*/syscall-internal.c.
* build-aux/build-lib.sh: Add libmescc.a.
* build-aux/build-mes.sh: On gcc, add "-lmescc".
* build-aux/test-c.sh: Add "-lmescc".
* build-aux/check.sh.in: Add mescc to LIBS.
* module/mescc/mescc.scm (mescc:link): Add "mescc".
* module/mescc.scm (mescc:main): Update documentation of "-nodefaultlibs"
and "-nostdlib".
* lib/mes/div.c (ldiv): Rename to...
(__mesabi_ldiv): ...this. Avoid assert.
(__mesabi_div0): Avoid assert.
(__aeabi_idivmod): New procedure.
(__aeabi_idiv): New procedure.
(__aeabi_uidivmod): New procedure.
(__aeabi_uidiv): New procedure.
* lib/linux/x86-mes-gcc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-gcc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/x86-mes-mescc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-mescc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/arm-mes-gcc/syscall.c: New file.
* lib/linux/arm-mes-gcc/syscall-internal.c: New file.
* lib/linux/arm-mes-mescc/syscall.c: New file.
* lib/linux/arm-mes-mescc/syscall-internal.c: New file.
* lib/gnu/syscall.c (__syscall, __syscall2, __syscall_get, __syscall_put):
Move to...
* lib/gnu/syscall-internal.c: ...here.
2020-06-01 21:47:49 +00:00
|
|
|
libmescc_SOURCES="
|
2020-10-06 08:33:55 +00:00
|
|
|
lib/mes/globals.c
|
Introduce libmescc.a; Put division by integer in there; split syscalls' errno off.
* build-aux/configure-lib.sh (libmescc_SOURCES): Add lib/mes/div.c,
lib/linux/*/syscall-internal.c.
* build-aux/build-lib.sh: Add libmescc.a.
* build-aux/build-mes.sh: On gcc, add "-lmescc".
* build-aux/test-c.sh: Add "-lmescc".
* build-aux/check.sh.in: Add mescc to LIBS.
* module/mescc/mescc.scm (mescc:link): Add "mescc".
* module/mescc.scm (mescc:main): Update documentation of "-nodefaultlibs"
and "-nostdlib".
* lib/mes/div.c (ldiv): Rename to...
(__mesabi_ldiv): ...this. Avoid assert.
(__mesabi_div0): Avoid assert.
(__aeabi_idivmod): New procedure.
(__aeabi_idiv): New procedure.
(__aeabi_uidivmod): New procedure.
(__aeabi_uidiv): New procedure.
* lib/linux/x86-mes-gcc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-gcc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/x86-mes-mescc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-mescc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/arm-mes-gcc/syscall.c: New file.
* lib/linux/arm-mes-gcc/syscall-internal.c: New file.
* lib/linux/arm-mes-mescc/syscall.c: New file.
* lib/linux/arm-mes-mescc/syscall-internal.c: New file.
* lib/gnu/syscall.c (__syscall, __syscall2, __syscall_get, __syscall_put):
Move to...
* lib/gnu/syscall-internal.c: ...here.
2020-06-01 21:47:49 +00:00
|
|
|
lib/linux/$mes_cpu-mes-$compiler/syscall-internal.c
|
2020-12-29 16:09:35 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
if test $mes_cpu = arm; then
|
|
|
|
libmescc_SOURCES="$libmescc_SOURCES
|
Introduce libmescc.a; Put division by integer in there; split syscalls' errno off.
* build-aux/configure-lib.sh (libmescc_SOURCES): Add lib/mes/div.c,
lib/linux/*/syscall-internal.c.
* build-aux/build-lib.sh: Add libmescc.a.
* build-aux/build-mes.sh: On gcc, add "-lmescc".
* build-aux/test-c.sh: Add "-lmescc".
* build-aux/check.sh.in: Add mescc to LIBS.
* module/mescc/mescc.scm (mescc:link): Add "mescc".
* module/mescc.scm (mescc:main): Update documentation of "-nodefaultlibs"
and "-nostdlib".
* lib/mes/div.c (ldiv): Rename to...
(__mesabi_ldiv): ...this. Avoid assert.
(__mesabi_div0): Avoid assert.
(__aeabi_idivmod): New procedure.
(__aeabi_idiv): New procedure.
(__aeabi_uidivmod): New procedure.
(__aeabi_uidiv): New procedure.
* lib/linux/x86-mes-gcc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-gcc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/x86-mes-mescc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-mescc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/arm-mes-gcc/syscall.c: New file.
* lib/linux/arm-mes-gcc/syscall-internal.c: New file.
* lib/linux/arm-mes-mescc/syscall.c: New file.
* lib/linux/arm-mes-mescc/syscall-internal.c: New file.
* lib/gnu/syscall.c (__syscall, __syscall2, __syscall_get, __syscall_put):
Move to...
* lib/gnu/syscall-internal.c: ...here.
2020-06-01 21:47:49 +00:00
|
|
|
lib/mes/div.c
|
|
|
|
"
|
2020-12-29 16:09:35 +00:00
|
|
|
fi
|
Introduce libmescc.a; Put division by integer in there; split syscalls' errno off.
* build-aux/configure-lib.sh (libmescc_SOURCES): Add lib/mes/div.c,
lib/linux/*/syscall-internal.c.
* build-aux/build-lib.sh: Add libmescc.a.
* build-aux/build-mes.sh: On gcc, add "-lmescc".
* build-aux/test-c.sh: Add "-lmescc".
* build-aux/check.sh.in: Add mescc to LIBS.
* module/mescc/mescc.scm (mescc:link): Add "mescc".
* module/mescc.scm (mescc:main): Update documentation of "-nodefaultlibs"
and "-nostdlib".
* lib/mes/div.c (ldiv): Rename to...
(__mesabi_ldiv): ...this. Avoid assert.
(__mesabi_div0): Avoid assert.
(__aeabi_idivmod): New procedure.
(__aeabi_idiv): New procedure.
(__aeabi_uidivmod): New procedure.
(__aeabi_uidiv): New procedure.
* lib/linux/x86-mes-gcc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-gcc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/x86-mes-mescc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-mescc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/arm-mes-gcc/syscall.c: New file.
* lib/linux/arm-mes-gcc/syscall-internal.c: New file.
* lib/linux/arm-mes-mescc/syscall.c: New file.
* lib/linux/arm-mes-mescc/syscall-internal.c: New file.
* lib/gnu/syscall.c (__syscall, __syscall2, __syscall_get, __syscall_put):
Move to...
* lib/gnu/syscall-internal.c: ...here.
2020-06-01 21:47:49 +00:00
|
|
|
|
2019-07-07 10:17:03 +00:00
|
|
|
libmes_SOURCES="
|
2019-07-28 11:01:37 +00:00
|
|
|
$libc_mini_shared_SOURCES
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/ctype/isnumber.c
|
|
|
|
lib/mes/abtol.c
|
2020-10-18 12:55:24 +00:00
|
|
|
lib/mes/cast.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/mes/eputc.c
|
|
|
|
lib/mes/fdgetc.c
|
|
|
|
lib/mes/fdputc.c
|
|
|
|
lib/mes/fdputs.c
|
|
|
|
lib/mes/fdungetc.c
|
2019-07-28 11:01:37 +00:00
|
|
|
lib/mes/itoa.c
|
|
|
|
lib/mes/ltoa.c
|
|
|
|
lib/mes/ltoab.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/mes/mes_open.c
|
|
|
|
lib/mes/ntoab.c
|
|
|
|
lib/mes/oputc.c
|
2019-07-28 11:01:37 +00:00
|
|
|
lib/mes/ultoa.c
|
|
|
|
lib/mes/utoa.c
|
2019-07-07 10:17:03 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
if test $mes_libc = mes; then
|
|
|
|
libmes_SOURCES="$libmes_SOURCES
|
|
|
|
lib/ctype/isdigit.c
|
|
|
|
lib/ctype/isspace.c
|
|
|
|
lib/ctype/isxdigit.c
|
2020-04-19 13:57:06 +00:00
|
|
|
lib/mes/assert_msg.c
|
2019-07-28 11:01:37 +00:00
|
|
|
lib/posix/write.c
|
|
|
|
lib/stdlib/atoi.c
|
2019-07-07 10:17:03 +00:00
|
|
|
"
|
2019-04-27 10:59:43 +00:00
|
|
|
if test $mes_kernel = gnu; then
|
|
|
|
libmes_SOURCES="$libmes_SOURCES
|
|
|
|
lib/stub/lseek.c
|
|
|
|
"
|
|
|
|
fi
|
2019-07-28 11:01:37 +00:00
|
|
|
if test $mes_kernel = linux; then
|
|
|
|
libmes_SOURCES="$libmes_SOURCES
|
|
|
|
lib/linux/lseek.c
|
|
|
|
"
|
|
|
|
fi
|
2019-07-07 10:17:03 +00:00
|
|
|
else
|
|
|
|
libmes_SOURCES="$libmes_SOURCES
|
2019-06-25 10:51:44 +00:00
|
|
|
lib/mes/abtod.c
|
2020-01-12 17:42:25 +00:00
|
|
|
lib/mes/dtoab.c
|
2019-07-07 10:17:03 +00:00
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
|
|
|
libc_SOURCES="
|
|
|
|
$libmes_SOURCES
|
|
|
|
lib/mes/__assert_fail.c
|
2019-07-27 20:58:49 +00:00
|
|
|
lib/mes/__buffered_read.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/mes/__mes_debug.c
|
|
|
|
lib/posix/execv.c
|
|
|
|
lib/posix/getcwd.c
|
|
|
|
lib/posix/getenv.c
|
|
|
|
lib/posix/isatty.c
|
|
|
|
lib/posix/open.c
|
2019-12-07 22:29:34 +00:00
|
|
|
lib/posix/buffered-read.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/posix/setenv.c
|
|
|
|
lib/posix/wait.c
|
|
|
|
lib/stdio/fgetc.c
|
|
|
|
lib/stdio/fputc.c
|
|
|
|
lib/stdio/fputs.c
|
|
|
|
lib/stdio/getc.c
|
|
|
|
lib/stdio/getchar.c
|
|
|
|
lib/stdio/putc.c
|
|
|
|
lib/stdio/putchar.c
|
|
|
|
lib/stdio/ungetc.c
|
|
|
|
lib/stdlib/free.c
|
|
|
|
lib/stdlib/realloc.c
|
|
|
|
lib/string/memchr.c
|
|
|
|
lib/string/memcmp.c
|
|
|
|
lib/string/memcpy.c
|
2019-07-27 20:58:49 +00:00
|
|
|
lib/string/memmove.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/string/memset.c
|
|
|
|
lib/string/strcmp.c
|
|
|
|
lib/string/strcpy.c
|
|
|
|
lib/string/strncmp.c
|
2020-08-29 10:52:12 +00:00
|
|
|
lib/posix/raise.c
|
2019-07-07 10:17:03 +00:00
|
|
|
"
|
|
|
|
|
2019-03-12 20:15:30 +00:00
|
|
|
if test $mes_kernel = gnu; then
|
|
|
|
libc_SOURCES="$libc_SOURCES
|
2019-03-13 23:08:35 +00:00
|
|
|
lib/gnu/_open3.c
|
2019-03-12 20:15:30 +00:00
|
|
|
lib/gnu/_read.c
|
2019-03-13 23:08:35 +00:00
|
|
|
lib/gnu/dir-lookup.c
|
2019-03-12 20:15:30 +00:00
|
|
|
lib/gnu/fd-read.c
|
|
|
|
lib/gnu/io-read.c
|
2019-03-12 22:58:52 +00:00
|
|
|
lib/gnu/malloc.c
|
|
|
|
lib/gnu/vm-allocate.c
|
2019-03-12 21:14:25 +00:00
|
|
|
lib/stub/access.c
|
|
|
|
lib/stub/brk.c
|
|
|
|
lib/stub/chmod.c
|
|
|
|
lib/stub/clock_gettime.c
|
|
|
|
lib/stub/dup2.c
|
|
|
|
lib/stub/dup.c
|
|
|
|
lib/stub/execve.c
|
|
|
|
lib/stub/fork.c
|
|
|
|
lib/stub/_getcwd.c
|
|
|
|
lib/stub/gettimeofday.c
|
2020-12-29 17:41:45 +00:00
|
|
|
lib/stub/ioctl3.c
|
2019-03-12 21:14:25 +00:00
|
|
|
lib/stub/time.c
|
|
|
|
lib/stub/unlink.c
|
|
|
|
lib/stub/waitpid.c
|
2019-03-12 20:15:30 +00:00
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2019-07-07 10:17:03 +00:00
|
|
|
if test $mes_kernel = linux; then
|
|
|
|
libc_SOURCES="$libc_SOURCES
|
|
|
|
lib/linux/access.c
|
|
|
|
lib/linux/brk.c
|
|
|
|
lib/linux/chmod.c
|
|
|
|
lib/linux/clock_gettime.c
|
|
|
|
lib/linux/dup.c
|
|
|
|
lib/linux/dup2.c
|
|
|
|
lib/linux/execve.c
|
|
|
|
lib/linux/fork.c
|
|
|
|
lib/linux/fsync.c
|
|
|
|
lib/linux/_getcwd.c
|
|
|
|
lib/linux/gettimeofday.c
|
2020-12-29 17:41:45 +00:00
|
|
|
lib/linux/ioctl3.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/linux/_open3.c
|
2021-05-02 11:10:40 +00:00
|
|
|
lib/linux/malloc.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/linux/_read.c
|
|
|
|
lib/linux/time.c
|
|
|
|
lib/linux/unlink.c
|
|
|
|
lib/linux/waitpid.c
|
|
|
|
lib/linux/$mes_cpu-mes-$compiler/syscall.c
|
2020-08-29 10:52:12 +00:00
|
|
|
lib/linux/getpid.c
|
|
|
|
lib/linux/kill.c
|
2019-07-07 10:17:03 +00:00
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
|
|
|
libtcc1_SOURCES="
|
|
|
|
lib/libtcc1.c
|
|
|
|
"
|
|
|
|
|
2020-11-22 19:44:05 +00:00
|
|
|
if test $mes_cpu = arm; then
|
|
|
|
libtcc1_SOURCES="$libtcc1_SOURCES
|
|
|
|
lib/mes/div.c
|
|
|
|
lib/string/__memcpy.c
|
|
|
|
lib/string/__memmove.c
|
|
|
|
lib/string/__memset.c
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2019-07-07 10:17:03 +00:00
|
|
|
libc_tcc_SOURCES="
|
|
|
|
$libc_SOURCES
|
|
|
|
lib/ctype/islower.c
|
|
|
|
lib/ctype/isupper.c
|
|
|
|
lib/ctype/tolower.c
|
|
|
|
lib/ctype/toupper.c
|
2019-06-25 10:51:44 +00:00
|
|
|
lib/mes/abtod.c
|
2020-01-12 17:42:25 +00:00
|
|
|
lib/mes/dtoab.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/mes/search-path.c
|
|
|
|
lib/posix/execvp.c
|
|
|
|
lib/stdio/fclose.c
|
|
|
|
lib/stdio/fdopen.c
|
|
|
|
lib/stdio/ferror.c
|
|
|
|
lib/stdio/fflush.c
|
|
|
|
lib/stdio/fopen.c
|
|
|
|
lib/stdio/fprintf.c
|
|
|
|
lib/stdio/fread.c
|
|
|
|
lib/stdio/fseek.c
|
|
|
|
lib/stdio/ftell.c
|
|
|
|
lib/stdio/fwrite.c
|
|
|
|
lib/stdio/printf.c
|
|
|
|
lib/stdio/remove.c
|
|
|
|
lib/stdio/snprintf.c
|
|
|
|
lib/stdio/sprintf.c
|
|
|
|
lib/stdio/sscanf.c
|
|
|
|
lib/stdio/vfprintf.c
|
|
|
|
lib/stdio/vprintf.c
|
|
|
|
lib/stdio/vsnprintf.c
|
|
|
|
lib/stdio/vsprintf.c
|
|
|
|
lib/stdio/vsscanf.c
|
|
|
|
lib/stdlib/calloc.c
|
|
|
|
lib/stdlib/qsort.c
|
2019-06-25 10:51:44 +00:00
|
|
|
lib/stdlib/strtod.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stdlib/strtof.c
|
|
|
|
lib/stdlib/strtol.c
|
|
|
|
lib/stdlib/strtold.c
|
|
|
|
lib/stdlib/strtoll.c
|
|
|
|
lib/stdlib/strtoul.c
|
|
|
|
lib/stdlib/strtoull.c
|
|
|
|
lib/string/memmem.c
|
|
|
|
lib/string/strcat.c
|
|
|
|
lib/string/strchr.c
|
|
|
|
lib/string/strlwr.c
|
|
|
|
lib/string/strncpy.c
|
|
|
|
lib/string/strrchr.c
|
|
|
|
lib/string/strstr.c
|
|
|
|
lib/string/strupr.c
|
|
|
|
lib/stub/sigaction.c
|
|
|
|
lib/stub/ldexp.c
|
|
|
|
lib/stub/mprotect.c
|
|
|
|
lib/stub/localtime.c
|
|
|
|
lib/stub/sigemptyset.c
|
|
|
|
lib/$mes_cpu-mes-$compiler/setjmp.c
|
|
|
|
"
|
|
|
|
|
|
|
|
if test $mes_kernel = linux; then
|
|
|
|
libc_tcc_SOURCES="$libc_tcc_SOURCES
|
|
|
|
lib/linux/close.c
|
|
|
|
lib/linux/rmdir.c
|
|
|
|
lib/linux/stat.c
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2019-04-27 10:21:10 +00:00
|
|
|
if test $mes_kernel = gnu; then
|
|
|
|
libc_tcc_SOURCES="$libc_tcc_SOURCES
|
|
|
|
lib/stub/close.c
|
|
|
|
lib/stub/rmdir.c
|
|
|
|
lib/stub/stat.c
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2019-07-07 10:17:03 +00:00
|
|
|
libc_gnu_SOURCES="
|
|
|
|
$libc_tcc_SOURCES
|
|
|
|
lib/ctype/isalnum.c
|
|
|
|
lib/ctype/isalpha.c
|
|
|
|
lib/ctype/isascii.c
|
|
|
|
lib/ctype/iscntrl.c
|
2019-06-16 09:25:37 +00:00
|
|
|
lib/ctype/isgraph.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/ctype/isprint.c
|
|
|
|
lib/ctype/ispunct.c
|
|
|
|
lib/dirent/__getdirentries.c
|
|
|
|
lib/dirent/closedir.c
|
|
|
|
lib/dirent/opendir.c
|
|
|
|
lib/dirent/readdir.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/math/ceil.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/math/fabs.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/math/floor.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/mes/fdgets.c
|
|
|
|
lib/posix/alarm.c
|
|
|
|
lib/posix/execl.c
|
2019-06-09 22:56:42 +00:00
|
|
|
lib/posix/execlp.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/posix/mktemp.c
|
|
|
|
lib/posix/sbrk.c
|
|
|
|
lib/posix/sleep.c
|
|
|
|
lib/posix/unsetenv.c
|
|
|
|
lib/stdio/clearerr.c
|
|
|
|
lib/stdio/feof.c
|
|
|
|
lib/stdio/fgets.c
|
|
|
|
lib/stdio/fileno.c
|
|
|
|
lib/stdio/freopen.c
|
2019-09-06 17:04:50 +00:00
|
|
|
lib/stdio/fscanf.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stdio/perror.c
|
2019-09-06 17:04:50 +00:00
|
|
|
lib/stdio/vfscanf.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stdlib/__exit.c
|
|
|
|
lib/stdlib/abort.c
|
|
|
|
lib/stdlib/abs.c
|
|
|
|
lib/stdlib/alloca.c
|
|
|
|
lib/stdlib/atexit.c
|
2019-07-03 09:22:57 +00:00
|
|
|
lib/stdlib/atof.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stdlib/atol.c
|
|
|
|
lib/stdlib/mbstowcs.c
|
|
|
|
lib/string/bcmp.c
|
|
|
|
lib/string/bcopy.c
|
|
|
|
lib/string/bzero.c
|
|
|
|
lib/string/index.c
|
|
|
|
lib/string/rindex.c
|
|
|
|
lib/string/strcspn.c
|
|
|
|
lib/string/strdup.c
|
|
|
|
lib/string/strerror.c
|
|
|
|
lib/string/strncat.c
|
|
|
|
lib/string/strpbrk.c
|
|
|
|
lib/string/strspn.c
|
|
|
|
lib/stub/__cleanup.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/stub/atan2.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/bsearch.c
|
|
|
|
lib/stub/chown.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/stub/cos.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/ctime.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/stub/exp.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/fpurge.c
|
|
|
|
lib/stub/freadahead.c
|
|
|
|
lib/stub/frexp.c
|
2019-07-24 10:23:54 +00:00
|
|
|
lib/stub/getgrgid.c
|
|
|
|
lib/stub/getgrnam.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/getlogin.c
|
2019-07-18 10:13:18 +00:00
|
|
|
lib/stub/getpgid.c
|
|
|
|
lib/stub/getpgrp.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/getpwnam.c
|
|
|
|
lib/stub/getpwuid.c
|
|
|
|
lib/stub/gmtime.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/stub/log.c
|
2019-07-15 09:58:21 +00:00
|
|
|
lib/stub/mktime.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/stub/modf.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/pclose.c
|
|
|
|
lib/stub/popen.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/stub/pow.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/rand.c
|
2019-11-10 08:00:08 +00:00
|
|
|
lib/stub/rewind.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/setbuf.c
|
2019-07-24 10:23:54 +00:00
|
|
|
lib/stub/setgrent.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/setlocale.c
|
|
|
|
lib/stub/setvbuf.c
|
|
|
|
lib/stub/sigaddset.c
|
|
|
|
lib/stub/sigblock.c
|
|
|
|
lib/stub/sigdelset.c
|
|
|
|
lib/stub/sigsetmask.c
|
mescc: Mes C Library: Support gcc-4.6.4: Add math stubs.
* lib/math/ceil.c: New file.
* lib/math/floor.c: New file.
* lib/stub/atan2.c: New file.
* lib/stub/cos.c: New file.
* lib/stub/exp.c: New file.
* lib/stub/log.c: New file.
* lib/stub/modf.c: New file.
* lib/stub/pow.c: New file.
* lib/stub/sin.c: New file.
* lib/stub/sqrt.c: New file.
* lib/libc+gnu.c: Include them.
* include/math.h (atan2, ceil, cos, exp, fabs, floor, log, modf, pow,
sin, sqrt): Declare.
* lib/math/fabs.c: Update.
* lib/stub/ldexp.c: Update.
2019-09-13 13:11:38 +00:00
|
|
|
lib/stub/sin.c
|
|
|
|
lib/stub/sqrt.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/stub/strftime.c
|
|
|
|
lib/stub/sys_siglist.c
|
|
|
|
lib/stub/system.c
|
|
|
|
lib/stub/times.c
|
|
|
|
lib/stub/ttyname.c
|
|
|
|
lib/stub/umask.c
|
|
|
|
lib/stub/utime.c
|
|
|
|
"
|
|
|
|
|
|
|
|
if test $mes_kernel = linux; then
|
|
|
|
libc_gnu_SOURCES="$libc_gnu_SOURCES
|
|
|
|
lib/linux/chdir.c
|
|
|
|
lib/linux/fcntl.c
|
|
|
|
lib/linux/fstat.c
|
|
|
|
lib/linux/getdents.c
|
|
|
|
lib/linux/getegid.c
|
|
|
|
lib/linux/geteuid.c
|
|
|
|
lib/linux/getgid.c
|
|
|
|
lib/linux/getppid.c
|
|
|
|
lib/linux/getrusage.c
|
|
|
|
lib/linux/getuid.c
|
2020-12-29 17:41:45 +00:00
|
|
|
lib/linux/ioctl.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/linux/link.c
|
|
|
|
lib/linux/lstat.c
|
|
|
|
lib/linux/mkdir.c
|
2019-07-12 09:56:58 +00:00
|
|
|
lib/linux/mknod.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/linux/nanosleep.c
|
|
|
|
lib/linux/pipe.c
|
2019-06-12 23:07:19 +00:00
|
|
|
lib/linux/readlink.c
|
2019-07-07 10:17:03 +00:00
|
|
|
lib/linux/rename.c
|
|
|
|
lib/linux/setgid.c
|
|
|
|
lib/linux/settimer.c
|
|
|
|
lib/linux/setuid.c
|
|
|
|
lib/linux/signal.c
|
|
|
|
lib/linux/sigprogmask.c
|
2019-06-12 23:07:19 +00:00
|
|
|
lib/linux/symlink.c
|
2019-07-07 10:17:03 +00:00
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
|
|
|
mes_SOURCES="
|
2020-04-19 08:49:48 +00:00
|
|
|
src/builtins.c
|
2020-08-18 21:01:53 +00:00
|
|
|
src/cc.c
|
core: Split-out core.c.
* src/mes.c (assoc_string, car, cdr, list, null_p, eq_p, values, acons,
length__, length, error, append2, append_reverse, reverse_x_, assq,
assoc): Move to ...
* src/core.c: New file.
* build-aux/configure-lib.sh (mes_SOURCES): Add it.
* simple.make (MES_SOURCES): Likewise.
* build-aux/snarf.sh: Likewise.
* include/mes/builtins.h: Update.
* src/builtins.c (mes_builtins): Update.
2020-07-19 06:49:23 +00:00
|
|
|
src/core.c
|
2020-05-17 18:42:48 +00:00
|
|
|
src/display.c
|
core: Split-out eval-apply.c.
* src/mes.c (check_formals, check_apply, pairlis, set_car_x, set_cdr_x,
set_env_x, call_lambda, make_closure_, make_variable_, macro_get_handle,
get_macro, macro_set_x, push_cc, add_formals, formal_p,
expand_variable_, expand_variable, apply_builtin, eval_apply, apply):
Move to ..
* src/eval-apply.c: New file.
* build-aux/configure-lib.sh (mes_SOURCES): Add it.
* simple.make: Likewise.
* src/eval.c (assert_defined): Likewise.
2020-05-17 18:14:08 +00:00
|
|
|
src/eval-apply.c
|
2019-07-07 10:17:03 +00:00
|
|
|
src/gc.c
|
|
|
|
src/hash.c
|
|
|
|
src/lib.c
|
|
|
|
src/math.c
|
|
|
|
src/mes.c
|
|
|
|
src/module.c
|
|
|
|
src/posix.c
|
|
|
|
src/reader.c
|
2020-07-19 06:53:46 +00:00
|
|
|
src/stack.c
|
2019-07-07 10:17:03 +00:00
|
|
|
src/string.c
|
|
|
|
src/struct.c
|
2020-05-17 18:50:12 +00:00
|
|
|
src/symbol.c
|
2019-07-07 10:17:03 +00:00
|
|
|
src/vector.c
|
|
|
|
"
|