Subject: Re: Document for doing makefile or Makefile (include)
To: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-i386
Date: 05/25/2000 09:40:31
On Thu, 25 May 2000, Bill Studenmund wrote:

> > COPTS+=-I/usr/X11R6/include
> 
> No, you want CPPFLAGS+=-I/usr/X11R6/include
> 
> CPPFLAGS is one of the elements used to make COPTS. The difference is that
> CPPFLAGS is also used when linting files and anywhere else the C
> pre-processor is being used.

Actually COPTS and CPPFLAGS make up CFLAGS. To quote
/usr/share/mk/bsd.README:

COPTS           Additional flags to the compiler when creating C objects. 
                
CPPFLAGS        Additional flags to the C pre-processor 
                
The pre-processor handles includes, so it needs the -I directives.

Take care,

Bill