Hi,

it came on now on the binutils mailing list:

The "a" program gets built only `if F' below.  Makefile.in correctly contains:
@f_t...@a: b.c
@F_TRUE@        gcc -o $@ $< -Wall

But while does it also contains:
@f_fa...@a$(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 @f_fa...@?

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


Reply via email to