xref: /original-bsd/games/cribbage/Makefile (revision f703d710)
1#
2# Copyright (c) 1987 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.5	(Berkeley)	09/21/87
7#
8CFLAGS=	-O
9LIBC=	/lib/libc.a
10LIBS=	-lcurses -ltermlib
11HDRS=	cribbage.h deck.h cribcur.h
12SRCS=	extern.c crib.c support.c cards.c score.c io.c
13OBJS=	extern.o crib.o support.o cards.o score.o io.o
14TOBJS=	test.o cards.o score.o io.o extern.o
15
16all: cribbage crib.instr
17
18cribbage: ${OBJS} ${LIBC}
19	${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS}
20
21test: ${TOBJS} ${LIBC}
22	${CC} -o $@ ${CFLAGS} ${TOBJS} ${LIBS}
23
24crib.instr: cribbage.n macro
25	nroff cribbage.n > crib.instr
26
27clean: FRC
28	rm -f ${OBJS} core crib.instr cribbage test
29
30depend: FRC
31	mkdep ${CFLAGS} ${SRCS}
32
33install: FRC
34	install -o games -g bin -m 400 crib.instr ${DESTDIR}/usr/games/lib/crib.instr
35	install -s -o games -g bin -m 4700 cribbage ${DESTDIR}/usr/games/hide
36	(cd ${DESTDIR}/usr/games; rm -f cribbage; ln -s dm cribbage; chown games.bin cribbage)
37
38lint: FRC
39	lint ${CFLAGS} ${SRCS}
40
41tags: FRC
42	ctags ${SRCS}
43
44FRC:
45
46# DO NOT DELETE THIS LINE -- mkdep uses it.
47# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
48
49extern.o: extern.c /usr/include/curses.h /usr/include/stdio.h
50extern.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h
51extern.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h deck.h
52extern.o: cribbage.h
53crib.o: crib.c /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h
54crib.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
55crib.o: /usr/include/sys/ttydev.h /usr/include/signal.h deck.h cribbage.h
56crib.o: cribcur.h
57support.o: support.c /usr/include/curses.h /usr/include/stdio.h
58support.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h
59support.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h deck.h
60support.o: cribbage.h cribcur.h
61cards.o: cards.c /usr/include/stdio.h deck.h
62score.o: score.c /usr/include/stdio.h deck.h cribbage.h
63io.o: io.c /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h
64io.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
65io.o: /usr/include/sys/ttydev.h /usr/include/ctype.h /usr/include/signal.h
66io.o: deck.h cribbage.h cribcur.h
67
68# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
69