This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fixing dependencies using make dep-am
- To: binutils at sources dot redhat dot com
- Subject: Fixing dependencies using make dep-am
- From: Peter dot Targett at arccores dot com
- Date: Thu, 4 Oct 2001 16:26:37 +0100
How are the makefile dep-am rules used to re-generate dependences in the
Makefile.am? I'm trying to ensure that a work-in-progress port is added
appropriately and the resulting differences in the am files (then .in) are
only those for the new port.
Is this the correct procedure for always updating dependencies? Until now I've
added them manually. I'm using the maintainer tools found in
ftp://sources.redhat.com/pub/binutils/ and configuring with "
--enable-targets=all --enable-maintainer-mode" in a separate build directory:
build> cd bfd; make dep-am
cd ../../binutils/bfd && automake --cygnus Makefile
cd ../../binutils/bfd && autoconf
configure.in:8: AC_TRY_COMPILE was called before AC_ISC_POSIX
configure.in:8: AC_TRY_RUN was called before AC_ISC_POSIX
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_FD_CC
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_FD_CC
***BUG in Autoconf--please report*** AC_FD_CC
...
If I only configure with "--enable-targets=all" the make dep-am completes, but the resulting dependencies look like:
# What appears below is generated by a hacked mkdep using gcc -MM.
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
archive.lo: archive.c ../../binutils/include/ansidecl.h \
../../binutils/include/symcat.h ../../binutils/include/fopen-same.h \
../../binutils/include/filenames.h ../../binutils/include/aout/ar.h \
../../binutils/include/aout/ranlib.h ../../binutils/include/safe-ctype.h
archures.lo: archures.c ../../binutils/include/ansidecl.h \
../../binutils/include/symcat.h ../../binutils/include/fopen-same.h \
../../binutils/include/filenames.h ../../binutils/include/safe-ctype.h
and not like:
# What appears below is generated by a hacked mkdep using gcc -MM.
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
archive.lo: archive.c $(INCDIR)/filenames.h $(INCDIR)/aout/ar.h \
$(INCDIR)/aout/ranlib.h $(INCDIR)/safe-ctype.h
archures.lo: archures.c $(INCDIR)/filenames.h $(INCDIR)/safe-ctype.h
--Peter