Compiler gen'd depends (was: nested includes)

Arnold Geels geels at cs.vu.nl
Wed Apr 17 19:03:29 AEST 1991


john at iastate.edu (Hascall John Paul) writes:

>   For those with Ultrix, you may want to check out the undocumented
>(in my old docs anyhow) option "-Em", as in this simple-minded example:
>
>      $(CC) -Em $(CFLAGS) $(DEFINES) $(CSOURCES) >>Makefile
>
>John

Gcc and cc (Sun) both have a documented -M flag that tells the compiler to
generate makefile dependencies. Gcc also has the -MM flag (exclude system
header files).

Arno1d.

----------------
Arnold Geels
Vrije Universiteit Amsterdam
The Netherlands.



More information about the Comp.lang.c mailing list