This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
dependancies in automake
- To: tromey@cygnus.com
- Subject: dependancies in automake
- From: Alex Hornby <alex@anvil.co.uk>
- Date: Fri, 7 May 1999 15:29:59 +0100 (BST)
- cc: automake@gnu.org
Tom,
You mentioned the -M switch. In Sun Proc CC 4.2 it is -xM to generate
dependancies.
This would be most useful, as I currently turn off the dependancy
generation.
From man CC:
-xM Outputs makefile dependency information. For
example, with the following code, hello.c:
#include <stdio.h>
main()
{
(void) printf ( "hello0" );
}
When you compile with this option:
% CC -xM hello.c
The output shows the dependencies:
hello.o: hello.c
hello.o: /usr/include/stdio.h
See make(1) for details about makefiles and depen-
dencies.
Regards,
Alex.
--
Alex Hornby Mail: alex@anvil.co.uk
Anvil Software Limited Tel: +(44)171 749 7900
51-53 Rivington Street Direct: +(44)171 749 7925
London EC2A 3SE Fax: +(44)171 749 7916