Commit | Line | Data |
---|---|---|
833d578b | 1 | # Makefile 1.8 85/05/01 |
fb2fbc5e | 2 | DESTDIR= |
855ff304 | 3 | INCPATH= |
fb2fbc5e | 4 | CFLAGS= -O |
855ff304 | 5 | SRCS= cmds.c cmdtab.c disks.c fetch.c iostat.c \ |
833d578b | 6 | keyboard.c kre.c main.c mbufs.c netcmds.c netstat.c pigs.c swap.c |
855ff304 | 7 | OBJS= cmds.o cmdtab.o disks.o fetch.o iostat.o \ |
833d578b | 8 | keyboard.o kre.o main.o mbufs.o netcmds.o netstat.o pigs.o swap.o |
fb2fbc5e SL |
9 | LIBS= -lcurses -ltermlib -lm |
10 | ||
11 | systat: ${OBJS} | |
a3ac12c3 | 12 | ${CC} -o systat -O ${OBJS} ${LIBS} |
fb2fbc5e | 13 | |
fb2fbc5e | 14 | install: systat |
855ff304 | 15 | install -s systat ${DESTDIR}/usr/local/systat |
fb2fbc5e SL |
16 | |
17 | clean: | |
18 | rm -f ${OBJS} systat core a.out errs | |
855ff304 KM |
19 | |
20 | depend: | |
21 | cc -M ${INCPATH} ${SRCS} | \ | |
22 | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ | |
23 | else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ | |
24 | else rec = rec " " $$2 } } \ | |
25 | END { print rec } ' > makedep | |
26 | echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep | |
27 | echo '$$r makedep' >>eddep | |
28 | echo 'w' >>eddep | |
29 | cp Makefile Makefile.bak | |
30 | ed - Makefile < eddep | |
31 | rm eddep makedep | |
32 | echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile | |
33 | echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile | |
34 | echo '# see make depend above' >> Makefile | |
35 | ||
36 | # DO NOT DELETE THIS LINE -- make depend uses it | |
37 | ||
38 | ||
39 | cmds.o: cmds.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
40 | cmds.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
41 | cmds.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b | 42 | cmds.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
855ff304 KM |
43 | cmds.o: /usr/include/signal.h /usr/include/ctype.h |
44 | cmdtab.o: cmdtab.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
45 | cmdtab.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
46 | cmdtab.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b | 47 | cmdtab.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
855ff304 KM |
48 | disks.o: disks.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h |
49 | disks.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
50 | disks.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b KM |
51 | disks.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
52 | disks.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
855ff304 KM |
53 | disks.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/buf.h |
54 | disks.o: /usr/include/sys/file.h /usr/include/vaxuba/ubavar.h | |
55 | disks.o: /usr/include/vaxmba/mbavar.h /usr/include/ctype.h | |
56 | fetch.o: fetch.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
57 | fetch.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
58 | fetch.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b KM |
59 | fetch.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
60 | fetch.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
855ff304 KM |
61 | fetch.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/dir.h |
62 | fetch.o: /usr/include/sys/user.h /usr/include/machine/pcb.h | |
63 | fetch.o: /usr/include/sys/dmap.h /usr/include/sys/time.h | |
64 | fetch.o: /usr/include/sys/resource.h /usr/include/sys/namei.h | |
65 | fetch.o: /usr/include/sys/uio.h /usr/include/errno.h /usr/include/sys/proc.h | |
66 | fetch.o: /usr/include/sys/file.h /usr/include/sys/vmmac.h | |
67 | fetch.o: /usr/include/machine/pte.h /usr/include/pwd.h | |
68 | iostat.o: iostat.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
69 | iostat.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
70 | iostat.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b KM |
71 | iostat.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
72 | iostat.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
855ff304 KM |
73 | iostat.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/buf.h |
74 | iostat.o: /usr/include/sys/file.h /usr/include/nlist.h | |
75 | keyboard.o: keyboard.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
76 | keyboard.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
77 | keyboard.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b | 78 | keyboard.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
855ff304 KM |
79 | keyboard.o: /usr/include/signal.h /usr/include/ctype.h |
80 | main.o: main.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
81 | main.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
82 | main.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b | 83 | main.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
855ff304 KM |
84 | main.o: /usr/include/sys/file.h /usr/include/nlist.h /usr/include/signal.h |
85 | mbufs.o: mbufs.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
86 | mbufs.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
87 | mbufs.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b KM |
88 | mbufs.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
89 | mbufs.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
855ff304 KM |
90 | mbufs.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/mbuf.h |
91 | mbufs.o: /usr/include/sys/file.h /usr/include/nlist.h | |
92 | pigs.o: pigs.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
93 | pigs.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
94 | pigs.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b KM |
95 | pigs.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
96 | pigs.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
855ff304 KM |
97 | pigs.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/dir.h |
98 | pigs.o: /usr/include/sys/time.h /usr/include/sys/proc.h /usr/include/sys/file.h | |
99 | pigs.o: /usr/include/nlist.h /usr/include/pwd.h | |
100 | swap.o: swap.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
101 | swap.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
102 | swap.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b KM |
103 | swap.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
104 | swap.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
855ff304 KM |
105 | swap.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/dir.h |
106 | swap.o: /usr/include/sys/user.h /usr/include/machine/pcb.h | |
107 | swap.o: /usr/include/sys/dmap.h /usr/include/sys/time.h | |
108 | swap.o: /usr/include/sys/resource.h /usr/include/sys/namei.h | |
109 | swap.o: /usr/include/sys/uio.h /usr/include/errno.h /usr/include/sys/proc.h | |
110 | swap.o: /usr/include/sys/text.h /usr/include/sys/conf.h /usr/include/sys/file.h | |
111 | swap.o: /usr/include/sys/vmmac.h /usr/include/machine/pte.h | |
112 | swap.o: /usr/include/nlist.h | |
113 | vmstat.o: vmstat.c ./systat.h /usr/include/sys/dk.h /usr/include/curses.h | |
114 | vmstat.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
115 | vmstat.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
6686b94b KM |
116 | vmstat.o: /usr/include/sys/jioctl.h /usr/include/sys/ioctl.h |
117 | vmstat.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
855ff304 KM |
118 | vmstat.o: /usr/include/signal.h /usr/include/sys/types.h |
119 | vmstat.o: /usr/include/sys/vmmeter.h /usr/include/sys/file.h | |
120 | vmstat.o: /usr/include/nlist.h | |
121 | # DEPENDENCIES MUST END AT END OF FILE | |
122 | # IF YOU PUT STUFF HERE IT WILL GO AWAY | |
123 | # see make depend above |