BSD 4_3_Tahoe release
[unix-history] / usr / src / games / canfield / Makefile
CommitLineData
801bc480
KB
1#
2# Copyright (c) 1987 Regents of the University of California.
59faba5d 3# All rights reserved.
801bc480 4#
59faba5d 5# Redistribution and use in source and binary forms are permitted
65c7d3b6
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.
59faba5d 16#
ca67e7b4 17# @(#)Makefile 5.3 (Berkeley) 6/18/88
801bc480
KB
18#
19CFLAGS= -O
20LIBC= /lib/libc.a
21CSRCS= canfield.c
22CFSRCS= cfscores.c
23
24all: canfield cfscores
25
26canfield: ${LIBC}
27 ${CC} -o $@ ${CFLAGS} ${CSRCS} -lcurses -ltermcap
28
29cfscores: ${LIBC}
30 ${CC} -o $@ ${CFLAGS} ${CFSRCS}
31
ca67e7b4 32clean: FRC
801bc480
KB
33 rm -f core canfield cfscores
34
ca67e7b4 35depend: FRC
801bc480
KB
36 mkdep -p ${CFLAGS} ${CSRCS} ${CFSRCS}
37
ca67e7b4 38install: FRC
801bc480
KB
39 install -s -o games -g bin -m 700 canfield ${DESTDIR}/usr/games/hide
40 install -s -o games -g bin -m 700 cfscores ${DESTDIR}/usr/games/hide
41 (cd ${DESTDIR}/usr/games; rm -f canfield; ln -s dm canfield; chown games.bin canfield)
42 (cd ${DESTDIR}/usr/games; rm -f cfscores; ln -s dm cfscores; chown games.bin cfscores)
43 -[ -f ${DESTDIR}/usr/games/lib/cfscores ] || install -c -o games -g bin -m 600 /dev/null ${DESTDIR}/usr/games/lib/cfscores
44
ca67e7b4 45lint: FRC
801bc480
KB
46 lint ${CFLAGS} ${CSRCS}
47 lint ${CFLAGS} ${CFSRCS}
48
ca67e7b4 49tags: FRC
801bc480 50 ctags ${CSRCS} ${CFSRCS}
ca67e7b4
C
51
52FRC:
53
54# DO NOT DELETE THIS LINE -- mkdep uses it.
55# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
56
57canfield: canfield.c /usr/include/curses.h /usr/include/stdio.h
58canfield: /usr/include/sgtty.h /usr/include/sys/ioctl.h
59canfield: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
60canfield: /usr/include/ctype.h /usr/include/signal.h
61canfield: /usr/include/machine/trap.h /usr/include/sys/types.h
62cfscores: cfscores.c /usr/include/pwd.h
63
64# IF YOU PUT ANYTHING HERE IT WILL GO AWAY