]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - board/MAI/bios_emulator/scitech/bin/meltobjs.sh
Small coding style cleanup
[karo-tx-uboot.git] / board / MAI / bios_emulator / scitech / bin / meltobjs.sh
1 #! /bin/sh
2 #
3 # This script generates a single object file from a set of libraries (*.a files)
4 # Usage: meltobjs.sh target.o library1.a library2.a ...
5 #
6 # (C) SciTech Software, Inc. 1998
7 #
8
9 TMPDIR=/tmp/melt$$
10 TARGET=$1
11 TARGETDIR=$PWD
12 shift
13 mkdir $TMPDIR
14
15 cd $TMPDIR
16
17 for a in $*
18 do
19     ar x $a
20 done
21 ld -r -o $TARGETDIR/$TARGET *.o
22
23 rm -fr $TMPDIR