Subject: Re: Document for doing makefile or Makefile (include)
To: Richard PLOIX <richard.ploix@fr.adp.com>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-i386
Date: 05/30/2000 07:49:27
On Mon, 29 May 2000, Richard PLOIX wrote:

> This is ok for now.
> but the new problem is for linking.
> here is my makefile:
> ---------------------
> WARNS=2
> PROG=HELLO
> NOMAN=noman
> COPTS+=-I/usr/X11R6/include
> LIBDIR+=-L/usr/X1
> 1R6/lib
> LDFLAGS+=-lX11
> .include <bsd.prog.mk>
> ---------------------
> a this time, i can't find "XOpenDisplay", ... for linking.
> I try LDFLAGS, LIBDIR, LDADD+=-lX11, ...

LIBDIR is for when you're building a library. It's where that library is
installed.

Try:

LDADD+=-lX11

LDFLAGS+=-L/usr/X11R6/lib

Take care,

Bill