bootstrap: Build files only once.
* build-aux/bootstrap.sh.in: Build files only once.
This commit is contained in:
parent
82c85c24da
commit
093a8b0903
|
@ -49,32 +49,38 @@ cp crt1.s $mes_cpu-mes
|
||||||
|
|
||||||
objects=
|
objects=
|
||||||
for c in $libc_mini_SOURCES; do
|
for c in $libc_mini_SOURCES; do
|
||||||
echo "CC $c"
|
|
||||||
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
|
||||||
o=$(basename $c .c).o
|
o=$(basename $c .c).o
|
||||||
|
if test ${srcdest}$c -nt $o; then
|
||||||
|
echo " CC $c"
|
||||||
|
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
||||||
|
fi
|
||||||
objects="$objects $o"
|
objects="$objects $o"
|
||||||
done
|
done
|
||||||
echo "AR $mes_cpu-mes/libc-mini.a"
|
echo " AR $mes_cpu-mes/libc-mini.a"
|
||||||
$AR crD $mes_cpu-mes/libc-mini.a $objects
|
$AR crD $mes_cpu-mes/libc-mini.a $objects
|
||||||
|
|
||||||
objects=
|
objects=
|
||||||
for c in $libc_SOURCES; do
|
for c in $libc_SOURCES; do
|
||||||
echo "CC $c"
|
|
||||||
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
|
||||||
o=$(basename $c .c).o
|
o=$(basename $c .c).o
|
||||||
|
if test ${srcdest}$c -nt $o; then
|
||||||
|
echo " CC $c"
|
||||||
|
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
||||||
|
fi
|
||||||
objects="$objects $o"
|
objects="$objects $o"
|
||||||
done
|
done
|
||||||
echo "AR $mes_cpu-mes/libc.a"
|
echo " AR $mes_cpu-mes/libc.a"
|
||||||
$AR crD $mes_cpu-mes/libc.a $objects
|
$AR crD $mes_cpu-mes/libc.a $objects
|
||||||
|
|
||||||
objects=
|
objects=
|
||||||
for c in $libc_tcc_SOURCES; do
|
for c in $libc_tcc_SOURCES; do
|
||||||
echo "CC $c"
|
|
||||||
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
|
||||||
o=$(basename $c .c).o
|
o=$(basename $c .c).o
|
||||||
|
if test ${srcdest}$c -nt $o; then
|
||||||
|
echo " CC $c"
|
||||||
|
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
||||||
|
fi
|
||||||
objects="$objects $o"
|
objects="$objects $o"
|
||||||
done
|
done
|
||||||
echo "AR $mes_cpu-mes/libc+tcc.a"
|
echo " AR $mes_cpu-mes/libc+tcc.a"
|
||||||
$AR crD $mes_cpu-mes/libc+tcc.a $objects
|
$AR crD $mes_cpu-mes/libc+tcc.a $objects
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -83,12 +89,14 @@ CPPFLAGS="-D HAVE_CONFIG_H=1 -I ${srcdest}include -I ${srcdest}include/$mes_kern
|
||||||
|
|
||||||
objects=
|
objects=
|
||||||
for c in $mes_SOURCES; do
|
for c in $mes_SOURCES; do
|
||||||
echo "CC $c"
|
|
||||||
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
|
||||||
o=$(basename $c .c).o
|
o=$(basename $c .c).o
|
||||||
|
if test ${srcdest}$c -nt $o; then
|
||||||
|
echo " CC $c"
|
||||||
|
$CC -c $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS ${srcdest}$c
|
||||||
|
fi
|
||||||
objects="$objects $o"
|
objects="$objects $o"
|
||||||
done
|
done
|
||||||
echo "CCLD src/mes"
|
echo " CCLD src/mes"
|
||||||
$CC -nostdlib -o src/mes -L mescc-lib mescc-lib/crt1.o $objects -lc
|
$CC -nostdlib -o src/mes -L mescc-lib mescc-lib/crt1.o $objects -lc
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
|
@ -47,7 +47,7 @@ libc_mini_SOURCES="$libc_mini_shared_SOURCES"
|
||||||
|
|
||||||
if test $mes_libc = mes; then
|
if test $mes_libc = mes; then
|
||||||
libc_mini_SOURCES="$libc_mini_SOURCES
|
libc_mini_SOURCES="$libc_mini_SOURCES
|
||||||
lib/mes/write.c
|
lib/mes/mini-write.c
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ lib/posix/getcwd.c
|
||||||
lib/posix/getenv.c
|
lib/posix/getenv.c
|
||||||
lib/posix/isatty.c
|
lib/posix/isatty.c
|
||||||
lib/posix/open.c
|
lib/posix/open.c
|
||||||
lib/posix/read.c
|
lib/posix/buffered-read.c
|
||||||
lib/posix/setenv.c
|
lib/posix/setenv.c
|
||||||
lib/posix/wait.c
|
lib/posix/wait.c
|
||||||
lib/stdio/fgetc.c
|
lib/stdio/fgetc.c
|
||||||
|
|
Loading…
Reference in a new issue