From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 15:49:47 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 C170416A41A for ; Wed, 6 Feb 2008 15:49:47 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 7C40D13C4D1 for ; Wed, 6 Feb 2008 15:49:47 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so3597084waf.3 for ; Wed, 06 Feb 2008 07:49:46 -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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=kaJjqOSBoY4wvROSRJf9EdK3VFb4SG9lm1yxeBJILDM=; b=wZoOJ9FJrgDUQu3jGZc4yb7O51DoqHWm0uUZBMNR3YNTG0M/jRukGpmo5d0ajQhEz6Cv4vMiQ1xvsKsa+7KvYC4+J/xIQ2owT7UMlRGUFggwTJyYV/Y2Jr0VFkMSzRdktnjev/oB3EllSfAIgXSPC8XJ+xXL3giV9A8htyb9RCw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QAY6jbY10WtFFmaDKXZQDB9uXxPHJBc/jpnLKFRl8u7Fb/nA5XA3vJkBizkRqMNzFvy7CqE8slkYs2aH13Ee6rzcV/6LHQRPPqh64HQ8g732G2GN6022irz4/vc5ZWIdpJ4P9yiM55jNdc7W1102B1TSBWgSVBl2PjWzkiIfBUk= Received: by 10.114.198.1 with SMTP id v1mr7935922waf.89.1202312986830; Wed, 06 Feb 2008 07:49:46 -0800 (PST) Received: by 10.115.48.15 with HTTP; Wed, 6 Feb 2008 07:49:46 -0800 (PST) Message-ID: <80f4f2b20802060749p60c9d0ddw83b1ecbbed19db47@mail.gmail.com> Date: Wed, 6 Feb 2008 10:49:46 -0500 From: "Jim Stapleton" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Wed, 06 Feb 2008 15:49:47 -0000 In my efforts to make some libraries, I looked up the documentation, and found bsd.lib.mk does in fact make my life a lot easier. However, I have a few questions. 1) Initially, this library will actually build several sublibraries. To keep my code neat, each library has it's own source directory. However, I also want to make cross linking easier and less prone to "oops, I forgot to add the library's directory to the lib path list" issues, so under the source directory I made an 'objs' directory, where I was manually putting the output. Is there a way to simply have the final output files sent to that directory? 2) How likely is it to cause compatibility erros if I simply go through the bsd.lib.mk file, and grab out all of the parts I need, and manually assemble them into my makefile? i.e. does this makefile vary much from release-to-release/hardware-to-hardware? Thanks, -Jim Stapleton