Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2001 11:38:56 -0800
From:      "Jonathan Graehl" <jonathan@graehl.org>
To:        "freebsd-Arch" <freebsd-arch@FreeBSD.ORG>
Subject:   RE: Breaking up make.conf 
Message-ID:  <NCBBLOALCKKINBNNEDDLIEFKDMAA.jonathan@graehl.org>
In-Reply-To: <200103121913.f2CJDtI38620@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I have a side question about the bsd.*.mk files: the documentation says that
they cannot easily handle programs with sources in subdirectories; 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?

I suppose I am supposed to simply write my own makefiles (and that is what I
did), but I originally had thought that the bsd.*.mk had a nice, uniform system,
and would have used them if not for my inability to build a program from
non-flat-sources using them.

--
Jonathan Graehl
  email: jonathan@graehl.org
  web: http://jonathan.graehl.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBLOALCKKINBNNEDDLIEFKDMAA.jonathan>