Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uunet!aspect!dave From: dave@aspect.UUCP (Dave Corcoran) Newsgroups: comp.lang.c Subject: Re: Compiler gen'd depends (was: nested includes) Summary: makefile dependencies Message-ID: <9728@aspect.UUCP> Date: 25 Apr 91 01:43:14 GMT References: <1991Apr17.003928.23530@news.iastate.edu> <9734@star.cs.vu.nl> Organization: Aspect Telecommunications, San Jose, Ca Lines: 17 In article <9734@star.cs.vu.nl>, geels@cs.vu.nl (Arnold Geels) writes: > john@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: > > > 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). > Sun make also has a target name ".KEEP_STATE:" which when found in your makefile will interrogate the compliler for dependencies and keep them hidden from view in a file named ".make.state"; tis very nice. -- David Corcoran -@@ uunet!aspect!dave ~ In a society where anything goes eventually everything will.