~ubuntu-branches/ubuntu/natty/libsdl1.2/natty

« back to all changes in this revision

Viewing changes to build-scripts/makedep.sh

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-05 20:29:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071205202943-ryogi07hodn5cdif
Tags: 1.2.12-1ubuntu1
* Merge with Debian; remaining changes:
  - Remove svgalib support.
  - Prefer libgl1-mesa-dev build-dependency over xlibmesa-gl-dev.
  - Build for lpia as for i386.
* Link using -Wl,-Bsymbolic-functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
for src in $SOURCES
42
42
do  echo "Generating dependencies for $src"
43
43
    ext=`echo $src | sed 's|.*\.\(.*\)|\1|'`
44
 
    obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.lo|g"`
 
44
    if test x"$ext" = x"rc"; then
 
45
        obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.o|g"`
 
46
    else
 
47
        obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|\1.lo|g"`
 
48
    fi
45
49
    echo "\$(objects)/$obj: $src \\" >>${output}.new
46
50
    search_deps $src | sort | uniq >>${output}.new
47
51
    case $ext in
75
79
 
76
80
__EOF__
77
81
        ;;
 
82
        rc) cat >>${output}.new <<__EOF__
 
83
 
 
84
        \$(WINDRES) $src \$@
 
85
 
 
86
__EOF__
 
87
        ;;
78
88
        *)   echo "Unknown file extension: $ext";;
79
89
    esac
80
90
    echo "" >>${output}.new