date and time created 90/05/02 08:40:51 by bostic
[unix-history] / usr / src / games / cribbage / Makefile
CommitLineData
9a6fbd6d 1#
d35519a8 2# Copyright (c) 1987 Regents of the University of California.
bf870064 3# All rights reserved.
6cca9b39 4#
bf870064 5# Redistribution and use in source and binary forms are permitted
b8c620d6
KB
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
bf870064 16#
114239b6 17# @(#)Makefile 5.10 (Berkeley) %G%
9a6fbd6d 18#
d35519a8
KB
19CFLAGS= -O
20LIBC= /lib/libc.a
21LIBS= -lcurses -ltermlib
8f9a6d17 22HDRS= cribbage.h deck.h cribcur.h
d35519a8 23SRCS= extern.c crib.c support.c cards.c score.c io.c
9a6fbd6d 24OBJS= extern.o crib.o support.o cards.o score.o io.o
c161e6a1 25TOBJS= test.o cards.o score.o io.o extern.o
45ea94b6 26MAN= cribbage.0
8f9a6d17 27
9a6fbd6d 28all: cribbage crib.instr
8f9a6d17 29
d35519a8 30cribbage: ${OBJS} ${LIBC}
62e83541 31 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} -lcompat
8f9a6d17 32
d35519a8
KB
33test: ${TOBJS} ${LIBC}
34 ${CC} -o $@ ${CFLAGS} ${TOBJS} ${LIBS}
8f9a6d17
KA
35
36crib.instr: cribbage.n macro
9a6fbd6d 37 nroff cribbage.n > crib.instr
8f9a6d17 38
45ea94b6 39clean:
d35519a8
KB
40 rm -f ${OBJS} core crib.instr cribbage test
41
45ea94b6
KB
42cleandir: clean
43 rm -f ${MAN} tags .depend
44
45depend: ${SRCS}
d35519a8
KB
46 mkdep ${CFLAGS} ${SRCS}
47
45ea94b6 48install: ${MAN}
8b51accb
KB
49 install -o games -g bin -m 400 crib.instr ${DESTDIR}/usr/games/lib/crib.instr
50 install -s -o games -g bin -m 4700 cribbage ${DESTDIR}/usr/games/hide
114239b6
KB
51 (cd ${DESTDIR}/usr/games; rm -f cribbage; ln -s dm cribbage; \
52 chown games.bin cribbage)
53 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
d35519a8 54
45ea94b6 55lint: ${SRCS}
d35519a8
KB
56 lint ${CFLAGS} ${SRCS}
57
45ea94b6 58tags: ${SRCS}
d35519a8 59 ctags ${SRCS}