summaryrefslogtreecommitdiff
path: root/games/xothello/files/patch-aa
blob: 0c6e530ce0eccdca31796b6be263ee763ccce5f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- Makefile.orig	Sat Feb 15 13:00:15 1997
+++ Makefile	Mon Jul  1 02:35:58 2002
@@ -8,14 +8,17 @@
 # Flags that might be overriden by top makefile
 #=================================================================
 
-CC      = gcc
-CCFLAG  = -O2 -Wall -fno-strength-reduce
-LDFLAG  = -O
+#CC      = gcc
+#CCFLAG  = -O2 -Wall -fno-strength-reduce
+#LDFLAG  = -O
 SYSLIB  = -lX11 -lm
-XINCLUDE= -I/usr/X11R6/include
-XLIB    = -L/usr/X11R6/lib
+XINCLUDE= -I$(X11BASE)/include
+.if exists(${X11BASE}/include/X11/forms.h)
+XFORMSINC= -I${X11BASE}/include/X11
+.endif
+XLIB    = -L$(X11BASE)/lib
 
-INSTDIR = /usr/local
+INSTDIR = $(PREFIX)
 BINDIR = $(INSTDIR)/bin
 INSTALL = install
 
@@ -23,9 +26,9 @@
 # Flags the compiler will see
 #=================================================================
 
-CFLAGS  = $(CCFLAG) $(XINCLUDE)
+CFLAGS  = $(CCFLAG) $(XINCLUDE) $(XFORMSINC)
 LDFLAGS = $(LDFLAG) 
-LIBS    = -lforms $(SYSLIB) $(XLIB)
+LIBS    = -lforms -lXpm $(SYSLIB) $(XLIB)
 
 #=================================================================