From owner-freebsd-arch Mon Mar 12 12:30:36 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 361EE37B71A for ; Mon, 12 Mar 2001 12:30:32 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id HAA08338; Tue, 13 Mar 2001 07:30:22 +1100 Date: Tue, 13 Mar 2001 07:30:08 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Jonathan Graehl Cc: freebsd-Arch Subject: RE: Breaking up make.conf In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 12 Mar 2001, Jonathan Graehl wrote: > I have a side question about the bsd.*.mk files: the documentation says that > they cannot easily handle programs with sources in subdirectories; It actually says almost the opposite: that they cannot easily handle multiple programs in a single directory. There should be subdirectories somewhere to contain separate Makefiles. Various somewhere's are used: 1) (best) in src/*bin (etc.). The sources may be with the Makefiles (best) or in far-flung contrib dirs where they are harder to manage. 2) in subdirs of source directories in src/*bin (etc.). E.g., src/usr.sbin/mrouted. 3) in subdirs of non-source directories in src/*bin (etc.). E.g., src/gnu/usr.bin/cc. > shouldn't the > VPATH directive allow for this? I recently (using GNU make; BSD make docs > indicate support also) used VPATH to build two servers including common source > from ../shared/ (but the generated objects were different because of -Ddefines > and compiler flags, and were nicely generated and found in the build directory, > since they could be referenced by "shared.o" rather than "../shared/shared.o" > due to the VPATH directive). Does BSD make support this behavior? Could a > Makefile including bsd.prog.mk make use of it? VPATH and .PATH can be used to handle sources files all over the place. VPATH is a style bug in BSD makefiles; use .PATH instead. .PATH gives more control, at least for the .PATH form of it. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message