75875a68897cd22353620f93e21538c166470dd7
4 echo "Not run from within Makefile!"
9 # The suffix for library files (in and out)
11 #######################################################################
17 rm -rf $LIB_DIR $ORG_OBJDIR
20 # Generate org directory containing the original library objects
22 if [ ! -d "$ORG_OBJDIR" ]; then
23 echo "Buildlib: Creating directory $ORG_OBJDIR."
28 cat $tdir/$ORG_LIBDIR/*$LIB_SUFFIX | ldc
-saq
30 touch $ORG_OBJDIR/lastrun
34 if [ ! -d "$LIB_DIR" ]; then
35 echo -n "Creating $LIB_DIR:"
36 mkdir
$LIB_DIR && echo "Ok." ||
echo "FAILED!"
40 lib
=$LIB_DIR/`basename $recipe $RECIPE_SUFFIX`$LIB_SUFFIX
41 echo -e "\nBuildlib: Building library \"$lib\" using recipe \"$1\":"
43 for item
in `cat $recipe| egrep -v '^[[:space:]]*(#.*)*$'`; do
44 iname
=`echo $item | egrep -o '[^[:space:]].*[^[:space:]]' |sed 's/.obj$//g'`
45 echo "Buildlib: Appending \"$iname"\"
46 cat $iname >> $lib ||
(echo "Error! could not find:$item";exit 3)
49 echo "Buildlib: Done."
55 # echo "Buildlib: Cleaning up."
58 echo "Buildlib: Splitting original libraries."