summaryrefslogtreecommitdiff
path: root/board/MAI/bios_emulator/scitech/bin/meltobjs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/MAI/bios_emulator/scitech/bin/meltobjs.sh')
-rwxr-xr-xboard/MAI/bios_emulator/scitech/bin/meltobjs.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/board/MAI/bios_emulator/scitech/bin/meltobjs.sh b/board/MAI/bios_emulator/scitech/bin/meltobjs.sh
new file mode 100755
index 0000000..fd1804b
--- /dev/null
+++ b/board/MAI/bios_emulator/scitech/bin/meltobjs.sh
@@ -0,0 +1,23 @@
+#! /bin/sh
+#
+# This script generates a single object file from a set of libraries (*.a files)
+# Usage: meltobjs.sh target.o library1.a library2.a ...
+#
+# (C) SciTech Software, Inc. 1998
+#
+
+TMPDIR=/tmp/melt$$
+TARGET=$1
+TARGETDIR=$PWD
+shift
+mkdir $TMPDIR
+
+cd $TMPDIR
+
+for a in $*
+do
+ ar x $a
+done
+ld -r -o $TARGETDIR/$TARGET *.o
+
+rm -fr $TMPDIR \ No newline at end of file