$NetBSD: patch-aa,v 1.4 2001/10/15 17:14:23 tron Exp $

--- Makefile.orig	Thu Jan 11 10:55:40 1996
+++ Makefile	Thu Jul 16 05:07:04 1998
@@ -26,6 +26,6 @@
 LINK     = $(CC)
-INCLUDES = -I/usr/X11R5/include
-LIB_DIRS = -L/usr/X11R5/lib
-BINDIR   = /usr/local/bin
-MANDIR   = /usr/local/man/man1
+INCLUDES = -I$(X11BASE)/include
+LIB_DIRS = -L$(X11BASE)/lib -Wl,-R$(X11BASE)/lib
+BINDIR   = $(PREFIX)/bin
+MANDIR   = $(PREFIX)/man/man1
 
@@ -33,4 +33,6 @@
 # feature.
-AUDIO        = -DAUDIO
-AUDIO_MODULE = audio.o
+# Note.  Audio works.  I have no soundcards at present though, so I cannot
+# test it appropriately.
+#AUDIO        = -DAUDIO
+#AUDIO_MODULE = audio.o
 
@@ -38,3 +40,3 @@
 
-LIBS  = $(LIB_DIRS) -lXt -lX11 -lm -lXext
+LIBS  = $(LIB_DIRS) -lXt -lX11 -lm -lXext -LSM -lcompat
 COPTS = $(CFLAGS) $(AUDIO)