From owner-freebsd-questions@FreeBSD.ORG Sat Mar 19 04:08:25 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B86216A4CE for ; Sat, 19 Mar 2005 04:08:25 +0000 (GMT) Received: from yearning.mcc.ac.uk (yearning.mcc.ac.uk [130.88.203.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9170F43D1D for ; Sat, 19 Mar 2005 04:08:24 +0000 (GMT) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by yearning.mcc.ac.uk with esmtp (Exim 4.43 (FreeBSD)) id 1DCVGB-000Ab4-Er; Sat, 19 Mar 2005 04:08:23 +0000 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) j2J48MuA058129; Sat, 19 Mar 2005 04:08:22 GMT (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.13.1/8.12.6/Submit) id j2J48GLU058128; Sat, 19 Mar 2005 04:08:16 GMT Date: Sat, 19 Mar 2005 04:08:16 +0000 From: Jonathon McKitrick To: Chuck Robey Message-ID: <20050319040816.GA58002@dogma.freebsd-uk.eu.org> References: <20050318031137.GA99419@dogma.freebsd-uk.eu.org> <423B03F7.70405@chuckr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <423B03F7.70405@chuckr.org> User-Agent: Mutt/1.4i cc: freebsd-questions@freebsd.org Subject: Re: How to include header files in makefiles X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 04:08:25 -0000 On Fri, Mar 18, 2005 at 04:38:15PM +0000, Chuck Robey wrote: : 1) relative addressing means you have to be forever translating paths in : listings, and very often the number of include paths gets to be rather long. Okay, I can fix that easily. : The Make(1) man page doesn't show "include", the advertised command is : ".include". If you use .include, then you can modify your make, if you Also fixable. : >How can I include the .h files so the .c files are recompiled when the : >header files they require are changed? GNU make has 'make depend' but I'd : >like a better, BSDmake-centric way, if possible. : : Well, did you look at the files in /usr/share/mk, and specifically : bsd.dep.mk? You can even use the FreeBSD sources to figure out (to use : as examples) how things should work. This is the key I want to get working. I'll take a look at those files, but they are pretty deep. : I honestly keep on switching back and forth, between thinking that the : best make is bmake, or gmake. They both have key items that make them : uniquely better. I haven't decided yet. Most BSD people are (predictably) anti-gmake. I have to use gmake for a Linux project I'm on. Jonathon McKitrick -- My other computer is your Windows box.