build: switch to Mes+MesCC.

This commit is contained in:
Jan Nieuwenhuizen 2018-04-07 15:23:32 +02:00
parent 01ce340ede
commit 60f586ca77
3 changed files with 8 additions and 4 deletions

View File

@ -26,7 +26,7 @@ mkdir -p $PREFIX/lib
ABSPREFIX=$(cd $PREFIX && pwd)
cp $TINYCC_SEED/libc+tcc-gcc.mlibc-o $ABSPREFIX/lib
sh $MESCC -E -o tcc.E\
time $MESCC -E -o tcc.E\
$CFLAGS\
-I .\
-I $MES_PREFIX/lib\
@ -44,7 +44,7 @@ sh $MESCC -E -o tcc.E\
-D BOOTSTRAP=1\
tcc.c
sh $MESCC -c -o tcc.M1 tcc.E
time $MESCC -c -o tcc.M1 tcc.E
tr -d '\r' < tcc.M1 > tcc.m1
$M1 --LittleEndian --Architecture=1\

6
doit
View File

@ -5,7 +5,11 @@ export PREFIX=usr
export HEX2=../mescc-tools/bin/hex2
export M1=../mescc-tools/bin/M1
export BLOOD_ELF=../mescc-tools/bin/blood-elf
export MESCC=../mes/guile/mescc.scm
#export MESCC=${MESCC-../mes/guile/mescc.scm}
export MESCC=${MESCC-../mes/scripts/mescc.mes}
#export MES_ARENA=300000000
#exportxMES_DEBUG=2
#GUILE_LOAD_PATH=/home/janneke/src/nyacc/module:$GUILE_LOAD_PATH
export MES_PREFIX=../mes
export TINYCC_SEED=${TINYCC_SEED-../tinycc-seed}

View File

@ -1,4 +1,4 @@
#! /usr/bin/perl -w
#! /usr/bin/env perl
# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.