1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
3 ## Free Software Foundation, Inc.
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 ## This file is read several times:
21 ## - once per *extention* (not per language) for generic compilation rules
22 ## - once for each file which requires specific flags.
24 ## Note it is on purpose we wrote `if %AMDEP%', since:
26 ## - if deps are turned off, %AMDEP% is mapped onto FALSE, and therefore
27 ## the `if FALSE' chunk is removed (automake-time conditionals).
29 ## - if deps are on, %AMDEP% is mapped onto AMDEP, and therefore
30 ## the `if AMDEP' chunk is prefix with @AMDEP_TRUE@ just like for any
31 ## other configure-time conditional.
34 ?!GENERIC?%OBJ%: %SOURCE%
36 source='%SOURCE%' object='%OBJ%' libtool=no @AMDEPBACKSLASH@
37 depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
38 $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
40 ?-o? %COMPILE% %-c% %-o% %OBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
41 ?!-o? %COMPILE% %-c% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
44 ?!GENERIC?%OBJOBJ%: %SOURCE%
46 source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
47 depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
48 $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
50 ?-o? %COMPILE% %-c% %-o% %OBJOBJ% `cygpath -w %SOURCE%`
51 ?!-o? %COMPILE% %-c% `cygpath -w %SOURCE%`
55 ?!GENERIC?%LTOBJ%: %SOURCE%
57 source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
58 depfile='$(DEPDIR)/%BASE%.Plo' tmpdepfile='$(DEPDIR)/%BASE%.TPlo' @AMDEPBACKSLASH@
59 $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
61 ## We can always use `-o' with Libtool.
62 %LTCOMPILE% %-c% -o %LTOBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%