summaryrefslogtreecommitdiffstats
path: root/games/omega/files/patch-aa
blob: b95523a850f8d02718c44e537b0802bc2f5d2162 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- Makefile.orig	Fri Jan  1 20:00:06 1999
+++ Makefile	Mon Jul  5 19:51:50 1999
@@ -1,14 +1,14 @@
 # These two definitions are used if you 'make install'
 # the value of LIBDIR should be the same as OMEGALIB in defs.h
-BINDIR = /home/sdossey/omega/
-LIBDIR = /home/sdossey/omega/lib/
+BINDIR = ${PREFIX}/bin
+LIBDIR = ${PREFIX}/share/omega
 
 # One of these should be uncommented, as appropriate, unless your compiler
 # does it for you.  You can test this by simply trying to 'make' omega -
 # it will fail if none of them are defined.  If you do uncomment
 # one, make sure you comment out the other definition of CFLAGS lower down
 
-CFLAGS = -DBSD -ggdb
+CFLAGS+= -DBSD -DOMEGALIB=\"${LIBDIR}/\"
 #CFLAGS = -DSYSV -O
 # I also had to define -cckr (K&R style C) for system V
 #CFLAGS = -DMSDOS -O
@@ -17,14 +17,14 @@
 # CPP should contain the command to run the C preprocessor.
 #CPP = cc -E
 #CPP = /lib/cpp
-CPP = gcc -E
+CPP = ${CC} -E
 
 # If you have gcc and don't intend to hack around with the game,
 # I recommend setting CC to gcc and using -O (as the CFLAGS).
 
 #CFLAGS = -O
 #LDFLAGS = -s
-CC = gcc
+#CC = gcc
 
 # comment out one of the following two, after establishing whether your
 # machine uses termcap (most BSD machines) or terminfo (System-V)
@@ -48,7 +48,10 @@
 omega: $(OBJ)
 	$(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o omega
 
-install: omega $(BINDIR) $(LIBDIR)
+install: omega
+	mkdir -p $(BINDIR)
+	mkdir -p $(LIBDIR)
+	chown games:games omega
 	cp omega $(BINDIR)
 	chmod 4711 $(BINDIR)/omega
 	- cp lib/* $(LIBDIR)
@@ -71,9 +74,9 @@
 
 $(OBJ): clrgen.h defs.h extern.h glob.h
 
-clrgen.h clrgen.c: genclr.c minit.h defs.h
-	$(MAKE) genclr
+clrgen.c: genclr
 	$(CPP) -DOMEGA_CLRGEN *.[ch] | ./genclr clrgen.c clrgen.h
+clrgen.h: | clrgen.c
 
 genclr: genclr.o
 	$(CC) $(LDFLAGS) genclr.o -o genclr
OpenPOWER on IntegriCloud