Edit

kc3-lang/automake/lib/am/depend2.am

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2002-08-14 16:21:00
    Hash : 7c28e462
    Message : 2002-08-14 Art Haas <ahaas@neosoft.com> * lib/am/depend2.am: Added missing `;'.

  • lib/am/depend2.am
  • ## automake - create Makefile.in from Makefile.am
    ## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    ## Free Software Foundation, Inc.
    
    ## This program is free software; you can redistribute it and/or modify
    ## it under the terms of the GNU General Public License as published by
    ## the Free Software Foundation; either version 2, or (at your option)
    ## any later version.
    
    ## This program is distributed in the hope that it will be useful,
    ## but WITHOUT ANY WARRANTY; without even the implied warranty of
    ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    ## GNU General Public License for more details.
    
    ## You should have received a copy of the GNU General Public License
    ## along with this program; if not, write to the Free Software
    ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    ## 02111-1307, USA.
    
    ## This file is read several times:
    ## - once per *extension* (not per language) for generic compilation rules
    ## - once for each file which requires specific flags.
    
    ## Note it is on purpose we wrote `if %AMDEP%', since:
    ##
    ## - if deps are turned off, %AMDEP% is mapped onto FALSE, and therefore
    ##   the `if FALSE' chunk is removed (automake-time conditionals).
    ##
    ## - if deps are on, %AMDEP% is mapped onto AMDEP,  and therefore
    ##   the `if AMDEP' chunk is prefix with @AMDEP_TRUE@ just like for any
    ##   other configure-time conditional.
    ##
    ## We do likewise for %FASTDEP%; this expands to an ordinary
    ## configure-time conditional.  %FASTDEP% is used to speed up the
    ## common case of building a package with gcc 3.x.  In this case we
    ## can skip the use of depcomp and easily inline the dependency
    ## tracking.
    
    ?GENERIC?%EXT%.o:
    ?!GENERIC?%OBJ%: %SOURCE%
    if %FASTDEP%
    ## In fast-dep mode, we can always use -o.
    	if %COMPILE% -MT %OBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
    	  %-c% -o %OBJ% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%; \
    	then mv "%DEPBASE%.Tpo" "%DEPBASE%.Po"; \
    	else rm -f "%DEPBASE%.Tpo"; exit 1; \
    	fi
    else !%FASTDEP%
    if %AMDEP%
    	source='%SOURCE%' object='%OBJ%' libtool=no @AMDEPBACKSLASH@
    	depfile='%DEPBASE%.Po' tmpdepfile='%DEPBASE%.TPo' @AMDEPBACKSLASH@
    	$(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
    endif %AMDEP%
    ?-o?	%COMPILE% %-c% %-o% %OBJ% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
    ?!-o?	%COMPILE% %-c% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
    endif !%FASTDEP%
    
    ?GENERIC?%EXT%.obj:
    ?!GENERIC?%OBJOBJ%: %SOURCE%
    if %FASTDEP%
    ## In fast-dep mode, we can always use -o.
    	if %COMPILE% -MT %OBJOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
    ## Ugly invocation here; using a variable fails due to a parsing
    ## problem in automake.
    	  %-c% -o %OBJOBJ% `if test -f '%SOURCE%'; then cygpath -w '%SOURCE%'; else cygpath -w '$(srcdir)/%SOURCE%'`; \
    	then mv "%DEPBASE%.Tpo" "%DEPBASE%.Po"; \
    	else rm -f "%DEPBASE%.Tpo"; exit 1; \
    	fi
    else !%FASTDEP%
    if %AMDEP%
    	source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
    	depfile='%DEPBASE%.Po' tmpdepfile='%DEPBASE%.TPo' @AMDEPBACKSLASH@
    	$(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
    endif %AMDEP%
    ?-o?	%COMPILE% %-c% %-o% %OBJOBJ% `if test -f '%SOURCE%'; then cygpath -w '%SOURCE%'; else cygpath -w '$(srcdir)/%SOURCE%'`
    ?!-o?	%COMPILE% %-c% `if test -f '%SOURCE%'; then cygpath -w '%SOURCE%'; else cygpath -w '$(srcdir)/%SOURCE%'`
    endif !%FASTDEP%
    
    if %?LIBTOOL%
    ?GENERIC?%EXT%.lo:
    ?!GENERIC?%LTOBJ%: %SOURCE%
    if %FASTDEP%
    ## In fast-dep mode, we can always use -o.
    	if %LTCOMPILE% -MT %LTOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
    	  %-c% -o %LTOBJ% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%; \
    	then mv "%DEPBASE%.Tpo" "%DEPBASE%.Po"; \
    	else rm -f "%DEPBASE%.Tpo"; exit 1; \
    	fi
    else !%FASTDEP%
    if %AMDEP%
    	source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
    	depfile='%DEPBASE%.Plo' tmpdepfile='%DEPBASE%.TPlo' @AMDEPBACKSLASH@
    	$(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
    endif %AMDEP%
    ## We can always use `-o' with Libtool.
    	%LTCOMPILE% %-c% -o %LTOBJ% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
    endif !%FASTDEP%
    endif %?LIBTOOL%