Date: Sat, 26 Apr 1997 11:35:01 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: David Nugent <davidn@labs.usn.blaze.net.au> Cc: freebsd-current@freebsd.org Subject: Re: Object directories and source files from other directories Message-ID: <Pine.BSF.3.95q.970426113344.346A-100000@herring.nlsystems.com> In-Reply-To: <199704260944.TAA25499@labs.usn.blaze.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 26 Apr 1997, David Nugent wrote:
> I have a an interesting problem which I'd like some advice on.
>
> I wish to introduce into ftpd the ability to compile it with an
> internal '/bin/ls'[*]. In fact, FreeBSD's ls - linked into ftpd
> with main() from ls renamed to something more appropriate.
> Source files should come from ../../bin/ls relative to libexec/ftpd
> from within the source tree.
>
> Now, the problem is this. I wish to use these files directly, but
> simply putting them, including the path, into the SRCS= macro
> will cause the objects to be taken from /usr/obj/usr/src/bin/ls,
> but I wish to compile them separately and put them into ftpd's
> object directory instead.
It sounds like you need to use .PATH; something like:
.PATH: ${.CURDIR}/../../bin/ls
added to your Makefile should do the trick.
--
Doug Rabson Mail: dfr@nlsystems.com
Nonlinear Systems Ltd. Phone: +44 181 951 1891
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970426113344.346A-100000>
