Commit | Line | Data |
---|---|---|
44ba15f9 | 1 | # |
5aabaf49 | 2 | # Copyright (c) 1987 Regents of the University of California. |
f08ad3e2 | 3 | # All rights reserved. |
44ba15f9 | 4 | # |
f08ad3e2 KB |
5 | # Redistribution and use in source and binary forms are permitted |
6 | # provided that this notice is preserved and that due credit is given | |
7 | # to the University of California at Berkeley. The name of the University | |
8 | # may not be used to endorse or promote products derived from this | |
9 | # software without specific prior written permission. This software | |
10 | # is provided ``as is'' without express or implied warranty. | |
11 | # | |
12 | # @(#)Makefile 5.6 (Berkeley) %G% | |
44ba15f9 | 13 | # |
5aabaf49 KB |
14 | CFLAGS= -O |
15 | LIBC= /lib/libc.a | |
16 | LIBS= -lcurses -ltermlib | |
17 | SRCS= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ | |
18 | roll.c save.c table.c types.c varpush.c | |
19 | MSRCS= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ | |
44ba15f9 | 20 | roll.c save.c types.c varpush.c |
5aabaf49 | 21 | MOBJS= comp.o end.o extern.o init.o mille.o misc.o move.o print.o \ |
44ba15f9 | 22 | roll.o save.o types.o varpush.o |
5aabaf49 KB |
23 | TSRCS= table.c extern.c |
24 | TOBJS= table.o extern.o | |
25 | ||
26 | all: mille | |
27 | ||
28 | mille: ${MOBJS} ${LIBC} | |
29 | ${CC} ${CFLAGS} -o $@ ${MOBJS} ${LIBS} | |
30 | ||
31 | table: ${TOBJS} ${LIBC} | |
32 | ${CC} ${CFLAGS} -o $@ ${TOBJS} | |
33 | ||
34 | clean: FRC | |
a67c1cca | 35 | rm -f ${OBJS} ${TOBJS} ${MOBJS} core mille table |
5aabaf49 KB |
36 | |
37 | depend: FRC | |
38 | mkdep ${CFLAGS} ${SRCS} | |
39 | ||
40 | install: FRC | |
8b51accb KB |
41 | install -s -o games -g bin -m 700 mille ${DESTDIR}/usr/games/hide |
42 | (cd ${DESTDIR}/usr/games; rm -f mille; ln -s dm mille; chown games.bin mille) | |
5aabaf49 KB |
43 | |
44 | lint: FRC | |
a67c1cca | 45 | lint ${CFLAGS} ${MSRCS} |
5aabaf49 KB |
46 | lint ${CFLAGS} ${TSRCS} |
47 | ||
48 | tags: FRC | |
a67c1cca | 49 | ctags ${MSRCS} |
5aabaf49 KB |
50 | ctags -a ${TSRCS} |
51 | sort -o tags tags | |
52 | ||
53 | FRC: | |
54 | ||
55 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
56 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
57 | ||
f08ad3e2 KB |
58 | comp.o: comp.c mille.h /usr/include/sys/types.h /usr/include/ctype.h |
59 | comp.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
60 | comp.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
61 | comp.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
62 | comp.o: /usr/include/strings.h | |
63 | end.o: end.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
64 | end.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
65 | end.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
66 | end.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
67 | end.o: /usr/include/strings.h | |
68 | extern.o: extern.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
69 | extern.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
70 | extern.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
71 | extern.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
72 | extern.o: /usr/include/strings.h | |
73 | init.o: init.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
74 | init.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
75 | init.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
76 | init.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
77 | init.o: /usr/include/strings.h | |
78 | mille.o: mille.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
79 | mille.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
80 | mille.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
81 | mille.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
82 | mille.o: /usr/include/strings.h /usr/include/signal.h | |
83 | mille.o: /usr/include/machine/trap.h | |
84 | misc.o: misc.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
85 | misc.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
86 | misc.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
87 | misc.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
88 | misc.o: /usr/include/strings.h /usr/include/sys/file.h | |
89 | move.o: move.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
90 | move.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
91 | move.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
92 | move.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
93 | move.o: /usr/include/strings.h | |
94 | print.o: print.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
95 | print.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
96 | print.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
97 | print.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
98 | print.o: /usr/include/strings.h | |
99 | roll.o: roll.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
100 | roll.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
101 | roll.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
102 | roll.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
103 | roll.o: /usr/include/strings.h | |
104 | save.o: save.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
105 | save.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
106 | save.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
107 | save.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
108 | save.o: /usr/include/strings.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
109 | table.o: table.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
110 | table.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
111 | table.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
112 | table.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
113 | table.o: /usr/include/strings.h | |
114 | types.o: types.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
115 | types.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
116 | types.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
117 | types.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
118 | types.o: /usr/include/strings.h | |
119 | varpush.o: varpush.c mille.h /usr/include/sys/types.h /usr/include/ctype.h | |
120 | varpush.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h | |
121 | varpush.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
122 | varpush.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
123 | varpush.o: /usr/include/strings.h | |
5aabaf49 KB |
124 | |
125 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |