mark routes modified by redirects
[unix-history] / usr / src / games / cribbage / Makefile
CommitLineData
9a6fbd6d 1#
6cca9b39
KM
2# Copyright (c) 1980 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
c3c278e9 6# @(#)Makefile 5.2 (Berkeley) %G%
9a6fbd6d 7#
6cca9b39 8# make file for cribbage
9a6fbd6d 9#
8f9a6d17 10HDRS= cribbage.h deck.h cribcur.h
9a6fbd6d
KA
11OBJS= extern.o crib.o support.o cards.o score.o io.o
12CFILES= extern.c crib.c support.c cards.c score.c io.c
c161e6a1 13TOBJS= test.o cards.o score.o io.o extern.o
9a6fbd6d 14CFLAGS= -O
1f0c6c1e 15DESTDIR=
8f9a6d17 16
9a6fbd6d
KA
17cribbage: ${OBJS}
18 ${CC} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib
8f9a6d17 19
9a6fbd6d 20all: cribbage crib.instr
8f9a6d17
KA
21
22crib.o io.o support.o: cribcur.h
23
24test: ${TOBJS}
c161e6a1 25 ${CC} ${CFLAGS} -o test ${TOBJS} -lcurses -ltermlib
8f9a6d17
KA
26
27crib.instr: cribbage.n macro
9a6fbd6d 28 nroff cribbage.n > crib.instr
8f9a6d17
KA
29
30tags: ${HDRS} ${CFILES}
9a6fbd6d
KA
31 ctags -u $?
32 ed - tags < :ctfix
33 sort tags -o tags
8f9a6d17
KA
34
35clean:
1f0c6c1e 36 rm -f ${OBJS} ? a.out core crib.instr cribbage errs
8f9a6d17
KA
37
38crib.o: deck.h cribbage.h cribcur.h
39support.o: deck.h cribbage.h cribcur.h
40test.o: deck.h
41cards.o: deck.h
42score.o: deck.h
43io.o: deck.h cribcur.h
9a6fbd6d
KA
44
45install: cribbage crib.instr
1f0c6c1e
JL
46 install -s cribbage $(DESTDIR)/usr/games
47 install -m 644 crib.instr $(DESTDIR)/usr/games/lib