# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.2 (Berkeley) %G%
HDRS
= cribbage.h deck.h cribcur.h
OBJS
= extern.o crib.o support.o cards.o score.o io.o
CFILES
= extern.c crib.c support.c cards.c score.c io.c
TOBJS
= test.o cards.o score.o io.o extern.o
${CC} ${CFLAGS} -o cribbage
${OBJS} -lcurses
-ltermlib
crib.o io.o support.o
: cribcur.h
${CC} ${CFLAGS} -o
test ${TOBJS} -lcurses
-ltermlib
crib.instr
: cribbage.n macro
nroff cribbage.n
> crib.instr
rm -f
${OBJS} ? a.out core crib.instr cribbage errs
crib.o
: deck.h cribbage.h cribcur.h
support.o
: deck.h cribbage.h cribcur.h
install: cribbage crib.instr
install -s cribbage
$(DESTDIR
)/usr
/games
install -m
644 crib.instr
$(DESTDIR
)/usr
/games
/lib