3 # Mes --- Maxwell Equations of Software
4 # Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
6 # This file is part of Mes.
8 # Mes is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or (at
11 # your option) any later version.
13 # Mes is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with Mes. If not, see <http://www.gnu.org/licenses/>.
25 BLOOD_ELF=${BLOOD_ELF-blood-elf}
26 MES_SEED=${MES_SEED-../mes-seed}
28 $M1 --LittleEndian --Architecture=1\
32 $M1 --LittleEndian --Architecture=1\
34 -f $MES_SEED/libc-mes.M1\
36 $M1 --LittleEndian --Architecture=1\
43 -f $MES_SEED/libc-mes.M1\
44 -o mes-blood-elf-footer.M1
45 $M1 --LittleEndian --Architecture=1\
46 -f mes-blood-elf-footer.M1\
47 -o mes-blood-elf-footer.hex2
48 $HEX2 --LittleEndian --Architecture=1 --BaseAddress=0x1000000\
49 -f stage0/elf32-header.hex2\
53 -f mes-blood-elf-footer.hex2\
57 $M1 --LittleEndian --Architecture=1 -f\
59 -f $MES_SEED/libc+tcc-mes.M1\
64 cp libc+tcc-mes.hex2 lib
66 # TODO: after building from seed, build from src/mes.c
67 # build-aux/mes-snarf.scm --mes src/gc.c
68 # build-aux/mes-snarf.scm --mes src/lib.c
69 # build-aux/mes-snarf.scm --mes src/math.c
70 # build-aux/mes-snarf.scm --mes src/mes.c
71 # build-aux/mes-snarf.scm --mes src/posix.c
72 # build-aux/mes-snarf.scm --mes src/reader.c
73 # build-aux/mes-snarf.scm --mes src/vector.c