build-scripts/makedep.sh
changeset 2204 9f64d06fa168
parent 1634 14f302c5b32c
child 2247 93994f65c74c
child 4539 d2517c0de52b
--- a/build-scripts/makedep.sh	Mon Jul 16 00:08:35 2007 +0000
+++ b/build-scripts/makedep.sh	Mon Jul 16 03:28:48 2007 +0000
@@ -41,7 +41,11 @@
 for src in $SOURCES
 do  echo "Generating dependencies for $src"
     ext=`echo $src | sed 's|.*\.\(.*\)|\1|'`
-    obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.lo|g"`
+    if test x"$ext" = x"rc"; then
+        obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.o|g"`
+    else
+        obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.lo|g"`
+    fi
     echo "\$(objects)/$obj: $src \\" >>${output}.new
     search_deps $src | sort | uniq >>${output}.new
     case $ext in
@@ -75,6 +79,12 @@
 
 __EOF__
         ;;
+        rc) cat >>${output}.new <<__EOF__
+
+	\$(WINDRES) $src \$@
+
+__EOF__
+        ;;
         *)   echo "Unknown file extension: $ext";;
     esac
     echo "" >>${output}.new