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 HEX2=${HEX2-hex2}
25 export BLOOD_ELF=${BLOOD_ELF-blood-elf}
26 export MES_SEED=${MES_SEED-../mes-seed}
27 export MESCC=${MESCC-$(type -p mescc)}
28 [ -z "$MESCC" ] && MESCC=scripts/mescc
29 export MES=${MES-$(type -p mes)}
30 [ -z "$MES" ] && MES=src/mes
33 -D VERSION=\"$VERSION\"
34 -D MODULEDIR=\"$MODULEDIR\"
41 MESCCLAGS=${MESCCFLAGS-"
46 if [ -n "$PREPROCESS" ]; then
66 $M1 --LittleEndian --Architecture=1\
71 if [ -z "$NOLINK" ]; then
77 $M1 --LittleEndian --Architecture=1\
79 -o "$c".blood-elf-hex2
80 $HEX2 --LittleEndian --Architecture=1 --BaseAddress=0x1000000\
81 -f stage0/elf32-header.hex2\
85 -f "$c".blood-elf-hex2\