build-scripts/makedep.sh
changeset 1634 14f302c5b32c
parent 1521 9b9212e4810c
child 2204 9f64d06fa168
     1.1 --- a/build-scripts/makedep.sh	Fri Apr 14 03:24:01 2006 +0000
     1.2 +++ b/build-scripts/makedep.sh	Fri Apr 14 03:56:31 2006 +0000
     1.3 @@ -3,8 +3,8 @@
     1.4  # Generate dependencies from a list of source files
     1.5  
     1.6  # Check to make sure our environment variables are set
     1.7 -if test x"$INCLUDE" = x -o x"$SOURCES" = x -o x"$objects" = x -o x"$output" = x; then
     1.8 -    echo "SOURCES, INCLUDE, objects, and output needs to be set"
     1.9 +if test x"$INCLUDE" = x -o x"$SOURCES" = x -o x"$output" = x; then
    1.10 +    echo "SOURCES, INCLUDE, and output needs to be set"
    1.11      exit 1
    1.12  fi
    1.13  cache_prefix=".#$$"
    1.14 @@ -41,8 +41,8 @@
    1.15  for src in $SOURCES
    1.16  do  echo "Generating dependencies for $src"
    1.17      ext=`echo $src | sed 's|.*\.\(.*\)|\1|'`
    1.18 -    obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|$objects/\1.lo|g"`
    1.19 -    echo "$obj: $src \\" >>${output}.new
    1.20 +    obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.lo|g"`
    1.21 +    echo "\$(objects)/$obj: $src \\" >>${output}.new
    1.22      search_deps $src | sort | uniq >>${output}.new
    1.23      case $ext in
    1.24          c) cat >>${output}.new <<__EOF__