1#! /bin/sh 2 3if test "x$TESTS" = "xyes" -o "x$TESTS" = "xtrue" ; then 4 WITH_TESTS=--enable-tests 5fi 6 7config() { 8 echo "./configure $*" 9 ./configure $* 10} 11 12case "${PLATFORM}" in 13 contiki) config "--disable-tests --disable-documentation --disable-examples" && \ 14 make -C examples/contiki 15 ;; 16 lwip) config "--disable-tests --disable-documentation --disable-examples" && \ 17 make -C examples/lwip lwip lwip-contrib all 18 ;; 19 posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && \ 20 make 21 ;; 22esac 23 24err=$? 25if test $err = 0 -a -n "$WITH_TESTS" ; then 26 tests/testdriver 27 err=$? 28fi 29 30exit $err 31