This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: makedepend and automake
- To: Tim Van Holder <tim dot van dot holder at pandora dot be>
- Subject: Re: makedepend and automake
- From: Robert Boehne <rboehne at ricardo-us dot com>
- Date: Wed, 25 Jul 2001 15:45:07 -0500
- CC: Salvatore_D'Angelo at tivoli dot com, automake at gnu dot org
- List-Id: Discussion list for automake <automake.gnu.org>
- Organization: Ricardo Software
- References: <CAEGKOHJKAAFPKOCLHDIOEMMCFAA.tim.van.holder@pandora.be>
Salvatore:
It seems that there is no need for this, as Automake supports
dependency generation much more advanced than this.
It also can use makedepend if that is the LCD.
Robert
Tim Van Holder wrote:
>
> > Now I have a script that do the following things:
> >
> > aclocal
> > autoconf
> > automake -a
> > ./configure
> > makedepend <some options> *.cpp
> >
> > the problem with this approac is that each time an option will change I
> > need to modify the Makefile.am (for the options) and in the script.
> >
> > Do someone of you know how I can solve this problem?
> >
> > These are the files Makefile.am and configure.in
> >
> > Makefile.am:
> >
> > bin_PROGRAMS = prova
> > prova_SOURCES = A.cpp B.cpp
> > AUTOMAKE_OPTIONS = no-dependencies
>
> My guess would be to add something like
>
> depend: $(prova_SOURCES)
> makedepend $(CXXFLAGS) $(AM_CXXFLAGS) $(prova_SOURCES)
>
> to your Makefile.am.
> Then typing 'make depend' would run makedepend with the current
> options.
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: rboehne@ricardo-us.com