Subject: Re: Trying to XCompile a mac68k kernel - solved
To: None <skippy@macro.stanford.edu>
From: Carsten Hammer <chammer@hermes.hrz.uni-bielefeld.de>
List: current-users
Date: 02/04/1997 10:56:14
> 
> My solution was to make lorder.i386, and lorder.m68k, and to change the
> calls to it to be lorder.${MACHINE_ARCH}.

How about changing lorder to something like 

TEMP=`file <objfiles>`
case $TEMP in 
m68k) lorder.m68k;;
i386) lorder.i386;;
...
esac

where lorder.${MACHINE_ARCH} are the machine dependent
programms (Of course lorder is a candidat that could be
handled inside one script).
The same way there could be scripts for nm,size,ld,ranlib,...

ciao
Carsten