3 # Mes --- Maxwell Equations of Software
4 # Copyright © 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/>.
23 export BLOOD_ELF GUILE HEX2 M1 MES MESCC
24 export M1FLAGS HEX2FLAGS PREPROCESS
25 export MES_SEED MES_ARENA
29 BLOOD_ELF=${BLOOD_ELF-blood-elf}
30 MES_SEED=${MES_SEED-../mes-seed}
31 MESCC=${MESCC-$(command -v mescc)}
32 [ -z "$MESCC" ] && MESCC=scripts/mescc
33 MES=${MES-$(command -v mes)}
34 [ -z "$MES" ] && MES=src/mes
37 -D VERSION=\"$VERSION\"
38 -D MODULEDIR=\"$MODULEDIR\"
45 MESCCLAGS=${MESCCFLAGS-"
52 HEX2FLAGS=${HEX2FLAGS-"
55 --BaseAddress=0x1000000
62 if [ -n "$PREPROCESS" ]; then
88 if [ -z "$NOLINK" ]; then
97 -o "$c".blood-elf-hex2
100 -f stage0/elf32-header.hex2\
104 -f "$c".blood-elf-hex2\