Top 10k strings from depcomp in <root> / bin / pc / Emulators / fuse-hc2000-hacks.7z / src / libspectrum /
Back to the directory listing
10 shift
7 rm -f "$tmpdepfile"
7 rm -f "$depfile"
7 if test "$libtool" = yes; then
6 if test $stat -eq 0; then :
5 exit $stat
4 "$@" || exit $?
4 while test "X$1" != 'X--mode=compile'; do
4 rm -f "$tmpdepfile"
3 ## correctly. Breaking it into two sed invocations is a workaround.
3 ## Some versions of the HPUX 10.20 sed can't process this invocation
3 echo "$object : \\" > "$depfile"
3 # Remove the call to Libtool.
3 # Important note: in order to support this mode, a compiler *must*
3 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
3 echo "#dummy" > "$depfile"
3 case $arg in
3 $object)
2 ' < "$tmpdepfile" \
2 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
2 tr ' ' '
2 test "x$dir" = "x$object" && dir=
2 if test -f "$tmpdepfile"; then
2 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
2 cat < "$tmpdepfile" > "$depfile"
2 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
2 # since it is checked for above.
2 # looking at the text of this script. This case will never be run,
2 # always write the preprocessed file to stdout.
2 # This case exists only to let depend.m4 do its work. It works by
2 # Remove `-o $object'.
2 tr ' ' '
2 tmpdepfile1=$dir$base.u
2 tmpdepfile1=$dir$base.d
2 test -f "$tmpdepfile" && break
2 exit $?
2 case "$arg" in
2 # store a dummy comment line, to avoid errors with the Makefile
2 # The sourcefile does not contain any dependencies, so just
2 # "include basename.Plo" scheme.
2 shift # fnord
2 shift # $arg
2 set fnord "$@" "$arg"; shift ;;
2 set fnord "$@" "$arg"
1 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
1 set fnord "$@" "$arg"
1 set fnord "$@"
1 scriptversion=2009-04-28.21; # UTC
1 rm -f "$tmpdepfile"
1 msvisualcpp)
1 makedepend)
1 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
1 if test "$depmode" = msvcmsys; then
1 if test "$depmode" = hp; then
1 if test "$depmode" = dashXmstdout; then
1 depfile=${depfile-`echo "$object" |
1 dashmstdout)
1 dashXmstdout)
1 cygpath_u="cygpath -u -f -"
1 case $1 in
1 case "$depmode" in
1 as side-effects.
1 \1 \\:p' >> "$depfile"
1 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
1 Run PROGRAMS ARGS to compile a file, generating dependencies
1 Report bugs to <[email protected]>.
1 Environment variables:
1 ' < "$tmpdepfile" | \
1 ' < "$tmpdepfile" |
1 ' ' ' >> "$depfile"
1 #nosideeffect)
1 ## why we pick this rather obscure method:
1 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
1 ## typically no way to rebuild the header). We avoid this by adding
1 ## this for us directly.
1 ## the command line argument order; so add the flags where they
1 ## that the space means something, we add a space to the output as
1 ## it if -MD -MP comes after the -MF stuff. Hmm.
1 ## is deleted, the dependency causes make to die (because there is
1 ## gcc 3 implements dependency tracking that does exactly what
1 ## dummy dependencies for each header file. Too bad gcc doesn't do
1 ## appear in depend2.am. Note that the slowdown incurred here
1 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
1 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
1 ## This next piece of magic avoids the `deleted header file' problem.
1 ## There are various ways to get dependency output from gcc. Here's
1 ## The second -e expression handles DOS-style file names with drive letters.
1 ## The problem is that when a header file which appears in a .P file
1 ## Some versions of gcc put a space before the `:'. On the theory
1 ## - Using -M directly means running the compiler twice (even worse
1 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
1 ## - Don't want to use -MD because we'd like the dependencies to end
1 ## up in a subdir. Having to rename by hand is ugly.
1 ## than renaming).
1 ## -MM, not -M (despite what the docs say).
1 ## (We might end up doing this anyway to support other compilers.)
1 #! /bin/sh
1 # to make depend.m4 easier to write. Note that we *cannot* use a case
1 # time-stamp-time-zone: "UTC"
1 # time-stamp-start: "scriptversion="
1 # time-stamp-format: "%:y-%02m-%02d.%02H"
1 # time-stamp-end: "; # UTC"
1 # the same distribution terms that you use for the rest of that program.
1 # the Free Software Foundation; either version 2, or (at your option)
1 # sh-indentation: 2
1 # parameterize here, but still list the modes in the big case below,
1 # mode: shell-script
1 # it under the terms of the GNU General Public License as published by
1 # here, because this file can only contain one case statement.
1 # eval: (add-hook 'write-file-hooks 'time-stamp)
1 # distribute this file as part of a program that contains a
1 # depcomp - compile a program generating dependencies as side-effects
1 # configuration script generated by Autoconf, you may include it under
1 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1 # any later version.
1 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1 # You should have received a copy of the GNU General Public License
1 # This program is free software; you can redistribute it and/or modify
1 # This program is distributed in the hope that it will be useful,
1 # Some modes work just like other modes, but use different flags. We
1 # Software Foundation, Inc.
1 # Originally written by Alexandre Oliva <[email protected]>.
1 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1 # Local Variables:
1 # GNU General Public License for more details.
1 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
1 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
1 # As a special exception to the GNU General Public License, if you
1 " >> "$depfile"
1 touch "$tmpdepfile"
1 tmpdepfile Temporary file to use when outputing dependencies.
1 test -z "$dashmflag" && dashmflag=-M
1 source Source file read by `PROGRAMS ARGS'.
1 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
1 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::
1 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
1 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
1 sed -e 's/^[^:]*: / /' \
1 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
1 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
1 sed '1,2d' "$tmpdepfile" | tr ' ' '
1 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
1 rm -f "$tmpdepfile" "$tmpdepfile2"
1 rm -f "$tmpdepfile" "$tmpdepfile".bak
1 object Object file output by `PROGRAMS ARGS'.
1 obj_suffix=`echo "$object" | sed 's/^.*\././'`
1 mv "$tmpdepfile" "$depfile"
1 libtool Whether libtool is used (yes/no).
1 if test -z "$gccflag"; then
1 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
1 gccflag=-M
1 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
1 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
1 exec "$@"
1 echo "depcomp: Variables source, object and depmode must be set" 1>&2
1 echo "Unknown depmode $depmode" 1>&2
1 depmode=gcc
1 depmode Dependency tracking mode.
1 depfile Dependency file to output.
1 cleared=no eat=no
1 cat < "$tmpdepfile" >> "$depfile"
1 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
1 DEPDIR directory where to store dependencies.
1 -v | --v*)
1 -h | --h*)
1 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
1 # which is wrong. We want:
1 # to use with these is +Maked; it writes dependencies to a file named
1 # start of each line; $object doesn't have directory information.
1 # run, as this mode is specially recognized in the preamble.
1 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
1 # in the target name. This is to cope with DOS-style filenames:
1 # in a .u file. In older versions, this file always lives in the
1 # happens to be.
1 # dependency tracking mechanisms from slower ones.
1 # current directory. Also, the AIX compiler puts `$object:' at the
1 # correctly. Breaking it into two sed invocations is a workaround.
1 # compilers, which have integrated preprocessors. The correct option
1 # and will wrap long lines using \ :
1 # always write the preprocessed file to stdout, regardless of -o.
1 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
1 # `$object: dependent.h' and one to simply `dependent.h:'.
1 # X makedepend
1 # Version 6 uses the directory in both cases.
1 # This comment above is used by automake to tell side-effect
1 # This case only exists to satisfy depend.m4. It is never actually
1 # The C for AIX Compiler uses -M and outputs the dependencies
1 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
1 # Some versions of the HPUX 10.20 sed can't process this invocation
1 # Require at least two characters before searching for `:'
1 # Remove any Libtool call
1 # Much of this is similar to the tru64 case; see comments there.
1 # Intel's C compiler understands `-MD -MF file'. However on
1 # ICC 7.1 will output
1 # ICC 7.0 will fill foo.d with something like
1 # HP compiler uses -M and no extra arg.
1 # Each line is of the form `foo.o: dependent.h',
1 # Do two passes, one to just change these to
1 # 'foo.d', which lands next to the object file, wherever that
1 # sub/foo.o: sub/foo.h
1 # sub/foo.o: sub/foo.c
1 # sub/foo.h:
1 # sub/foo.c:
1 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
1 # foo.o: sub/foo.h
1 # foo.o: sub/foo.c sub/foo.h
1 # foo.o: sub/foo.c ... \
1 # foo.o: sub/foo.c
1 # sub/foo.h ... \
1 # ...
1 "$@" -Wp,"$gccflag$tmpdepfile"
1 "$@" -MD -MF "$tmpdepfile"
1 "$@" -E |
1 "$@" -E 2>/dev/null |
1 "$@" $dashmflag |
1 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
1 test "x$dir" = "x$object" && dir=
1 stat=$?
1 rm -f "$tmpdepfile"
1 if test -f "$tmpdepfile"; then
1 if test $stat -eq 0; then :
1 if test "$libtool" = yes; then
1 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
1 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
1 depmode=msvisualcpp
1 depmode=dashmstdout
1 dashmflag=-xM
1 cygpath_u="sed s,\\\\\\\\,/,g"
1 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
1 >> "$depfile"
1 # slashes to satisfy depend.m4
1 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
1 # dependencies in `foo.d' instead, so we check for that too.
1 # This is just like msvisualcpp but w/o cygpath translation.
1 # This is just like dashmstdout with a different argument.
1 # The Tru64 compiler uses -MD to generate dependencies as a side
1 # Subdirectories are respected.
1 # Just convert the backslash-escaped backslashes to single forward
1 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
1 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
1 tmpdepfile3=$dir.libs/$base.u
1 tmpdepfile3=$dir$base.u
1 tmpdepfile2=$dir.libs/$base.d
1 tmpdepfile2=$dir$base.u
1 tmpdepfile2=$dir$base.d
1 tmpdepfile2=$base.u
1 shift # fnord
1 shift # $arg
1 sed -ne '2,${
1 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
1 sed -e 's/$/ :/' >> "$depfile"
1 sed -e 's,^.*\.[a-z]*:[
1 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
1 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
1 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
1 sed '$ s: \\$::' > "$tmpdepfile"
1 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
1 if test $eat = yes; then
1 gccflag=-MD,
1 echo >> "$depfile"
1 echo "depcomp $scriptversion"
1 echo "$object : \\" > "$depfile"
1 cat <<\EOF
1 case $cleared in
1 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
1 -arch)
1 -D*|-I*)
1 -*|$object)
1 *) set fnord "$@" "$arg" ;;
1 # the object too, otherwise makedepend will parse it as a source file.
1 # the IRIX cc adds comments like `#:fec' to the end of the
1 # lines with more than a fixed number of characters (4096 in
1 # dependency line.
1 # clever and replace this with sed code, as IRIX sed won't handle
1 # `$object: dependent.h' and one to simply `dependent.h:'.
1 # The second pass generates a dummy entry for each header file.
1 # That's a tab and a space in the [].
1 # Strip any option that makedepend may not understand. Remove
1 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
1 # Each line is of the form `foo.o: dependent.h'.
1 # Do two passes, one to just change these to
1 # Clip off the initial element (the dependent). Don't try to be
1 # Add `dependent.h:' lines.
1 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
1 "$@" -Wc,-M
1 "$@" -Wc,+Maked
1 "$@" -MDupdate "$tmpdepfile"
1 "$@" -M
1 "$@" +Maked
1 "$@" "-Wp,-MDupdate,$tmpdepfile"
1 }' "$tmpdepfile" >> "$depfile"
1 test -f "$tmpdepfile" && break
1 rm -f "$tmpdepfile1" "$tmpdepfile2"
1 exit 1;
1 exit $stat
1 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
1 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
1 tmpdepfile4=$dir$base.d
1 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
1 tmpdepfile3=$dir$base.d
1 tmpdepfile2=$dir$base.o.d # libtool 1.5
1 tmpdepfile2=$dir$base.d
1 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
1 tmpdepfile1=$dir$base.o.d
1 set ""; shift
1 sed -e 's,^.*\.[a-z]*:[
1 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
1 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
1 exit $stat
1 echo "#dummy" > "$depfile"
1 eat=yes ;;
1 eat=no
1 continue
1 cleared=yes ;;
1 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
1 # the former would cause a distcleancheck panic.
1 # static library. This mechanism is used in libtool 1.4 series to
1 # one of the two compilations can be disabled. We should prefer
1 # in $dir$base.o.d. We have to check for both files, because
1 # handle both shared and static libraries in a single compilation.
1 # generates 2 separate objects for the 2 libraries. These two
1 # compilations output dependencies in $dir.libs/$base.o.d and
1 # automatically cleaned when .libs/ is deleted, while ignoring
1 # With libtool 1.5 this exception was removed, and libtool now
1 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
1 # With Tru64 cc, shared objects can also be used to make a
1 # That's a tab and a space in the [].
1 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
1 "$@" -Wc,-MD
1 "$@" -MD
1 s/^ *//
1 s/$/:/
1 s/ \\*$//
1 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |