compiler warning
[unix-history] / usr / src / games / cribbage / Makefile
... / ...
CommitLineData
1#
2# make file for cribbage
3#
4# @(#)Makefile 1.2 (Berkeley) %G%
5#
6HDRS= cribbage.h deck.h cribcur.h
7OBJS= extern.o crib.o support.o cards.o score.o io.o
8CFILES= extern.c crib.c support.c cards.c score.c io.c
9TOBJS= test.o cards.o score.o io.o
10CFLAGS= -O
11
12cribbage: ${OBJS}
13 ${CC} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib
14
15all: cribbage crib.instr
16
17crib.o io.o support.o: cribcur.h
18
19test: ${TOBJS}
20 ${CC} ${CFLAGS} -o test ${TOBJS}
21
22crib.instr: cribbage.n macro
23 nroff cribbage.n > crib.instr
24
25tags: ${HDRS} ${CFILES}
26 ctags -u $?
27 ed - tags < :ctfix
28 sort tags -o tags
29
30clean:
31 rm -f ${OBJS} ? a.out core crib.instr cribbage
32
33crib.o: deck.h cribbage.h cribcur.h
34support.o: deck.h cribbage.h cribcur.h
35test.o: deck.h
36cards.o: deck.h
37score.o: deck.h
38io.o: deck.h cribcur.h
39
40install: cribbage crib.instr
41 install -c -s cribbage /usr/games/
42 install -c crib.instr /usr/games/lib/