Commit | Line | Data |
---|---|---|
7172eb74 | 1 | # |
51a16129 | 2 | # Copyright (c) 1987 Regents of the University of California. |
7172eb74 DF |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
51a16129 | 6 | # @(#)Makefile 5.3 (Berkeley) %G% |
7172eb74 | 7 | # |
51a16129 | 8 | LIBC= /lib/libc.a |
9b118173 | 9 | RDIST = /usr/ucb/rdist |
51a16129 | 10 | CFLAGS= -O -DRDIST=\"${RDIST}\" |
82572cb6 RC |
11 | SRCS = docmd.c expand.c gram.y lookup.c main.c server.c |
12 | OBJS = docmd.o expand.o gram.o lookup.o main.o server.o | |
be739acc | 13 | |
51a16129 KB |
14 | all: rdist |
15 | ||
16 | rdist: ${OBJS} ${LIBC} | |
17 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
18 | ||
19 | clean: FRC | |
20 | rm -f ${OBJS} core rdist | |
21 | ||
22 | depend: FRC | |
23 | mkdep ${CFLAGS} ${SRCS} | |
24 | ||
25 | install: FRC | |
26 | install -s -o root -g bin -m 4751 rdist ${DESTDIR}${RDIST} | |
be739acc | 27 | |
51a16129 KB |
28 | lint: FRC |
29 | lint ${CFLAGS} ${SRCS} | |
be739acc | 30 | |
51a16129 KB |
31 | tags: FRC |
32 | ctags ${SRCS} | |
be739acc | 33 | |
51a16129 | 34 | FRC: |
300a5f74 | 35 | |
51a16129 KB |
36 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
37 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
be739acc | 38 | |
51a16129 KB |
39 | docmd.o: docmd.c |
40 | docmd.o:defs.h | |
41 | docmd.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/errno.h | |
42 | docmd.o: /usr/include/pwd.h /usr/include/grp.h /usr/include/sys/param.h | |
43 | docmd.o: /usr/include/sys/types.h /usr/include/signal.h | |
44 | docmd.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
45 | docmd.o: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h | |
46 | docmd.o: /usr/include/netinet/in.h /usr/include/setjmp.h /usr/include/netdb.h | |
47 | expand.o: expand.c | |
48 | expand.o:defs.h | |
49 | expand.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/errno.h | |
50 | expand.o: /usr/include/pwd.h /usr/include/grp.h /usr/include/sys/param.h | |
51 | expand.o: /usr/include/sys/types.h /usr/include/signal.h | |
52 | expand.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
53 | expand.o: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h | |
54 | expand.o: /usr/include/netinet/in.h | |
55 | gram.o: gram.y | |
56 | gram.o:defs.h | |
57 | gram.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/errno.h | |
58 | gram.o: /usr/include/pwd.h /usr/include/grp.h /usr/include/sys/param.h | |
59 | gram.o: /usr/include/sys/types.h /usr/include/signal.h | |
60 | gram.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
61 | gram.o: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h | |
62 | gram.o: /usr/include/netinet/in.h | |
63 | lookup.o: lookup.c | |
64 | lookup.o:defs.h | |
65 | lookup.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/errno.h | |
66 | lookup.o: /usr/include/pwd.h /usr/include/grp.h /usr/include/sys/param.h | |
67 | lookup.o: /usr/include/sys/types.h /usr/include/signal.h | |
68 | lookup.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
69 | lookup.o: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h | |
70 | lookup.o: /usr/include/netinet/in.h | |
71 | main.o: main.c | |
72 | main.o:defs.h | |
73 | main.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/errno.h | |
74 | main.o: /usr/include/pwd.h /usr/include/grp.h /usr/include/sys/param.h | |
75 | main.o: /usr/include/sys/types.h /usr/include/signal.h | |
76 | main.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
77 | main.o: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h | |
78 | main.o: /usr/include/netinet/in.h | |
79 | server.o: server.c | |
80 | server.o:defs.h | |
81 | server.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/errno.h | |
82 | server.o: /usr/include/pwd.h /usr/include/grp.h /usr/include/sys/param.h | |
83 | server.o: /usr/include/sys/types.h /usr/include/signal.h | |
84 | server.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
85 | server.o: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h | |
86 | server.o: /usr/include/netinet/in.h | |
be739acc | 87 | |
51a16129 | 88 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |