Commit | Line | Data |
---|---|---|
0e393c3a KB |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
b8c620d6 | 3 | # All rights reserved. |
0e393c3a | 4 | # |
b8c620d6 KB |
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.4 (Berkeley) %G% | |
0e393c3a KB |
18 | # |
19 | CFLAGS= -O | |
20 | LIBC= /lib/libc.a | |
21 | LIBS= -lcurses -ltermlib | |
22 | SRCS= endgame.c extern.c getguess.c getword.c main.c playgame.c \ | |
23 | prdata.c prman.c prword.c setup.c | |
24 | OBJS= endgame.o extern.o getguess.o getword.o main.o playgame.o \ | |
25 | prdata.o prman.o prword.o setup.o | |
16ec49af KB |
26 | |
27 | all: hangman | |
28 | ||
0e393c3a KB |
29 | hangman: ${OBJS} ${LIBC} |
30 | ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} | |
16ec49af | 31 | |
0e393c3a KB |
32 | clean: FRC |
33 | rm -f ${OBJS} core hangman | |
16ec49af | 34 | |
0e393c3a KB |
35 | depend: FRC |
36 | mkdep ${CFLAGS} ${SRCS} | |
16ec49af | 37 | |
0e393c3a | 38 | install: FRC |
8b51accb KB |
39 | install -s -o games -g bin -m 700 hangman ${DESTDIR}/usr/games/hide |
40 | (cd ${DESTDIR}/usr/games; rm -f hangman; ln -s dm hangman; chown games.bin hangman) | |
0e393c3a KB |
41 | |
42 | lint: FRC | |
43 | lint ${CFLAGS} ${SRCS} | |
44 | ||
45 | tags: FRC | |
46 | ctags ${SRCS} | |
47 | ||
48 | FRC: | |
49 | ||
50 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
51 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
52 | ||
53 | endgame.o: endgame.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
54 | endgame.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
55 | endgame.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
56 | endgame.o: /usr/include/sys/types.h /usr/include/sys/stat.h | |
57 | endgame.o: /usr/include/ctype.h /usr/include/signal.h | |
58 | extern.o: extern.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
59 | extern.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
60 | extern.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
61 | extern.o: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/ctype.h | |
62 | extern.o: /usr/include/signal.h | |
63 | getguess.o: getguess.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
64 | getguess.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
65 | getguess.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
66 | getguess.o: /usr/include/sys/types.h /usr/include/sys/stat.h | |
67 | getguess.o: /usr/include/ctype.h /usr/include/signal.h | |
68 | getword.o: getword.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
69 | getword.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
70 | getword.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
71 | getword.o: /usr/include/sys/types.h /usr/include/sys/stat.h | |
72 | getword.o: /usr/include/ctype.h /usr/include/signal.h | |
73 | main.o: main.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
74 | main.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
75 | main.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
76 | main.o: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/ctype.h | |
77 | main.o: /usr/include/signal.h | |
78 | playgame.o: playgame.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
79 | playgame.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
80 | playgame.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
81 | playgame.o: /usr/include/sys/types.h /usr/include/sys/stat.h | |
82 | playgame.o: /usr/include/ctype.h /usr/include/signal.h | |
83 | prdata.o: prdata.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
84 | prdata.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
85 | prdata.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
86 | prdata.o: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/ctype.h | |
87 | prdata.o: /usr/include/signal.h | |
88 | prman.o: prman.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
89 | prman.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
90 | prman.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
91 | prman.o: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/ctype.h | |
92 | prman.o: /usr/include/signal.h | |
93 | prword.o: prword.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
94 | prword.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
95 | prword.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
96 | prword.o: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/ctype.h | |
97 | prword.o: /usr/include/signal.h | |
98 | setup.o: setup.c hangman.h /usr/include/curses.h /usr/include/stdio.h | |
99 | setup.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
100 | setup.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
101 | setup.o: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/ctype.h | |
102 | setup.o: /usr/include/signal.h | |
103 | ||
104 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |