|
|
1.1 root 1: #
2: # Makefile for pseudo shell and associated commands
3: #
4:
5: .SUFFIXES:.o .c
6: DIR = /usr/Xinu
7: CC = /bin/cc
8: CPP = /lib/cpp
9: CFLAGS = -O -c -I../../h
10: LD = /bin/ld
11: AR = /bin/ar
12: .c.o:
13: $(CC) $(CFLAGS) $<
14:
15: CFILES= addarg.c login.c lexan.c \
16: shell.c \
17: x_bpool.c x_cat.c x_close.c x_cp.c \
18: x_creat.c x_date.c x_devs.c x_dg.c \
19: x_echo.c x_exit.c x_help.c x_kill.c \
20: x_mem.c x_mount.c x_mv.c x_net.c \
21: x_ps.c x_reboot.c x_rf.c x_rm.c x_rls.c \
22: x_routes.c x_sleep.c x_snap.c x_unmou.c \
23: x_uptime.c x_who.c
24:
25: HFILES= shell.h cmd.h
26:
27: all: sh.o install
28:
29: sh.o: addarg.o login.o lexan.o \
30: shell.o \
31: x_bpool.o x_cat.o x_close.o x_cp.o \
32: x_create.o x_date.o x_devs.o x_dg.o \
33: x_echo.o x_exit.o x_help.o x_kill.o \
34: x_mem.o x_mount.o x_mv.o x_net.o \
35: x_ps.o x_reboot.o x_rf.o x_rm.o x_rls.o \
36: x_routes.o x_sleep.o x_snap.o \
37: x_unmou.o x_uptime.o x_who.o
38: $(LD) -r -o sh.o \
39: addarg.o login.o lexan.o \
40: shell.o \
41: x_bpool.o x_cat.o x_close.o x_cp.o \
42: x_create.o x_date.o x_devs.o x_dg.o \
43: x_echo.o x_exit.o x_help.o x_kill.o \
44: x_mem.o x_mount.o x_mv.o x_net.o \
45: x_ps.o x_reboot.o x_rf.o x_rm.o x_rls.o \
46: x_routes.o x_sleep.o x_snap.o x_unmou.o \
47: x_uptime.o x_who.o
48:
49: install: sh.o
50: cp sh.o ..
51:
52: clean:
53: -rm -rf *.o ,* .,* core make.out
54:
55: everything: all
56:
57: lint: ,lint
58:
59: ,lint: $(CFILES)
60: lint -n -I../../h $(CFILES) | Flint > ,lint
61:
62: print:
63: cprint -c Cover *.h *.c
64:
65: listings: sizes
66: cprint -c Cover *.h *.c ,xref ,sizes ,ssizes Makefile
67:
68: sizes: ,sizes ,ssizes
69:
70: ,sizes: $(OFILES)
71: size11 *.o > ,sizes
72:
73: ,ssizes: $(CFILES) $(HFILES)
74: Dosizes
75:
76: xref: ,xref
77:
78: ,xref: ,tags
79: Doxref
80:
81: depend:
82: grep '^#include' *.c ../../h/*.h \
83: | sed -e 's/</"..\/..\/h\//;s/>/"/' \
84: -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
85: | sed 's/\.c/.o/' >makedep
86: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
87: echo '$$r makedep' >>eddep
88: echo 'w' >>eddep
89: cp Makefile .,oldmake
90: cp Makefile ,Makefile
91: ed - ,Makefile < eddep
92: /bin/rm eddep makedep
93: echo '# DEPENDENCIES MUST END AT END OF FILE' >>,Makefile
94: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY'>>,Makefile
95: echo '# see make depend above'>>,Makefile
96: /bin/mv ,Makefile Makefile
97:
98: # DO NOT DELETE THIS LINE
99: # DEPENDENCIES MUST END AT END OF FILE
100: addarg.o: ../../h/conf.h
101: addarg.o: ../../h/kernel.h
102: addarg.o: ../../h/proc.h
103: addarg.o: ../../h/shell.h
104: lexan.o: ../../h/conf.h
105: lexan.o: ../../h/kernel.h
106: lexan.o: ../../h/shell.h
107: login.o: ../../h/conf.h
108: login.o: ../../h/kernel.h
109: login.o: ../../h/shell.h
110: login.o: ../../h/tty.h
111: shell.o: ../../h/conf.h
112: shell.o: ../../h/kernel.h
113: shell.o: ../../h/proc.h
114: shell.o: ../../h/shell.h
115: shell.o: ../../h/cmd.h
116: shell.o: ../../h/tty.h
117: x_bpool.o: ../../h/conf.h
118: x_bpool.o: ../../h/kernel.h
119: x_bpool.o: ../../h/mark.h
120: x_bpool.o: ../../h/bufpool.h
121: x_cat.o: ../../h/conf.h
122: x_cat.o: ../../h/kernel.h
123: x_cat.o: ../../h/shell.h
124: x_close.o: ../../h/conf.h
125: x_close.o: ../../h/kernel.h
126: x_cp.o: ../../h/conf.h
127: x_cp.o: ../../h/kernel.h
128: x_cp.o: ../../h/shell.h
129: x_create.o: ../../h/conf.h
130: x_create.o: ../../h/kernel.h
131: x_create.o: ../../h/mem.h
132: x_create.o: ../../h/shell.h
133: x_create.o: /usr/include/a.out.h
134: x_date.o: ../../h/conf.h
135: x_date.o: ../../h/kernel.h
136: x_date.o: ../../h/sleep.h
137: x_date.o: ../../h/date.h
138: x_devs.o: ../../h/conf.h
139: x_devs.o: ../../h/kernel.h
140: x_dg.o: ../../h/conf.h
141: x_dg.o: ../../h/kernel.h
142: x_dg.o: ../../h/network.h
143: x_echo.o: ../../h/conf.h
144: x_echo.o: ../../h/kernel.h
145: x_exit.o: ../../h/conf.h
146: x_exit.o: ../../h/kernel.h
147: x_exit.o: ../../h/shell.h
148: x_help.o: ../../h/conf.h
149: x_help.o: ../../h/kernel.h
150: x_help.o: ../../h/shell.h
151: x_help.o: ../../h/cmd.h
152: x_kill.o: ../../h/conf.h
153: x_kill.o: ../../h/kernel.h
154: x_kill.o: ../../h/shell.h
155: x_mem.o: ../../h/conf.h
156: x_mem.o: ../../h/kernel.h
157: x_mem.o: ../../h/proc.h
158: x_mem.o: ../../h/mem.h
159: x_mount.o: ../../h/conf.h
160: x_mount.o: ../../h/kernel.h
161: x_mount.o: ../../h/io.h
162: x_mount.o: ../../h/name.h
163: x_mv.o: ../../h/conf.h
164: x_mv.o: ../../h/kernel.h
165: x_mv.o: ../../h/file.h
166: x_net.o: ../../h/conf.h
167: x_net.o: ../../h/kernel.h
168: x_net.o: ../../h/network.h
169: x_ps.o: ../../h/conf.h
170: x_ps.o: ../../h/kernel.h
171: x_ps.o: ../../h/proc.h
172: x_reboot.o: ../../h/conf.h
173: x_reboot.o: ../../h/kernel.h
174: x_rf.o: ../../h/conf.h
175: x_rf.o: ../../h/kernel.h
176: x_rf.o: ../../h/fserver.h
177: x_rf.o: ../../h/rfile.h
178: x_rls.o: ../../h/conf.h
179: x_rls.o: ../../h/kernel.h
180: x_rls.o: ../../h/shell.h
181: x_rm.o: ../../h/conf.h
182: x_rm.o: ../../h/kernel.h
183: x_rm.o: ../../h/file.h
184: x_routes.o: ../../h/conf.h
185: x_routes.o: ../../h/kernel.h
186: x_routes.o: ../../h/proc.h
187: x_routes.o: ../../h/network.h
188: x_sleep.o: ../../h/conf.h
189: x_sleep.o: ../../h/kernel.h
190: x_snap.o: ../../h/conf.h
191: x_snap.o: ../../h/kernel.h
192: x_snap.o: ../../h/shell.h
193: x_snap.o: ../../h/coreX.h
194: x_unmou.o: ../../h/conf.h
195: x_unmou.o: ../../h/kernel.h
196: x_unmou.o: ../../h/io.h
197: x_unmou.o: ../../h/name.h
198: x_uptime.o: ../../h/conf.h
199: x_uptime.o: ../../h/kernel.h
200: x_uptime.o: ../../h/network.h
201: x_uptime.o: ../../h/rwho.h
202: x_who.o: ../../h/conf.h
203: x_who.o: ../../h/kernel.h
204: x_who.o: ../../h/date.h
205: x_who.o: ../../h/shell.h
206: ../../h/disk.h: ../../h/xebec.h
207: ../../h/disk.h: ../../h/dtc.h
208: ../../h/io.h: ../../h/iodisp.h
209: ../../h/lfile.h: ../../h/iblock.h
210: ../../h/lfile.h: ../../h/file.h
211: ../../h/network.h: ../../h/deqna.h
212: ../../h/network.h: ../../h/ether.h
213: ../../h/network.h: ../../h/ip.h
214: ../../h/network.h: ../../h/icmp.h
215: ../../h/network.h: ../../h/udp.h
216: ../../h/network.h: ../../h/net.h
217: ../../h/network.h: ../../h/dgram.h
218: ../../h/network.h: ../../h/arp.h
219: ../../h/network.h: ../../h/fserver.h
220: ../../h/network.h: ../../h/rfile.h
221: ../../h/network.h: ../../h/domain.h
222: ../../h/procreg.h: ../../h/conf.h
223: ../../h/rfile.h: ../../h/file.h
224: ../../h/shell.h: ../../h/mark.h
225: # DEPENDENCIES MUST END AT END OF FILE
226: # IF YOU PUT STUFF HERE IT WILL GO AWAY
227: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.