diff options
author | dawes <dawes> | 2001-06-14 21:52:36 +0000 |
---|---|---|
committer | dawes <dawes> | 2001-06-14 21:52:36 +0000 |
commit | 9d8ac1f4820f6a1984bcc9e4a4151ba9f0acdc1f (patch) | |
tree | c337d03f29b9e9b8dbe806c9ada6c9db11559892 /xc/config/util/gccmdep.cpp | |
parent | d7e11f5cb2c191e4478fca7c6b964a6e600decfa (diff) |
Import of XFree86 4.1.0X_4_1_0
Diffstat (limited to 'xc/config/util/gccmdep.cpp')
-rw-r--r-- | xc/config/util/gccmdep.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/xc/config/util/gccmdep.cpp b/xc/config/util/gccmdep.cpp index 31c4a414f..d8dac5cd6 100644 --- a/xc/config/util/gccmdep.cpp +++ b/xc/config/util/gccmdep.cpp @@ -3,7 +3,7 @@ XCOMM!/bin/sh XCOMM XCOMM makedepend which uses 'gcc -M' XCOMM -XCOMM $XFree86: xc/config/util/gccmdep.cpp,v 3.8 2001/03/15 18:39:00 tsi Exp $ +XCOMM $XFree86: xc/config/util/gccmdep.cpp,v 3.8.2.1 2001/05/22 21:25:40 dawes Exp $ XCOMM XCOMM Based on mdepend.cpp and code supplied by Hongjiu Lu <hjl@nynexst.com> XCOMM @@ -23,7 +23,6 @@ endmarker= magic_string='# DO NOT DELETE' append=n args= -asmfiles= while [ $# != 0 ]; do if [ "$endmarker"x != x -a "$endmarker" = "$1" ]; then @@ -110,20 +109,7 @@ if [ X"$makefile" != X- ]; then fi fi -XCOMM need to link .s files to .S -for i in $files; do - case $i in - *.s) - dir=`dirname $i` - base=`basename $i .s` - (cd $dir; $RM ${base}.S; $LN ${base}.s ${base}.S) - asmfiles="$asmfiles ${base}.S" - ;; - esac -done - -CMD="$CC -M $args `echo $files | sed -e 's,\.s$,\.S,g' -e 's,\.s ,\.S ,g'` | \ - sed -e 's,\.S$,\.s,g' -e 's,\.S ,\.s ,g'" +CMD="$CC -M $args $files" if [ X"$makefile" != X- ]; then CMD="$CMD >> $TMP" fi @@ -134,8 +120,5 @@ if [ X"$makefile" != X- ]; then $MV $TMP $makefile fi -if [ x"$asmfiles" != x ]; then - $RM $asmfiles -fi $RM ${TMP}* exit 0 |