33 lines
1.3 KiB
Text
33 lines
1.3 KiB
Text
$NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $
|
|
|
|
--- Makefile.orig Wed Jun 30 20:25:02 1999
|
|
+++ Makefile
|
|
@@ -5,8 +5,8 @@
|
|
# it's data, and BINPATH is where it puts the executable
|
|
###########################################################################
|
|
|
|
-DATAPATH = /usr/games/xroads/
|
|
-BINPATH = /usr/X11R6/bin/
|
|
+DATAPATH = ${PREFIX}/share/xroads/
|
|
+BINPATH = ${PREFIX}/bin/
|
|
# I imagine you would use this BINPATH for Solaris:
|
|
#BINPATH = /usr/openwin/bin/
|
|
|
|
@@ -15,7 +15,7 @@
|
|
# optimizations. Check the manual for your compiler.
|
|
###########################################################################
|
|
|
|
-CFLAGS = -fomit-frame-pointer -O2 -Wall -DXRMPATH=\"$(DATAPATH)\"
|
|
+CFLAGS = -O2 -Wall -DXRMPATH=\"$(DATAPATH)\" -I${X11BASE}/include -I${X11BASE}/include/X11
|
|
#CFLAGS = -O6 -mpentium -g -Wall -DXRMPATH=\"$(DATAPATH)\"
|
|
|
|
###########################################################################
|
|
@@ -33,7 +33,7 @@
|
|
###########################################################################
|
|
|
|
### Linux machines use this line:
|
|
-LINK = -L/usr/X11R6/lib -I/usr/X11R6/include -lX11 -lm
|
|
+LINK = -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -I${X11BASE}/include -lX11 -lm
|
|
|
|
### I'm told this line works fine on Solaris 2.5.1 with X11R5:
|
|
#LINK = -L/usr/openwin/lib -I/usr/openwin/include -lX11 -lm
|