$NetBSD: patch-aa,v 1.3 2010/07/10 11:26:32 obache Exp $ --- Makefile.orig 2009-09-08 22:14:56.000000000 +0000 +++ Makefile @@ -78,7 +78,7 @@ EXEDIR = ../exe # The next two assignments are the invocations of the compiler # # This one specifies the "cc" C compiler -CC = cc +#CC = cc # # To use GCC instead: #CC = gcc @@ -97,7 +97,7 @@ CC = cc #CFLAGS = -g # # An optimized one for gcc -CFLAGS = -O3 -fomit-frame-pointer +#CFLAGS = -O3 -fomit-frame-pointer # # For some serious debugging using Gnu gcc # @@ -128,7 +128,7 @@ CFLAGS = -O3 -fomit-frame-pointer # use the corresponding value for $(DLIBS). If the Xlib library # for the X windowing system is somewhere unexpected, you may have # to change the path /usr/X11R6/lib in this one. -DFLAGS = $(CFLAGS) -DX -I/usr/X11R6/include +DFLAGS = $(CFLAGS) -DX -I${X11BASE}/include # # ---------------------------------------------------------------------------- # @@ -149,7 +149,7 @@ LIBS = -lm # to change the path /usr/X11R6/lib in this one. If you use this # value for $(DLIBS), you should also use the corresponding value # for $(DFLAGS) -DLIBS= $(LIBS) -L/usr/X11R6/lib/ -lX11 -lXaw -lXt +DLIBS= $(LIBS) ${X11_LDFLAGS} -lX11 -lXaw -lXt # # ---------------------------------------------------------------------------- # (After this point there should not be any reason to change anything)