|
|
1.1 root 1: #
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: #
6: # @(#)Makefile 5.2 (Berkeley) 5/15/86
7: #
8: # make file for cribbage
9: #
10: HDRS= cribbage.h deck.h cribcur.h
11: OBJS= extern.o crib.o support.o cards.o score.o io.o
12: CFILES= extern.c crib.c support.c cards.c score.c io.c
13: TOBJS= test.o cards.o score.o io.o extern.o
14: CFLAGS= -O
15: DESTDIR=
16:
17: cribbage: ${OBJS}
18: ${CC} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib
19:
20: all: cribbage crib.instr
21:
22: crib.o io.o support.o: cribcur.h
23:
24: test: ${TOBJS}
25: ${CC} ${CFLAGS} -o test ${TOBJS} -lcurses -ltermlib
26:
27: crib.instr: cribbage.n macro
28: nroff cribbage.n > crib.instr
29:
30: tags: ${HDRS} ${CFILES}
31: ctags -u $?
32: ed - tags < :ctfix
33: sort tags -o tags
34:
35: clean:
36: rm -f ${OBJS} ? a.out core crib.instr cribbage errs
37:
38: crib.o: deck.h cribbage.h cribcur.h
39: support.o: deck.h cribbage.h cribcur.h
40: test.o: deck.h
41: cards.o: deck.h
42: score.o: deck.h
43: io.o: deck.h cribcur.h
44:
45: install: cribbage crib.instr
46: install -s cribbage $(DESTDIR)/usr/games
47: install -m 644 crib.instr $(DESTDIR)/usr/games/lib
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.