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