simple.sh: Resurrect.

* simple.sh: Add src/globals.c, lib/stub/__raise.c.  Use
lib/linux/malloc.c instead of lib/stdlib/malloc.c.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-05-03 23:06:41 +02:00
parent 5f73e64480
commit fc6e88ab89
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

305
simple.sh
View file

@ -36,47 +36,48 @@ cat > include/mes/config.h <<EOF
EOF EOF
## Build ## ## Build ##
gcc -g -D HAVE_CONFIG_H=1 -I include\ gcc -g -D HAVE_CONFIG_H=1 -I include \
-o out-system-libc/mes\ -o out-system-libc/mes \
\ \
lib/mes/eputs.c\ lib/mes/eputs.c \
lib/mes/oputs.c\ lib/mes/oputs.c \
\ \
lib/mes/cast.c\ lib/mes/cast.c \
lib/mes/itoa.c\ lib/mes/itoa.c \
lib/mes/ltoa.c\ lib/mes/ltoa.c \
lib/mes/ltoab.c\ lib/mes/ltoab.c \
lib/mes/ultoa.c\ lib/mes/ultoa.c \
lib/mes/utoa.c\ lib/mes/utoa.c \
lib/mes/eputc.c\ lib/mes/eputc.c \
lib/mes/fdgetc.c\ lib/mes/fdgetc.c \
lib/mes/fdputc.c\ lib/mes/fdputc.c \
lib/mes/fdputs.c\ lib/mes/fdputs.c \
lib/mes/fdungetc.c\ lib/mes/fdungetc.c \
lib/mes/mes_open.c\ lib/mes/mes_open.c \
lib/mes/ntoab.c\ lib/mes/ntoab.c \
lib/mes/oputc.c\ lib/mes/oputc.c \
\ \
lib/mes/__assert_fail.c\ lib/mes/__assert_fail.c \
lib/mes/assert_msg.c\ lib/mes/assert_msg.c \
\ \
src/builtins.c\ src/builtins.c \
src/cc.c\ src/cc.c \
src/core.c\ src/core.c \
src/display.c\ src/display.c \
src/eval-apply.c\ src/eval-apply.c \
src/gc.c\ src/gc.c \
src/hash.c\ src/globals.c \
src/lib.c\ src/hash.c \
src/math.c\ src/lib.c \
src/mes.c\ src/math.c \
src/module.c\ src/mes.c \
src/posix.c\ src/module.c \
src/reader.c\ src/posix.c \
src/stack.c\ src/reader.c \
src/string.c\ src/stack.c \
src/struct.c\ src/string.c \
src/symbol.c\ src/struct.c \
src/symbol.c \
src/vector.c src/vector.c
## Check ## ## Check ##
@ -164,115 +165,119 @@ EOF
## Build ## ## Build ##
compiler=gcc # not configurable compiler=gcc # not configurable
$CC -g -D HAVE_CONFIG_H=1 -I include -I include/$mes_kernel/$mes_cpu\ $CC -g -D HAVE_CONFIG_H=1 \
-nostdinc -nostdlib -fno-builtin -fno-stack-protector\ -I include -I include/$mes_kernel/$mes_cpu \
-o out-mes/mes\ -nostdinc -nostdlib \
\ -fno-builtin -fno-stack-protector \
lib/linux/$mes_cpu-mes-gcc/crt1.c\ -o out-mes/mes \
\ \
lib/mes/globals.c\ lib/linux/$mes_cpu-mes-gcc/crt1.c \
lib/mes/eputs.c\ \
lib/mes/oputs.c\ lib/mes/globals.c \
\ lib/mes/eputs.c \
lib/posix/write.c\ lib/mes/oputs.c \
lib/string/strlen.c\ \
lib/stdlib/puts.c\ lib/posix/write.c \
lib/stdlib/exit.c\ lib/string/strlen.c \
lib/$mes_kernel/$mes_cpu-mes-$compiler/_exit.c\ lib/stdlib/puts.c \
lib/$mes_kernel/$mes_cpu-mes-$compiler/_write.c\ lib/stdlib/exit.c \
\ lib/$mes_kernel/$mes_cpu-mes-$compiler/_exit.c \
lib/mes/cast.c\ lib/$mes_kernel/$mes_cpu-mes-$compiler/_write.c \
lib/mes/itoa.c\ \
lib/mes/ltoa.c\ lib/mes/cast.c \
lib/mes/ltoab.c\ lib/mes/itoa.c \
lib/mes/ultoa.c\ lib/mes/ltoa.c \
lib/mes/utoa.c\ lib/mes/ltoab.c \
lib/mes/eputc.c\ lib/mes/ultoa.c \
lib/mes/fdgetc.c\ lib/mes/utoa.c \
lib/mes/fdputc.c\ lib/mes/eputc.c \
lib/mes/fdputs.c\ lib/mes/fdgetc.c \
lib/mes/fdungetc.c\ lib/mes/fdputc.c \
lib/mes/mes_open.c\ lib/mes/fdputs.c \
lib/mes/ntoab.c\ lib/mes/fdungetc.c \
lib/mes/oputc.c\ lib/mes/mes_open.c \
\ lib/mes/ntoab.c \
lib/stdlib/atoi.c\ lib/mes/oputc.c \
lib/mes/abtol.c\ \
lib/ctype/isdigit.c\ lib/stdlib/atoi.c \
lib/ctype/isnumber.c\ lib/mes/abtol.c \
lib/ctype/isspace.c\ lib/ctype/isdigit.c \
lib/ctype/isxdigit.c\ lib/ctype/isnumber.c \
\ lib/ctype/isspace.c \
lib/mes/__assert_fail.c\ lib/ctype/isxdigit.c \
lib/mes/assert_msg.c\ \
lib/mes/__buffered_read.c\ lib/stub/__raise.c \
lib/mes/__mes_debug.c\ lib/mes/__assert_fail.c \
lib/posix/execv.c\ lib/mes/assert_msg.c \
lib/posix/getcwd.c\ lib/mes/__buffered_read.c \
lib/posix/getenv.c\ lib/mes/__mes_debug.c \
lib/posix/isatty.c\ lib/posix/execv.c \
lib/posix/open.c\ lib/posix/getcwd.c \
lib/posix/setenv.c\ lib/posix/getenv.c \
lib/posix/wait.c\ lib/posix/isatty.c \
lib/stdio/fgetc.c\ lib/posix/open.c \
lib/stdio/fputc.c\ lib/posix/setenv.c \
lib/stdio/fputs.c\ lib/posix/wait.c \
lib/stdio/getc.c\ lib/stdio/fgetc.c \
lib/stdio/getchar.c\ lib/stdio/fputc.c \
lib/stdio/putc.c\ lib/stdio/fputs.c \
lib/stdio/putchar.c\ lib/stdio/getc.c \
lib/stdio/ungetc.c\ lib/stdio/getchar.c \
lib/stdlib/free.c\ lib/stdio/putc.c \
lib/stdlib/malloc.c\ lib/stdio/putchar.c \
lib/stdlib/realloc.c\ lib/stdio/ungetc.c \
lib/string/memchr.c\ lib/stdlib/free.c \
lib/string/memcmp.c\ lib/linux/malloc.c \
lib/string/memcpy.c\ lib/stdlib/realloc.c \
lib/string/memmove.c\ lib/string/memchr.c \
lib/string/memset.c\ lib/string/memcmp.c \
lib/string/strcmp.c\ lib/string/memcpy.c \
lib/string/strcpy.c\ lib/string/memmove.c \
lib/string/strncmp.c\ lib/string/memset.c \
\ lib/string/strcmp.c \
lib/linux/lseek.c\ lib/string/strcpy.c \
\ lib/string/strncmp.c \
lib/linux/access.c\ \
lib/linux/brk.c\ lib/linux/lseek.c \
lib/linux/chmod.c\ \
lib/linux/clock_gettime.c\ lib/linux/access.c \
lib/linux/dup.c\ lib/linux/brk.c \
lib/linux/dup2.c\ lib/linux/chmod.c \
lib/linux/execve.c\ lib/linux/clock_gettime.c \
lib/linux/fork.c\ lib/linux/dup.c \
lib/linux/fsync.c\ lib/linux/dup2.c \
lib/linux/_getcwd.c\ lib/linux/execve.c \
lib/linux/gettimeofday.c\ lib/linux/fork.c \
lib/linux/ioctl3.c\ lib/linux/fsync.c \
lib/linux/_open3.c\ lib/linux/_getcwd.c \
lib/linux/read.c\ lib/linux/gettimeofday.c \
lib/linux/_read.c\ lib/linux/ioctl3.c \
lib/linux/time.c\ lib/linux/_open3.c \
lib/linux/unlink.c\ lib/linux/read.c \
lib/linux/waitpid.c\ lib/linux/_read.c \
lib/linux/$mes_cpu-mes-$compiler/syscall.c\ lib/linux/time.c \
\ lib/linux/unlink.c \
src/builtins.c\ lib/linux/waitpid.c \
src/cc.c\ lib/linux/$mes_cpu-mes-$compiler/syscall.c \
src/core.c\ \
src/display.c\ src/builtins.c \
src/eval-apply.c\ src/cc.c \
src/gc.c\ src/core.c \
src/hash.c\ src/display.c \
src/lib.c\ src/eval-apply.c \
src/math.c\ src/gc.c \
src/mes.c\ src/globals.c \
src/module.c\ src/hash.c \
src/posix.c\ src/lib.c \
src/reader.c\ src/math.c \
src/stack.c\ src/mes.c \
src/string.c\ src/module.c \
src/struct.c\ src/posix.c \
src/symbol.c\ src/reader.c \
src/stack.c \
src/string.c \
src/struct.c \
src/symbol.c \
src/vector.c src/vector.c
## Check ## ## Check ##