Commit | Line | Data |
---|---|---|
af09230b KB |
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 | |
b8c620d6 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. | |
af09230b | 16 | # |
b8c620d6 | 17 | # @(#)Makefile 5.3 (Berkeley) %G% |
af09230b KB |
18 | # |
19 | # -DLOG log games in /usr/adm | |
20 | CFLAGS= -O | |
21 | LIBC= /lib/libc.a | |
22 | SRCS= dm.c | |
1ea5a72f | 23 | OBJS= |
af09230b KB |
24 | |
25 | all: dm | |
26 | ||
1ea5a72f KB |
27 | dm: ${LIBC} |
28 | ${CC} -o $@ ${CFLAGS} dm.c | |
af09230b KB |
29 | |
30 | clean: FRC | |
1ea5a72f | 31 | rm -f core dm |
af09230b KB |
32 | |
33 | depend: FRC | |
1ea5a72f | 34 | mkdep -p ${CFLAGS} ${SRCS} |
af09230b KB |
35 | |
36 | install: FRC | |
37 | install -s -o games -g kmem -m 6755 dm ${DESTDIR}/usr/games | |
38 | # install -c -o games -g bin -m 444 dm.config ${DESTDIR}/usr/games | |
39 | ||
40 | lint: FRC | |
41 | lint ${CFLAGS} ${SRCS} | |
42 | ||
43 | tags: FRC | |
44 | ctags ${SRCS} | |
45 | ||
46 | FRC: | |
47 | ||
48 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
49 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
50 | ||
1ea5a72f KB |
51 | dm: dm.c /usr/include/sys/param.h /usr/include/sys/types.h |
52 | dm: /usr/include/signal.h /usr/include/machine/trap.h | |
53 | dm: /usr/include/machine/machparam.h /usr/include/sys/file.h | |
54 | dm: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/resource.h | |
55 | dm: /usr/include/pwd.h /usr/include/utmp.h /usr/include/nlist.h | |
56 | dm: /usr/include/stdio.h /usr/include/ctype.h | |
af09230b KB |
57 | |
58 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |