From owner-freebsd-arch@FreeBSD.ORG Sat Jun 12 18:49:33 2010 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21DDA1065670 for ; Sat, 12 Jun 2010 18:49:33 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id D89558FC1F for ; Sat, 12 Jun 2010 18:49:32 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id D19741FFC33; Sat, 12 Jun 2010 18:49:31 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id AD45A84492; Sat, 12 Jun 2010 20:47:21 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "M. Warner Losh" References: <20100612.101458.10150326125744273.imp@bsdimp.com> <20100612.111805.94843338670897167.imp@bsdimp.com> Date: Sat, 12 Jun 2010 20:47:21 +0200 In-Reply-To: <20100612.111805.94843338670897167.imp@bsdimp.com> (M. Warner Losh's message of "Sat, 12 Jun 2010 11:18:05 -0600 (MDT)") Message-ID: <86zkz05bra.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: arch@FreeBSD.org Subject: Re: Change to config(8) for OFED X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2010 18:49:33 -0000 "M. Warner Losh" writes: > but NORMAL_C is > > NORMAL_C=3D ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} > > and .IMPSRC is null. That seems like a bug to me, but I'm not sure if > the bug is that .IMPSRC is computed wrong, or if it really should be > ${.ALLSRC} .IMPSRC is the *implicit* source and is only valid in *implicit* rules. Consider the following: .SUFFIXES: .foo .bar .foo.bar: foo2bar.sh /bin/sh foo2bar.sh ${.IMPSRC} ${.TARGET} When building hello.bar from hello.foo, .IMPSRC is "hello.foo" but .ALLSRC is "hello.foo foo2bar.sh". GNU make has a way of defining more complex implicit rules (pattern rules). If we had something similar, we could do: foo_%.o: %.c ${NORMAL_C} DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no