#! /bin/sh
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+# Copyright (C) 2004,2005,2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
set -e
+J=-j8
+
confflags="-C --enable-maintainer-mode --prefix=/usr --sysconfdir=/etc --localstatedir=/var"
configure="`pwd`/configure $confflags"
-make=eval\ "${CLEAN:+make -j2 silent.clean;} \
+make=eval\ "${CLEAN:+make $J silent.clean;} \
echo -e \"== executing 'make all'...\" && \
- make -j2 ${SILENT:+-s silent.}all && \
+ make $J ${SILENT:+-s silent.}all && \
echo -e \"\n== executing 'make check'...\" && \
- make -j2 ${SILENT:+-s silent.}check"
+ make $J ${SILENT:+-s silent.}check"
LANG=C
+CPPFLAGS='-D_FORTIFY_SOURCE=99'
## Usage: xtermTitle <title>
function xtermTitle
mkdir -p $d && cd $d
- test -e Makefile || $configure "$@"
+ test -z "$CLEAN" || rm -f config.cache
+ test -e Makefile || CCACHE_DISABLE=1 $configure "$@"
$make
cd -
}
case "$1" in
dist)
- test -e Makefile || ./configure $confflags
+ test -e Makefile || \
+ CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3' CPPFLAGS=$CPPFLAGS \
+ ./configure $confflags
$make
exit
;;
ln -sf $d Build
}
-operate Build/diet-noopt CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3'
-operate Build/diet-opt --enable-release
-operate Build/nodiet-noopt --disable-dietlibc CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3'
-operate Build/nodiet-opt --enable-release --disable-dietlibc
-operate Build/gcc32-opt --enable-release --disable-dietlibc CC='ccache gcc32' CXX='ccache g++'
-operate Build/gcc33-opt --enable-release --disable-dietlibc CC='ccache gcc33' CXX='ccache g++33'
+operate Build/diet-noopt CPPFLAGS=$CPPFLAGS CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3'
+operate Build/diet-opt --enable-release CPPFLAGS=$CPPFLAGS
+operate Build/nodiet-noopt --disable-dietlibc CPPFLAGS=$CPPFLAGS CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3'
+operate Build/nodiet-opt --enable-release --disable-dietlibc CPPFLAGS=$CPPFLAGS
+operate Build/gcc32-opt --enable-release --disable-dietlibc CPPFLAGS=$CPPFLAGS CC='ccache gcc32' CXX='ccache g++'
+
+operate Build/diet-opt-api --enable-release --enable-apis=NOLEGACY CPPFLAGS=$CPPFLAGS
+operate Build/nodiet-opt-api --enable-release --enable-apis=NOLEGACY --disable-dietlibc CPPFLAGS=$CPPFLAGS