From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200109201734.f8KHYJw08873@new-york.lcs.mit.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] Building dependencies. From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 20 Sep 2001 13:34:14 -0400 Topicbox-Message-UUID: eee9a21c-eac9-11e9-9e20-41e7f4b1d025 > For most Un*x C compilers I used there is -M flag which outputs list of > sources > with header dependencies in Makefile format, which later could be > included > in Makefile. We tend to keep things simple, with one header file for a whole program, or two if we split data from function declarations. Then we just make everything depend on the header file (or both headers). Look at, say, /sys/src/cmd/acme/mkfile. Russ