build: Simplify.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 8 Jun 2019 13:36:22 +0000 (15:36 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 8 Jun 2019 13:36:22 +0000 (15:36 +0200)
commit5dc245e739c480d5f6c6519fc031260df7094ce1
tree2fb9ac13d3e11cad3d97998515893f1594395fb4
parent3ef521223819c6879a6b309e270d9c86461f9faf
build: Simplify.

    core: Make mes src/ c files separate compilation units.

* include/mes/constants.h: New file.
* include/mes/macros.h: New file.
* include/mes/mes.h: New file.
* src/gc.c: Update.
* src/hash.c: Update.
* src/lib.c: Update.
* src/math.c: Update.
* src/mes.c: Update.
* src/module.c: Update.
* src/posix.c: Update.
* src/reader.c: Update.
* src/string.c: Update.
* src/struct.c: Update.
* src/vector.c: Update.

    mes: Update datadir.

* src/mes.c (g_datadir): New global.
(open_boot): Rename from read_boot.
(read_boot): New function.
* mes/module/mes/boot-0.scm: Move from boot-0.scm.in
* configure: Update.
* configure.sh: Update.

    mescc: Create libraries from separate files.

* .gitignore: Update.
* build-aux/bootstrap-mes.sh: Remove.
* build-aux/bootstrap.sh.in: Remove.
* build-aux/build-guile.sh: Update.
* build-aux/build-mes.sh: Update.
* build-aux/build-scaffold.sh: New file.
* build-aux/build.sh.in: Update.
* build-aux/cc.sh: Update.
* build-aux/check-tcc.sh: Remove.
* build-aux/config.sh.in: New file.
* build-aux/config.sh: Remove.
* build-aux/install.sh.in: Update.
* build-aux/test-boot.sh: New file.
* build-aux/test-c.sh: New file.
* build-aux/test-driver: New file.
* build-aux/test-suite.sh: New file.
* build-aux/trace.sh: Update.
* build-aux/uninstall.sh.in: Update.
* configure: Update.
* configure.sh: Update.
* lib/linux/x86-mes-mescc/crt1.c: Move from lib/linux/x86-mes.
* lib/linux/x86-mes-mescc/mini.c: Likewise.
* lib/linux/x86_64-mes-mescc/crt1.c: Move from lib/linux/x86_64-mes.
* lib/linux/x86_64-mes-mescc/mini.c: Likewise.
* lib/linux/x86-mes-gcc/syscall.c: Rename from mes.c.
* lib/linux/x86-mes-mescc/syscall.c: Likewise.
* lib/linux/x86_64-mes-gcc/syscall.c: Likewise.
* lib/linux/x86_64-mes-mescc/syscall.c: Likewise.
* lib/mes/mes_open.c: Include config.h.
* lib/tests/stdio/70-printf-hello.c: Likewise.
* lib/tests/stdio/70-printf-simple.c: Likewise.
* scaffold/gc-test.sh: New file.
* simple.sh: Update.
218 files changed:
.gitignore
build-aux/GNUmakefile.in
build-aux/bootstrap-mes.sh [deleted file]
build-aux/bootstrap.sh.in [deleted file]
build-aux/build-guile.sh
build-aux/build-lib.sh [new file with mode: 0755]
build-aux/build-mes.sh
build-aux/build-scaffold.sh [new file with mode: 0755]
build-aux/build.sh.in
build-aux/cc.sh
build-aux/check-boot.sh
build-aux/check-mes.sh
build-aux/check-mescc.sh
build-aux/check-tcc.sh [deleted file]
build-aux/check.sh.in
build-aux/config.make.in
build-aux/config.sh [deleted file]
build-aux/config.sh.in [new file with mode: 0644]
build-aux/config.status.in [deleted file]
build-aux/export.make
build-aux/install.sh.in
build-aux/pre-inst-env.in
build-aux/test-boot.sh [new file with mode: 0755]
build-aux/test-c.sh [new file with mode: 0755]
build-aux/test-cc.sh [deleted file]
build-aux/test-driver [new file with mode: 0755]
build-aux/test-suite.sh [new file with mode: 0644]
build-aux/test.sh [deleted file]
build-aux/trace.sh
build-aux/uninstall.sh.in
configure
configure.sh
include/assert.h
include/grp.h [new file with mode: 0644]
include/linux/syscall.h [new file with mode: 0644]
include/mes/builtins.h
include/mes/constants.h [new file with mode: 0644]
include/mes/lib-mini.h
include/mes/lib.h
include/mes/macros.h [new file with mode: 0644]
include/mes/mes.h [new file with mode: 0644]
include/pwd.h
include/stdarg.h
include/string.h
include/sys/stat.h
include/time.h
include/unistd.h
lib/assert/assert.c [deleted file]
lib/ctype/isxdigit.c
lib/dirent/__getdirentries.c
lib/dirent/readdir.c
lib/libc+gnu.c [deleted file]
lib/libc+tcc.c [deleted file]
lib/libc-mini.c [deleted file]
lib/libc.c [deleted file]
lib/libg.c [deleted file]
lib/libgetopt.c [deleted file]
lib/libmes.c [deleted file]
lib/linux/access.c
lib/linux/brk.c
lib/linux/chdir.c
lib/linux/chmod.c
lib/linux/clock_gettime.c
lib/linux/close.c
lib/linux/dup.c
lib/linux/dup2.c
lib/linux/execve.c
lib/linux/fcntl.c
lib/linux/fork.c
lib/linux/fstat.c
lib/linux/fsync.c
lib/linux/getcwd.c
lib/linux/getdents.c
lib/linux/getegid.c
lib/linux/geteuid.c
lib/linux/getgid.c
lib/linux/getpid.c
lib/linux/getppid.c
lib/linux/getrusage.c
lib/linux/gettimeofday.c
lib/linux/getuid.c
lib/linux/gnu.c [deleted file]
lib/linux/ioctl.c
lib/linux/kill.c
lib/linux/libc-mini.c [deleted file]
lib/linux/libc.c [deleted file]
lib/linux/link.c
lib/linux/lseek.c
lib/linux/lstat.c
lib/linux/mkdir.c
lib/linux/nanosleep.c
lib/linux/open.c
lib/linux/pipe.c
lib/linux/read.c
lib/linux/rename.c
lib/linux/rmdir.c
lib/linux/setgid.c
lib/linux/settimer.c
lib/linux/setuid.c
lib/linux/signal.c
lib/linux/sigprogmask.c
lib/linux/stat.c
lib/linux/tcc.c [deleted file]
lib/linux/time.c
lib/linux/unlink.c
lib/linux/waitpid.c
lib/linux/x86-mes-gcc/mes.c [deleted file]
lib/linux/x86-mes-gcc/mini.c
lib/linux/x86-mes-gcc/syscall.c [new file with mode: 0644]
lib/linux/x86-mes-mescc/crt1.c [new file with mode: 0644]
lib/linux/x86-mes-mescc/mini.c [new file with mode: 0644]
lib/linux/x86-mes-mescc/syscall.c [new file with mode: 0644]
lib/linux/x86-mes/crt1.c [deleted file]
lib/linux/x86-mes/mes.c [deleted file]
lib/linux/x86-mes/mini.c [deleted file]
lib/linux/x86_64-mes-gcc/mes.c [deleted file]
lib/linux/x86_64-mes-gcc/mini.c
lib/linux/x86_64-mes-gcc/syscall.c [new file with mode: 0644]
lib/linux/x86_64-mes-mescc/crt1.c [new file with mode: 0644]
lib/linux/x86_64-mes-mescc/mini.c [new file with mode: 0644]
lib/linux/x86_64-mes-mescc/syscall.c [new file with mode: 0644]
lib/linux/x86_64-mes/crt1.c [deleted file]
lib/linux/x86_64-mes/mes.c [deleted file]
lib/linux/x86_64-mes/mini.c [deleted file]
lib/mes/__assert_fail.c [new file with mode: 0644]
lib/mes/__mes_debug.c [new file with mode: 0644]
lib/mes/eputs.c
lib/mes/fdgetc.c
lib/mes/fdgets.c [new file with mode: 0644]
lib/mes/fdputs.c
lib/mes/fdungetc.c
lib/mes/mes_open.c [new file with mode: 0644]
lib/mes/oputs.c
lib/mes/search-path.c
lib/posix/alarm.c
lib/posix/execl.c
lib/posix/execv.c
lib/posix/execvp.c
lib/posix/getenv.c
lib/posix/isatty.c
lib/posix/mktemp.c
lib/posix/raise.c
lib/posix/sbrk.c
lib/posix/setenv.c
lib/posix/sleep.c
lib/posix/unsetenv.c
lib/stdio/fclose.c
lib/stdio/fdgets.c [deleted file]
lib/stdio/fdopen.c
lib/stdio/ferror.c
lib/stdio/fflush.c
lib/stdio/fgets.c
lib/stdio/fileno.c
lib/stdio/fopen.c
lib/stdio/fread.c
lib/stdio/fseek.c
lib/stdio/ftell.c
lib/stdio/fwrite.c
lib/stdio/perror.c
lib/stdio/remove.c
lib/stdio/vsnprintf.c
lib/stdio/vsscanf.c
lib/stdlib/alloca.c
lib/stdlib/atexit.c
lib/stdlib/bsearch.c [deleted file]
lib/stdlib/malloc.c
lib/stdlib/realloc.c
lib/stdlib/strtol.c
lib/string/bzero.c
lib/string/index.c
lib/string/memcpy.c
lib/string/strchr.c
lib/string/strdup.c
lib/string/strerror.c
lib/string/strrchr.c
lib/string/strspn.c
lib/string/strstr.c
lib/stub/bsearch.c [new file with mode: 0644]
lib/stub/strftime.c
lib/tests/scaffold/54-argv.c
lib/tests/scaffold/60-math.c
lib/tests/scaffold/t.c
lib/tests/stdio/70-printf-hello.c
lib/tests/stdio/70-printf-simple.c
lib/tests/stdio/70-printf.c
lib/x86-mes-gcc/setjmp.c
lib/x86-mes-mescc/exit-42.c [new file with mode: 0644]
lib/x86-mes-mescc/setjmp.c [new file with mode: 0644]
lib/x86-mes/exit-42.c [deleted file]
lib/x86-mes/setjmp.c [deleted file]
lib/x86_64-mes-gcc/setjmp.c
lib/x86_64-mes-mescc/exit-42.c [new file with mode: 0644]
lib/x86_64-mes-mescc/setjmp.c [new file with mode: 0644]
lib/x86_64-mes/exit-42.c [deleted file]
lib/x86_64-mes/setjmp.c [deleted file]
mes/include [deleted symlink]
mes/lib [deleted symlink]
mes/module/mes/boot-0.scm [new file with mode: 0644]
mes/module/mes/boot-0.scm.in [deleted file]
mes/module/mes/boot-03.scm
module/mescc/mescc.scm
scaffold/boot/51-module.scm
scaffold/gc-test.scm [new file with mode: 0644]
scripts/ar.in [new file with mode: 0644]
scripts/mescc.in [changed mode: 0755->0644]
scripts/mescc.scm.in
simple.sh
src/gc.c
src/hash.c
src/lib.c
src/math.c
src/mes.c
src/module.c
src/posix.c
src/reader.c
src/string.c
src/struct.c
src/vector.c