summaryrefslogtreecommitdiffstats
path: root/games/xmines/files/patch-aa
blob: b31bdc3f5e28fcf974d39ae6269a2f256238d7d5 (plain)
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
39
40
41
--- Makefile.orig	Fri Dec  3 23:22:38 1993
+++ Makefile	Sat Aug  5 07:47:54 2000
@@ -3,20 +3,20 @@
 #
 # make clean	removes all temporary files.
 
-CFLAGS = -O
-CC = gcc
-INCLUDE = /usr/X386/include
-LIBRARY = /usr/X386/lib
-BIN = /usr/X386/bin
-SCOREFILES = /usr/X386/lib/X11/games
+CFLAGS += -DSCOREfILE=\"$(SCOREFILES)/scores\"
+CC ?= gcc
+INCLUDE = ${X11BASE}/include
+LIBRARY = ${X11BASE}/lib
+BIN = ${PREFIX}/bin
+SCOREFILES = ${PREFIX}/share/xmines
 
 .c.o:
 	$(CC) $(CFLAGS) -I $(INCLUDE) -c $<
  
-all: xbombs
+all: xmines
 
-xbombs: xmines.o X11.o score.o
-	$(CC) -L $(LIBRARY) -o xbombs xmines.o score.o X11.o -lX11
+xmines: xmines.o X11.o score.o
+	$(CC) -L $(LIBRARY) -o xmines xmines.o score.o X11.o -lX11
 
 X11.o: covered.pat flag.pat gray.pat highlight.pat marked.pat mine.pat ohno.pat shades.pat smiley.pat uncovered.pat uncoveredcolor.pat
 
@@ -24,5 +24,6 @@
 	rm -f *.o
 
 install:
-	install -g games -o games -m 0664  scores/scores $(SCOREFILES)/xbomb-scores
-	install -g games -o games -m 2755 xbombs $(BIN) 
+	mkdir -p $(SCOREFILES)
+	${INSTALL} -g games -o games -m 0666 scores/scores $(SCOREFILES)/scores
+	${INSTALL} -s -g games -o games -m 0755 xmines $(BIN)
OpenPOWER on IntegriCloud