| 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.4 (Berkeley) %G% |
| 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 |
| 26 | |
| 27 | all: hangman |
| 28 | |
| 29 | hangman: ${OBJS} ${LIBC} |
| 30 | ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} |
| 31 | |
| 32 | clean: FRC |
| 33 | rm -f ${OBJS} core hangman |
| 34 | |
| 35 | depend: FRC |
| 36 | mkdep ${CFLAGS} ${SRCS} |
| 37 | |
| 38 | install: FRC |
| 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) |
| 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 |