|
|
1.1 root 1: #
2: # Copyright (c) 1987 Regents of the University of California.
3: # All rights reserved.
4: #
5: # Redistribution and use in source and binary forms are permitted
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.
16: #
17: # @(#)Makefile 5.3 (Berkeley) 6/18/88
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:
32: clean: FRC
33: rm -f core canfield cfscores
34:
35: depend: FRC
36: mkdep -p ${CFLAGS} ${CSRCS} ${CFSRCS}
37:
38: install: FRC
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:
45: lint: FRC
46: lint ${CFLAGS} ${CSRCS}
47: lint ${CFLAGS} ${CFSRCS}
48:
49: tags: FRC
50: ctags ${CSRCS} ${CFSRCS}
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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.