Commit | Line | Data |
---|---|---|
44ba15f9 | 1 | # |
5aabaf49 | 2 | # Copyright (c) 1987 Regents of the University of California. |
f08ad3e2 | 3 | # All rights reserved. |
44ba15f9 | 4 | # |
f08ad3e2 | 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. | |
f08ad3e2 | 16 | # |
65c7d3b6 | 17 | # @(#)Makefile 5.7 (Berkeley) %G% |
44ba15f9 | 18 | # |
5aabaf49 KB |
19 | CFLAGS= -O |
20 | LIBC= /lib/libc.a | |
21 | LIBS= -lcurses -ltermlib | |
22 | SRCS= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ | |
23 | roll.c save.c table.c types.c varpush.c | |
24 | MSRCS= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ | |
44ba15f9 | 25 | roll.c save.c types.c varpush.c |
5aabaf49 | 26 | MOBJS= comp.o end.o extern.o init.o mille.o misc.o move.o print.o \ |
44ba15f9 | 27 | roll.o save.o types.o varpush.o |
5aabaf49 KB |
28 | TSRCS= table.c extern.c |
29 | TOBJS= table.o extern.o | |
30 | ||
31 | all: mille | |
32 | ||
33 | mille: ${MOBJS} ${LIBC} | |
34 | ${CC} ${CFLAGS} -o $@ ${MOBJS} ${LIBS} | |
35 | ||
36 | table: ${TOBJS} ${LIBC} | |
37 | ${CC} ${CFLAGS} -o $@ ${TOBJS} | |
38 | ||
39 | clean: FRC | |
a67c1cca | 40 | rm -f ${OBJS} ${TOBJS} ${MOBJS} core mille table |
5aabaf49 KB |
41 | |
42 | depend: FRC | |
43 | mkdep ${CFLAGS} ${SRCS} | |
44 | ||
45 | install: FRC | |
8b51accb KB |
46 | install -s -o games -g bin -m 700 mille ${DESTDIR}/usr/games/hide |
47 | (cd ${DESTDIR}/usr/games; rm -f mille; ln -s dm mille; chown games.bin mille) | |
5aabaf49 KB |
48 | |
49 | lint: FRC | |
a67c1cca | 50 | lint ${CFLAGS} ${MSRCS} |
5aabaf49 KB |
51 | lint ${CFLAGS} ${TSRCS} |
52 | ||
53 | tags: FRC | |
a67c1cca | 54 | ctags ${MSRCS} |
5aabaf49 KB |
55 | ctags -a ${TSRCS} |
56 | sort -o tags tags | |
57 | ||
58 | FRC: | |
59 | ||
60 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
61 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
62 | ||
f08ad3e2 KB |
63 | comp.o: comp.c mille.h /usr/include/sys/types.h /usr/include/ctype.h |
64 | comp.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
65 | comp.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
66 | comp.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
67 | comp.o: /usr/include/strings.h | |
68 | end.o: end.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
69 | end.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
70 | end.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
71 | end.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
72 | end.o: /usr/include/strings.h | |
73 | extern.o: extern.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
74 | extern.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
75 | extern.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
76 | extern.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
77 | extern.o: /usr/include/strings.h | |
78 | init.o: init.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
79 | init.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
80 | init.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
81 | init.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
82 | init.o: /usr/include/strings.h | |
83 | mille.o: mille.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
84 | mille.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
85 | mille.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
86 | mille.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
87 | mille.o: /usr/include/strings.h /usr/include/signal.h | |
88 | mille.o: /usr/include/machine/trap.h | |
89 | misc.o: misc.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
90 | misc.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
91 | misc.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
92 | misc.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
93 | misc.o: /usr/include/strings.h /usr/include/sys/file.h | |
94 | move.o: move.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
95 | move.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
96 | move.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
97 | move.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
98 | move.o: /usr/include/strings.h | |
99 | print.o: print.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
100 | print.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
101 | print.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
102 | print.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
103 | print.o: /usr/include/strings.h | |
104 | roll.o: roll.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
105 | roll.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
106 | roll.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
107 | roll.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
108 | roll.o: /usr/include/strings.h | |
109 | save.o: save.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
110 | save.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
111 | save.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
112 | save.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
113 | save.o: /usr/include/strings.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
114 | table.o: table.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
115 | table.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
116 | table.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
117 | table.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
118 | table.o: /usr/include/strings.h | |
119 | types.o: types.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
120 | types.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
121 | types.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
122 | types.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
123 | types.o: /usr/include/strings.h | |
124 | varpush.o: varpush.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
125 | varpush.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
126 | varpush.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
127 | varpush.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
128 | varpush.o: /usr/include/strings.h | |
5aabaf49 KB |
129 | |
130 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |