Date: Fri, 8 Feb 2008 08:51:58 -0500 From: "Jim Stapleton" <stapleton.41@gmail.com> To: Mel <fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: ports makefile stuff (bsd.lib.mk) Message-ID: <80f4f2b20802080551h7f995b60j86d6f5e3ac412e92@mail.gmail.com> In-Reply-To: <200802072154.06464.fbsd.questions@rachie.is-a-geek.net> References: <80f4f2b20802060749p60c9d0ddw83b1ecbbed19db47@mail.gmail.com> <200802072154.06464.fbsd.questions@rachie.is-a-geek.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> first of all, /usr/share/mk/bsd.lib.mk is part of the FreeBSD system make
> files, not just the ports. So if you change something there, you will almost
> certainly break your buildworld and buildkernel.
Depends on what you add, but for the most part, yes, I agree that is likely.
> On Wednesday 06 February 2008 16:49:46 Jim Stapleton wrote:
>
> > 1) Initially, this library will actually build several sublibraries.
> > To keep my code neat, each library has it's own source directory.
>
> So you set SUBDIR.
That was background not a question. I managed that part. (I think it
was from the zipped make tutoral suggested by the man page or ports).
> [...]
>
> Objects are put in OBJDIR. If you have not set MAKEOBJDIRPREFIX in the
> environment, this will default to ${.CURDIR} and give you a warning.
That is exactly what I was looking for. Thank you.
Roughly speaking, under src/, I had backends/[SHLIB_NAME]/,
frontends/[BIN_NAME], objs/, and include/. I wanted to build
everything into objs/, that way I only needs the ldflags to have
"-L../../objs", rather than "-L../foo -L../bar", where foo and bar
vary from app to app.
Thanks,
-Jim Stapleton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20802080551h7f995b60j86d6f5e3ac412e92>
