From owner-freebsd-questions@FreeBSD.ORG Sat Jan 10 06:47:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35F3916A4D9 for ; Sat, 10 Jan 2004 06:47:19 -0800 (PST) Received: from sccimhc02.asp.att.net (sccimhc02.asp.att.net [63.240.76.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17EA843D54 for ; Sat, 10 Jan 2004 06:47:18 -0800 (PST) (envelope-from david.fleck@mchsi.com) Received: from grond (12-216-14-105.client.mchsi.com[12.216.14.105]) by sccimhc02.asp.att.net (sccimhc02) with SMTP id <20040110144717im20069qmue>; Sat, 10 Jan 2004 14:47:17 +0000 Date: Sat, 10 Jan 2004 08:47:16 -0600 (CST) From: David Fleck Sender: dcf@grond.sourballs.org To: FreeBSD Questions Message-ID: <20040110084259.A4634@grond.sourballs.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: appending to CFLAGS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2004 14:47:19 -0000 4.9-RELEASE-p1. I'm trying to debug a kernel module (vpo.ko) that used to work, but now doesn't. As a first step, I'd like to build the module in /usr/src/sys/modules/vpo with VPO_DEBUG set. However, my attempts to add the VPO_DEBUG define to the build fail, because my syntax results in VPO_DEBUG replacing CFLAGS, not appended to it. I'm trying: make "CFLAGS+=VPO_DEBUG" in pretty much every permutation I can think of - quoted, unquoted, whitespace separating tokens, no whitespace. Each time, all the CFLAGS are blown away and replaced by VPO_DEBUG. How do I append a variable to CFLAGS? I'm sure this is something blindingly simple, but I'm not seeing it in the developer's handbook or the make manpages. -- David Fleck david.fleck@mchsi.com