appending to CFLAGS

2004-01-10 Thread David Fleck
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
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: appending to CFLAGS

2004-01-10 Thread David Fleck
On Sun, 11 Jan 2004, Gautam Gopalakrishnan wrote:
 You could take the easy way and add it to CFLAGS in /etc/make.conf

Yes, I figured that was the easiest thing to do.  Also, I decided that I'd
misread the man page for make, and that the '+=' construct for variables
is not supported as a command-line option.

thanks-

--
David Fleck
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]