blob: d814e16729af7510357ecc73c5f1479ace4d14fa (
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
|
--- Makefile.orig Sat Oct 21 05:17:43 1995
+++ Makefile Tue Jul 18 11:39:08 2000
@@ -6,14 +6,25 @@
#
-
+SCOREDIR=$(PREFIX)/share/trojka
+SCOREFILE=$(SCOREDIR)/trojka.scores
+CFLAGS+= -DSCOREFILE=\"$(SCOREFILE)\"
OBJS= trojka.o screen.o scan.o hiscore.o system.o
+all: freebsd trojka.6.out
+
make:
@echo please specify: hpux, xenix68, linux or sunos
install:
- cp trojka /usr/games
+ install -c -d -m 0755 $(SCOREDIR)
+ install -c -m 2755 -g games -s trojka $(PREFIX)/bin
+ install -c -m 0644 COPYRIGHT README $(SCOREDIR)
+ install -c -m 0664 -g games /dev/null $(SCOREFILE)
+ install -c -m 0444 trojka.6.out $(PREFIX)/man/man6/trojka.6
+
+trojka.6.out: trojka.6
+ sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out
clean:
rm -f $(PROGS) *.o core a.out trojka.scores
@@ -53,3 +64,5 @@
linux:
make trojka "CFLAGS=-DLINUX"
+
+freebsd: trojka
|