From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 13:51:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5383F16A469 for ; Fri, 8 Feb 2008 13:51:59 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 2530913C478 for ; Fri, 8 Feb 2008 13:51:59 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so432122waf.3 for ; Fri, 08 Feb 2008 05:51:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=8t6frhSX3JXfZo/XlhoEZnygAU1vruoBB63zrkI/K8o=; b=lkNS2JJx6Y82hJerAKKT7iJDBzC3yepSDJ8BKhQD2ZDM4b4b0sCjaXKTvlxCnsWbmzvzshrv7Y86/0x6+zFzOmZBQASnxknz9na27SuH38Rsaq2vSouDkajgIapAXS2G3CcoObqnvz8eqGq3luS5UrK8AWS8t1akxetKoDkOTwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HJRYlgvNyKgSpYdJ/4PqT6ZEZR6htV856ENdowwLorWTvtCKmNzc4sXnYCJFIXvr5DWyj9t8v8ECGgcQBcHnqudcdBsHSI02lkT50U3xYVRHoAK3i7DjC/QsXUNX4iQJ2bd+XeuHVoDdFAK1EJRnQ1pJpI1ZIOba6iGDuKWiLK8= Received: by 10.114.93.17 with SMTP id q17mr5173264wab.70.1202478718747; Fri, 08 Feb 2008 05:51:58 -0800 (PST) Received: by 10.114.113.11 with HTTP; Fri, 8 Feb 2008 05:51:58 -0800 (PST) Message-ID: <80f4f2b20802080551h7f995b60j86d6f5e3ac412e92@mail.gmail.com> Date: Fri, 8 Feb 2008 08:51:58 -0500 From: "Jim Stapleton" To: Mel In-Reply-To: <200802072154.06464.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20802060749p60c9d0ddw83b1ecbbed19db47@mail.gmail.com> <200802072154.06464.fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: ports makefile stuff (bsd.lib.mk) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2008 13:51:59 -0000 > 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