2015-06-24 06:59:57 +03:00
|
|
|
#! /usr/bin/env bash
|
2009-03-11 19:05:17 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
if (( $# < 2 )) ; then
|
|
|
|
echo "usage ./contrib/platform/embedded/gen_embedded.sh prefix debug|optimized"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
prefix=$1
|
|
|
|
shift 1
|
|
|
|
platform=$1
|
|
|
|
|
2010-09-18 03:04:06 +04:00
|
|
|
./autogen.pl -no-ompi
|
2009-03-11 19:05:17 +03:00
|
|
|
./configure --prefix="${prefix}" --with-platform=contrib/platform/embedded/"${platform}"
|
|
|
|
make clean > /dev/null
|
|
|
|
make -j2 all > /dev/null
|
|
|
|
make -j2 install > /dev/null
|
|
|
|
|
|
|
|
# All done
|
|
|
|
exit 0
|