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-arm32
Date: 05/25/2000 09:36:18
On Thu, 25 May 2000, Ignatios Souvatzis wrote:
> On Thu, May 25, 2000 at 07:34:50AM +0200, Richard PLOIX wrote:
> > hello,
> > this don't explain to me why I have an error :
> > "line xxx cannot find file X11/xxxx.h"
> > "line xxx cannot find file GL/glxxx.h"
> > I don't see what is about this?
>
> This is NOT related to Makefile per se.
>
> for X11 programs, you need to add -I/usr/X11R6/include to your compiler flags.
>
> With NetBSD programs, you do it by
>
> 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.
Take care,
Bill