Commit | Line | Data |
---|---|---|
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 | # |
19 | CFLAGS= -O | |
20 | LIBC= /lib/libc.a | |
21 | CSRCS= canfield.c | |
22 | CFSRCS= cfscores.c | |
23 | ||
24 | all: canfield cfscores | |
25 | ||
26 | canfield: ${LIBC} | |
27 | ${CC} -o $@ ${CFLAGS} ${CSRCS} -lcurses -ltermcap | |
28 | ||
29 | cfscores: ${LIBC} | |
30 | ${CC} -o $@ ${CFLAGS} ${CFSRCS} | |
31 | ||
ca67e7b4 | 32 | clean: FRC |
801bc480 KB |
33 | rm -f core canfield cfscores |
34 | ||
ca67e7b4 | 35 | depend: FRC |
801bc480 KB |
36 | mkdep -p ${CFLAGS} ${CSRCS} ${CFSRCS} |
37 | ||
ca67e7b4 | 38 | install: 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 | 45 | lint: FRC |
801bc480 KB |
46 | lint ${CFLAGS} ${CSRCS} |
47 | lint ${CFLAGS} ${CFSRCS} | |
48 | ||
ca67e7b4 | 49 | tags: FRC |
801bc480 | 50 | ctags ${CSRCS} ${CFSRCS} |
ca67e7b4 C |
51 | |
52 | FRC: | |
53 | ||
54 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
55 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
56 | ||
57 | canfield: canfield.c /usr/include/curses.h /usr/include/stdio.h | |
58 | canfield: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
59 | canfield: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
60 | canfield: /usr/include/ctype.h /usr/include/signal.h | |
61 | canfield: /usr/include/machine/trap.h /usr/include/sys/types.h | |
62 | cfscores: cfscores.c /usr/include/pwd.h | |
63 | ||
64 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |