$NetBSD$

--- tooltips/Makefile.netbsd.orig	2003-09-16 01:05:51.000000000 +0200
+++ tooltips/Makefile.netbsd
@@ -26,18 +26,20 @@
 VERSION = 0.02g
 
 # Define where the X11 include files are.
-X11_INCLUDE_DIR = /usr/X11R6/include
+X11_INCLUDE_DIR = ${X11BASE}/include
+OTHER_INCLUDE_DIR = ${X11PREFIX}/include/X11
+X11_BASE_INCLUDE= ${X11BASE}/include
 
 # Uncomment out this line if you do not want debug information included.
 # DEBUG = -g -Wall -ansi -pedantic
 DEBUG = 
 
 # Set the default optimisation
-OPTIM = -O1
+OPTIM = ${CFLAGS}
 
 # Define the utilities to use for compilation.
 CC         = gcc
-CCOPTS     = $(DEBUG) $(OPTIM) -I$(X11_INCLUDE_DIR) -I$(X11_INCLUDE_DIR)/X11 -I$(OTHER_INCLUDE_DIR)
+CCOPTS     = $(DEBUG) $(OPTIM) -I$(X11_INCLUDE_DIR) -I$(X11_INCLUDE_DIR)/X11 -I$(OTHER_INCLUDE_DIR) -I${X11_BASE_INCLUDE}
 AR         = ar
 AROPTS     = ruv
 SED        = sed
