--- Makefile	2006-04-17 08:13:14.000000000 -0400
+++ Makefile.new	2008-01-16 13:27:38.000000000 -0500
@@ -32,15 +32,15 @@
 ### socket.1 in /usr/local/man/man1/socket.1
 ### Make sure the target directories exist before doing a "make install".
 
-INSTALLBASE = /usr/local
+INSTALLBASE = @prefix@
 INSTALLBINPATH = $(INSTALLBASE)/bin
 INSTALLBINMODE = 755
-INSTALLMANPATH = $(INSTALLBASE)/man
+INSTALLMANPATH = $(INSTALLBASE)/share/man
 INSTALLMANMODE = 444
 GCCOPTS = -Wall -Wstrict-prototypes
 CC = cc
-CFLAGS = $(SWITCHES) -g
-LDFLAGS = $(SWITCHES) # -s
+CFLAGS = $(SWITCHES) -g @cflags@
+LDFLAGS = $(SWITCHES) @ldflags@ # -s
 # To use an architecture-specific compile directory (inside of the
 # source directory):
 ARCHDIR = 
