#!/bin/bash ######################################################################### # wrapper for calling make in a cross-compile environment ######################################################################### ######################################################################### # set environment ######################################################################### # for the picky ones prefix=${PREFIX:=//usr/local/arm/2.95.3/} ######################################################################### # check path ######################################################################### case "$PATH" in *$prefix/bin*) ;; *) PATH="$PATH:$prefix/bin" ;; esac if [ "$1" == "-cc" ]; then shift export CC=arm-linux-gcc fi export PATH make $@