From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 14:39:49 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 09FAF16A419 for ; Fri, 8 Feb 2008 14:39:49 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.228]) by mx1.freebsd.org (Postfix) with ESMTP id A446C13C45D for ; Fri, 8 Feb 2008 14:39:48 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so6497737qbd.7 for ; Fri, 08 Feb 2008 06:39:47 -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:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/fEN+uy/cjAYc2jVrJIxVk6FlJ9t4RFRh1evib1nfOw=; b=Ll7lDX4m2AerklLdp4gQnmJuMwlcKYjggUDSmMwuN/1fzMHFVkOKIyPXh4p7IJUlur91nt8nsFwC2TmsrCUoRlJ8Xsyuh4UKN/NrcsSgVio673n5iVRhfzfhTx7dHfnSzSgXFh2nQXBd/vBuAXqq4jLK4ehWLTqMpGMfmtG9i58= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nta338IjK3eb5ofGc+BGQ7eZVFEsfvNIgPEK53BJ0ItS2TBy0+2hXkosGuGpe3SRW5oFkYAgOSRk7t0IxVkvKmg/XcvrDQ9OVufEYy1jTbMNjcJH99Zx7E5I1yKllQFCj92MMV/+g30pJA1o/FT2lidjtly+9kWbIbXS7gwl2JE= Received: by 10.115.90.1 with SMTP id s1mr163162wal.41.1202481582363; Fri, 08 Feb 2008 06:39:42 -0800 (PST) Received: by 10.114.113.11 with HTTP; Fri, 8 Feb 2008 06:39:42 -0800 (PST) Message-ID: <80f4f2b20802080639y74d5cf3dye856a18c47a99cdc@mail.gmail.com> Date: Fri, 8 Feb 2008 09:39:42 -0500 From: "Jim Stapleton" Cc: freebsd-questions@freebsd.org 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> 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 14:39:49 -0000 > Objects are put in OBJDIR. If you have not set MAKEOBJDIRPREFIX in the > environment, this will default to ${.CURDIR} and give you a warning. I tried setting MAKEOBJDIRPREFIX as shown in the makefile copy below, but the libraries are still appearing in the source directory (src/backends/core) and not in the directory I want them to output to (src/objs). I tried using OBJDIR instead, but without any success. I tried all four of these lines, only the last removed the warning, but it still had the objects built to the source directory. MAKEOBJDIRPREFIX=$(OBJPATH) OBJDIRPREFIX=$(OBJPATH) OBJDIR=$(OBJPATH) .OBJDIR=$(OBJPATH) Any suggestions on what I am doing wrong? Thank you, -Jim Stapleton #directories/requirements #In order of most likely to least likely to change #what we are building OBJNAME=vp_backend_core VERSION=1.0 SRCS=back_end_core.c HDRS= ../../include/virtual_ports_backend.h REQLIB= OBJPATH=../../objs INCLUDE_PATHS=-I../../include -I/usr/local/include LIB_PATHS=-L/usr/local/lib -L$(OBJPATH) #beyond this point *shouldn't* need change between files CFLAGS+= $(INCLUDE_PATHS) CXXFLAGS+= $(INCLUDE_PATHS) LDADD=$(LIB_PATHS) $(REQLIB) .if defined(DEBUG) CFLAGS+=-g -D DEBUG CXXFLAGS+=-g -D DEBUG .endif #for bsd.lib.mk LIB=$(OBJNAME)-$(VERSION) SHLIB_NAME=$(OBJNAME)-$(VERSION) INSTALL_PIC_ARCHIVE=1 OTHER=Makefile MAKEOBJDIRPREFIX=$(OBJPATH) .include