This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Beginner GCC projects question
- From: "Dave Korn" <dk at artimi dot com>
- To: "'Michael Veksler'" <VEKSLER at il dot ibm dot com>,"'Paolo Bonzini'" <bonzini at gnu dot org>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 17 May 2004 12:29:23 +0100
- Subject: RE: Beginner GCC projects question
> -----Original Message-----
> From: gcc-owner On Behalf Of Michael Veksler
> Sent: 17 May 2004 11:01
> There are ways to fix concerns 1-3 but they are quite
> ugly. Some of the solutions are not so portable (e.g. require
> /bin/touch). You may wind up doing weird dependencies like:
> foo.o: foo.c foo.m
> foo.m:
> @#do nothing
> or:
> foo.o: foo.c foo.m
> foo.m: foo.c
>
> I am sure that there are examples somewhere on the
> web, I am not quite sure if Automake has it done right.
There's a very fine document called "Advanced Auto-Dependency Generation"
at the gmake maintainer's website http://make.paulandlesley.org/autodep.html
which will probably help if you haven't seen it before. Highly recommended.
cheers,
DaveK
--
Can't think of a witty .sigline today....