build-scripts/makedep.sh
changeset 2204 9f64d06fa168
parent 1634 14f302c5b32c
child 2247 93994f65c74c
child 4539 d2517c0de52b
     1.1 --- a/build-scripts/makedep.sh	Mon Jul 16 00:08:35 2007 +0000
     1.2 +++ b/build-scripts/makedep.sh	Mon Jul 16 03:28:48 2007 +0000
     1.3 @@ -41,7 +41,11 @@
     1.4  for src in $SOURCES
     1.5  do  echo "Generating dependencies for $src"
     1.6      ext=`echo $src | sed 's|.*\.\(.*\)|\1|'`
     1.7 -    obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.lo|g"`
     1.8 +    if test x"$ext" = x"rc"; then
     1.9 +        obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.o|g"`
    1.10 +    else
    1.11 +        obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.lo|g"`
    1.12 +    fi
    1.13      echo "\$(objects)/$obj: $src \\" >>${output}.new
    1.14      search_deps $src | sort | uniq >>${output}.new
    1.15      case $ext in
    1.16 @@ -75,6 +79,12 @@
    1.17  
    1.18  __EOF__
    1.19          ;;
    1.20 +        rc) cat >>${output}.new <<__EOF__
    1.21 +
    1.22 +	\$(WINDRES) $src \$@
    1.23 +
    1.24 +__EOF__
    1.25 +        ;;
    1.26          *)   echo "Unknown file extension: $ext";;
    1.27      esac
    1.28      echo "" >>${output}.new