[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
even @C_FALSE@ (unsatisfied) contains rule to produce binary
From: |
Jan Kratochvil |
Subject: |
even @C_FALSE@ (unsatisfied) contains rule to produce binary |
Date: |
Mon, 11 Oct 2010 21:57:28 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
it came on now on the binutils mailing list:
The "a" program gets built only `if F' below. Makefile.in correctly contains:
@address@hidden: b.c
@F_TRUE@ gcc -o $@ $< -Wall
But while does it also contains:
@address@hidden(EXEEXT): $(a_OBJECTS) $(a_DEPENDENCIES)
@F_FALSE@ @rm -f a$(EXEEXT)
@F_FALSE@ $(LINK) $(a_OBJECTS) $(a_LDADD) $(LIBS)
which does not work anyway as $(a_OBJECTS) is not defined in @address@hidden
Posting here for a consideration as asked about by Ralf Wildenhues.
Thanks,
Jan
automake-1.11.1-5.fc14.noarch
autoconf-2.66-2.fc14.noarch
==> Makefile.am <==
AUTOMAKE_OPTIONS = foreign
if F
bin_PROGRAMS = a
a_SOURCES = b.c
a: b.c
gcc -o $@ $< -Wall
endif F
==> b.c <==
int main (void) { return 0; }
==> configure.ac <==
AC_INIT(a, 1.0)
AM_INIT_AUTOMAKE
AM_CONDITIONAL(F, false)
AC_PROG_CC
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
- even @C_FALSE@ (unsatisfied) contains rule to produce binary,
Jan Kratochvil <=