|
|
1.1 root 1: #
2: # Copyright (c) 1980, 1986 Regents of the University of California.
3: # All rights reserved. The Berkeley software License Agreement
4: # specifies the terms and conditions for redistribution.
5: #
6: # @(#)Makefile 7.1 (Berkeley) 6/5/86
7: #
8: DESTDIR=/
9: INCPATH=-I. -I../h
10: CFLAGS= -O ${INCPATH} -DSTANDALONE ${COPTS}
11: COPTS= -DVAX780 -DVAX750 -DVAX730 -DVAX8600
12: 730OPTS=-O ${INCPATH} -DSTANDALONE -DVAX730
13: RELOC= 70000
14:
15: SRCS= sys.c conf.c prf.c machdep.c \
16: autoconf.c hp.c hpmaptype.c ht.c idc.c mba.c mt.c rk.c \
17: rl.c tm.c ts.c up.c upmaptype.c uba.c uda.c ut.c \
18: drtest.c format.c up.old.c hp.old.c ../vax/dkbad.c
19: DUMMIES= bootxx.c confxx.c
20: DRIVERS=autoconf.o hp.o hpmaptype.o ht.o idc.o mba.o mt.o \
21: rk.o rl.o tm.o ts.o \
22: up.o upmaptype.o uba.o uda.o ut.o
23: # These drivers don't have ecc correction and bad sector forwarding;
24: # they are placed in the file system boot area for 750's. If your
25: # root has bad sectors you can try and squeeze the newer drivers in...
26: ODRIVERS=hp.old.o up.old.o
27: LIBSA= libsa.a
28:
29: ALL= boot tpboot copy tpcopy \
30: format tpformat drtest boothp boothk bootup bootra bootrl \
31: 730boot 730copy 730format 730drtest
32:
33: all: ${ALL}
34:
35: ${LIBSA}: sys.o conf.o ${DRIVERS} prf.o machdep.o dkbad.o
36: ar crv ${LIBSA} $?
37: ranlib ${LIBSA}
38:
39: ${ODRIVERS} ${DRIVERS}: savax.h
40: cc -c -S ${COPTS} $*.c
41: /lib/c2 -i $*.s | as -o $*.o
42: rm -f $*.s
43:
44: dkbad.o: ../vax/dkbad.c
45: ${CC} -c ${CFLAGS} ../vax/dkbad.c
46:
47: # startups
48:
49: srt0.o: srt0.c ../vax/mtpr.h ../vax/cpu.h
50: cc -E -DRELOC=0x${RELOC} ${COPTS} srt0.c | as -o srt0.o
51:
52: tpsrt0.o: srt0.c ../vax/mtpr.h ../vax/cpu.h
53: cc -E -DRELOC=0x${RELOC} -DTP ${COPTS} srt0.c | as -o tpsrt0.o
54:
55: relsrt0.o: srt0.c ../vax/mtpr.h ../vax/cpu.h
56: cc -E -DRELOC=0x${RELOC} -DREL ${COPTS} srt0.c | as -o relsrt0.o
57:
58: # bootable from tape
59:
60: tpboot: tpboot.o relsrt0.o ${LIBSA}
61: ld -N -T ${RELOC} relsrt0.o tpboot.o ${LIBSA} -lc
62: strip a.out; dd if=a.out of=tpboot ibs=32 skip=1; rm -f a.out
63:
64: tpboot.o: boot.c ../h/param.h ../h/inode.h ../h/fs.h
65: tpboot.o: saio.h ../h/reboot.h ../h/vm.h
66: cp boot.c tpboot.c; chmod +w tpboot.c
67: cc -c -O -DJUSTASK tpboot.c
68: rm -f tpboot.c
69:
70: tpcopy: copy.o tpsrt0.o ${LIBSA}
71: ld -N tpsrt0.o copy.o ${LIBSA} -lc
72: strip a.out; dd if=a.out of=tpcopy ibs=32 skip=1; rm -f a.out
73:
74: tpformat: format.o tpsrt0.o confhpup.o ${LIBSA}
75: cp format.c tpformat.c; chmod +w tpformat.c
76: cc -c -O -DJUSTEXIT tpformat.c
77: rm -f tpformat.c
78: ld -N tpsrt0.o tpformat.o confhpup.o ${LIBSA} -lc
79: strip a.out; dd if=a.out of=tpformat ibs=32 skip=1; rm -f a.out
80:
81: # bootable from floppy or real disks
82:
83: boot: boot.o relsrt0.o bootconf.o ${LIBSA}
84: ld -N -T ${RELOC} -o boot relsrt0.o boot.o bootconf.o ${LIBSA} -lc
85:
86: bootconf.o: conf.o
87: cp conf.c bootconf.c
88: cc -c ${COPTS} -DBOOT bootconf.c
89: rm -f bootconf.c
90:
91: copy: copy.o srt0.o conf.o ${LIBSA}
92: ld -N -o copy srt0.o copy.o conf.o ${LIBSA} -lc
93:
94: format: format.o srt0.o confhpup.o ${LIBSA}
95: ld -N -o format srt0.o format.o confhpup.o ${LIBSA} -lc
96:
97: drtest: drtest.o srt0.o confhpup.o ${LIBSA}
98: ld -N -o drtest srt0.o drtest.o confhpup.o ${LIBSA} -lc
99:
100: # for 730s minimize size to avoid microcode botch
101: # (won't load files larger than 12.5 Kbytes)
102:
103: 730boot.o: boot.o
104: cp boot.c 730boot.c; chmod +w 730boot.c
105: cc -c ${730OPTS} 730boot.c
106: rm -f 730boot.c
107:
108: 730boot: 730boot.o relsrt0.o 730bootconf.o ${LIBSA}
109: ld -N -T ${RELOC} -o 730boot relsrt0.o 730boot.o 730bootconf.o ${LIBSA} -lc
110:
111: 730bootconf.o: conf.o
112: cp conf.c 730bootconf.c
113: cc -c ${730OPTS} -DBOOT 730bootconf.c
114: rm -f 730bootconf.c
115:
116: 730copy: copy.o srt0.o 730conf.o ${LIBSA}
117: ld -N -o 730copy srt0.o copy.o 730conf.o ${LIBSA} -lc
118:
119: 730drtest: drtest.o srt0.o confup.o ${LIBSA}
120: ld -N -o 730drtest srt0.o drtest.o confup.o ${LIBSA} -lc
121:
122: 730format: format.o srt0.o confup.o ${LIBSA}
123: ld -N -o 730format srt0.o format.o confup.o ${LIBSA} -lc
124:
125: 730conf.o: conf.o
126: cp conf.c 730conf.c
127: cc -c ${730OPTS} 730conf.c
128: rm -f 730conf.c
129:
130: # bootstrap from ether
131:
132: ### not yet, rosin, not yet ###
133:
134: # getting booted from disc
135:
136: boothk: relsrt0.o boothk.o confrk.o smsys.o ${LIBSA}
137: ld -N -T ${RELOC} relsrt0.o boothk.o confrk.o smsys.o ${LIBSA} -lc
138: strip a.out;dd if=a.out of=boothk ibs=32 skip=1;rm -f a.out
139:
140: boothp: relsrt0.o boothp.o confhp.o hp.old.o smsys.o ${LIBSA}
141: ld -N -T ${RELOC} relsrt0.o boothp.o confhp.o hp.old.o smsys.o ${LIBSA} -lc
142: strip a.out;dd if=a.out of=boothp ibs=32 skip=1;rm -f a.out
143:
144: bootup: relsrt0.o bootup.o confup.o up.old.o smsys.o ${LIBSA}
145: ld -N -T ${RELOC} relsrt0.o bootup.o confup.o up.old.o smsys.o ${LIBSA} -lc
146: strip a.out;dd if=a.out of=bootup ibs=32 skip=1;rm -f a.out
147:
148: bootra: relsrt0.o bootra.o confra.o smsys.o ${LIBSA}
149: ld -N -T ${RELOC} relsrt0.o bootra.o confra.o smsys.o ${LIBSA} -lc
150: strip a.out;dd if=a.out of=bootra ibs=32 skip=1;rm -f a.out
151:
152: bootrl: relsrt0.o bootrl.o confrl.o smsys.o ${LIBSA}
153: ld -N -T ${RELOC} relsrt0.o bootrl.o confrl.o smsys.o ${LIBSA} -lc
154: strip a.out;dd if=a.out of=bootrl ibs=32 skip=1;rm -f a.out
155:
156: boothp.o: boothp.c bootxx.o
157: boothk.o: boothk.c bootxx.o
158: bootup.o: bootup.c bootxx.o
159: bootra.o: bootra.c bootxx.o
160: bootrl.o: bootrl.c bootxx.o
161:
162: bootxx.o:
163: touch bootxx.o
164:
165: smsys.o: sys.o
166: -rm -f smsys.c
167: -ln -s sys.c smsys.c
168: cc -c -DSMALL ${CFLAGS} smsys.c
169: -rm -f smsys.c
170:
171: boothk.c: bootxx.c
172: -rm -f boothk.c
173: sed -e 's/xx/hk/g' <bootxx.c >boothk.c
174: boothp.c: bootxx.c
175: -rm -f boothp.c
176: sed -e 's/xx/hp/g' <bootxx.c >boothp.c
177: bootup.c: bootxx.c
178: -rm -f bootup.c
179: sed -e 's/xx/up/g' <bootxx.c >bootup.c
180: bootra.c: bootxx.c
181: -rm -f bootra.c
182: sed -e 's/xx/ra/g' <bootxx.c >bootra.c
183: bootrl.c: bootxx.c
184: -rm -f bootrl.c
185: sed -e 's/xx/rl/g' <bootxx.c >bootrl.c
186:
187: confrk.o: confrk.c confxx.o
188: confhp.o: confhp.c confxx.o
189: confup.o: confup.c confxx.o
190: confra.o: confra.c confxx.o
191: confrl.o: confrl.c confxx.o
192:
193: confxx.o:
194: touch confxx.o
195:
196: confrk.c: confxx.c
197: -rm -f confrk.c
198: sed -e 's/XX/hk/' -e 's/xx/rk/g' <confxx.c >confrk.c
199: confhp.c: confxx.c
200: -rm -f confhp.c
201: sed -e 's/XX/hp/' -e 's/xx/hp/g' <confxx.c >confhp.c
202: confup.c: confxx.c
203: -rm -f confup.c
204: sed -e 's/XX/up/' -e 's/xx/up/g' <confxx.c >confup.c
205: confra.c: confxx.c
206: -rm -f confra.c
207: sed -e 's/XX/ra/' -e 's/xx/ra/g' <confxx.c >confra.c
208: confrl.c: confxx.c
209: -rm -f confrl.c
210: sed -e 's/XX/rl/' -e 's/xx/rl/g' <confxx.c >confrl.c
211:
212: # utilities
213:
214: print:
215: @pr makefile
216: @ls -l | pr
217: @pr *.h *.c
218:
219: clean:
220: rm -f *.o *.exe *.i errs
221: rm -f a.out boot cat tpboot tpcopy copy tpformat
222: rm -f boot[a-z]? boot[a-wyz][a-z].c conf[a-wyz][a-z].c
223: rm -f format drtest core sboot bootconf.c
224: rm -f 730boot 730copy 730drtest 730format
225:
226: lint:
227: lint ${COPTS} -hxbn boot.c ${SRCS} | \
228: grep -v 'possible pointer alignment' | \
229: grep -v 'struct/union .* never defined'
230:
231: install: ${ALL}
232: cp boot ${DESTDIR}/boot
233: cp format ${DESTDIR}/format
234: cp copy ${DESTDIR}/copy
235: cp drtest ${DESTDIR}/drtest
236: strip ${DESTDIR}/format ${DESTDIR}/copy ${DESTDIR}/drtest
237: cp pcs750.bin ${DESTDIR}/pcs750.bin
238: cp tpcopy ../dist/tp/copy
239: cp tpboot ../dist/tp/boot
240: cp tpformat ../dist/tp/format
241: cp boot a.out; strip a.out; \
242: dd if=a.out of=../floppy/boot bs=32 skip=1; rm a.out
243: cp 730boot a.out; strip a.out; \
244: dd if=a.out of=../cassette/boot.730 bs=32 skip=1; rm a.out
245: cp ../floppy/boot ../cassette/boot.750
246: cp ../floppy/boot ../consolerl/boot
247: cp copy a.out; strip a.out; \
248: dd if=a.out of=../floppy/copy bs=32 skip=1; rm a.out
249: cp 730copy a.out; strip a.out; \
250: dd if=a.out of=../cassette/copy.730 bs=32 skip=1; rm a.out
251: cp ../floppy/copy ../cassette/copy.750
252: cp ../floppy/copy ../consolerl/copy
253: cp format a.out; strip a.out; \
254: dd if=a.out of=../floppy/format bs=32 skip=1; rm a.out
255: cp 730format a.out; strip a.out; \
256: dd if=a.out of=../cassette/format.730 bs=32 skip=1; rm a.out
257: cp ../floppy/format ../cassette/format.750
258: cp ../floppy/format ../consolerl/format
259: cp drtest a.out; strip a.out; \
260: dd if=a.out of=../floppy/drtest bs=32 skip=1; rm a.out
261: cp 730drtest a.out; strip a.out; \
262: dd if=a.out of=../cassette/drtest.730 bs=32 skip=1; rm a.out
263: cp ../floppy/drtest ../cassette/drtest.750
264: cp ../floppy/drtest ../consolerl/drtest
265: cp bootup boothk boothp bootra bootrl ${DESTDIR}/usr/mdec
266:
267: depend:
268: for i in ${SRCS} ${DUMMIES}; do \
269: cc -M ${INCPATH} $$i | \
270: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
271: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
272: else rec = rec " " $$2 } } \
273: END { print rec } ' >> makedep; done
274: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
275: echo '$$r makedep' >>eddep
276: echo 'w' >>eddep
277: cp Makefile Makefile.bak
278: ed - Makefile < eddep
279: rm eddep makedep
280: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
281: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
282: echo '# see make depend above' >> Makefile
283:
284: # DO NOT DELETE THIS LINE -- make depend uses it
285:
286:
287: sys.o: sys.c ./../h/param.h /usr/include/machine/machparam.h ../h/signal.h
288: sys.o: /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h ./../h/dir.h
289: sys.o: ./saio.h
290:
291: conf.o: conf.c ./../machine/pte.h ./../h/param.h
292: conf.o: /usr/include/machine/machparam.h ../h/signal.h /usr/include/sys/types.h
293: conf.o: ./../h/inode.h ./../h/fs.h ./../vaxmba/mbareg.h ./saio.h
294:
295: prf.o: prf.c ./../h/param.h /usr/include/machine/machparam.h ../h/signal.h
296: prf.o: /usr/include/sys/types.h ./../vax/mtpr.h ./../vax/cons.h
297:
298: machdep.o: machdep.c ./../h/param.h /usr/include/machine/machparam.h
299: machdep.o: ../h/signal.h /usr/include/sys/types.h ./../vax/mtpr.h
300:
301: autoconf.o: autoconf.c ./../machine/pte.h ./../h/param.h
302: autoconf.o: /usr/include/machine/machparam.h ../h/signal.h
303: autoconf.o: /usr/include/sys/types.h ./../vax/cpu.h ./../vax/nexus.h
304: autoconf.o: ./../vaxuba/ubareg.h ./../vaxmba/mbareg.h ./../vax/mtpr.h ./savax.h
305:
306: hp.o: hp.c ./../h/param.h /usr/include/machine/machparam.h ../h/signal.h
307: hp.o: /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h ./../h/dkbad.h
308: hp.o: ./../vax/pte.h ./../vaxmba/hpreg.h ./../vaxmba/mbareg.h ./saio.h
309: hp.o: ./savax.h
310:
311: hpmaptype.o: hpmaptype.c ./../machine/pte.h ./../h/param.h
312: hpmaptype.o: /usr/include/machine/machparam.h ../h/signal.h
313: hpmaptype.o: /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
314: hpmaptype.o: ./../vaxmba/hpreg.h ./../vaxmba/mbareg.h ./saio.h ./savax.h
315:
316: ht.o: ht.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
317: ht.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
318: ht.o: ./../vaxmba/htreg.h ./../vaxmba/mbareg.h ./saio.h ./savax.h
319:
320: idc.o: idc.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
321: idc.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
322: idc.o: ./../vaxuba/idcreg.h ./../vaxuba/ubareg.h ./saio.h ./savax.h
323:
324: mba.o: mba.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
325: mba.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
326: mba.o: ./../h/vm.h /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h
327: mba.o: /usr/include/sys/vmmac.h /usr/include/sys/vmmeter.h
328: mba.o: /usr/include/sys/vmsystm.h ./../vax/mtpr.h ./../vaxmba/mbareg.h
329: mba.o: ./../vaxmba/hpreg.h ./saio.h ./savax.h
330:
331: mt.o: mt.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
332: mt.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
333: mt.o: ./../vaxmba/mtreg.h ./../vaxmba/mbareg.h ./saio.h ./savax.h
334:
335: rk.o: rk.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
336: rk.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
337: rk.o: ./../vaxuba/ubareg.h ./../vaxuba/rkreg.h ./saio.h ./savax.h
338:
339: rl.o: rl.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
340: rl.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
341: rl.o: ./../vaxuba/rlreg.h ./../vaxuba/ubareg.h ./saio.h ./savax.h
342:
343: tm.o: tm.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
344: tm.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
345: tm.o: ./../vaxuba/ubareg.h ./../vaxuba/tmreg.h ./saio.h ./savax.h
346:
347: ts.o: ts.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
348: ts.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
349: ts.o: ./../vaxuba/tsreg.h ./../vaxuba/ubareg.h ./saio.h ./savax.h
350:
351: up.o: up.c ./../h/param.h /usr/include/machine/machparam.h ../h/signal.h
352: up.o: /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h ./../h/dkbad.h
353: up.o: ./../h/vmmac.h ./../vax/pte.h ./../vaxuba/upreg.h ./../vaxuba/ubareg.h
354: up.o: ./saio.h ./savax.h
355:
356: upmaptype.o: upmaptype.c ./../h/param.h /usr/include/machine/machparam.h
357: upmaptype.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
358: upmaptype.o: ./../h/dkbad.h ./../h/vmmac.h ./../vax/pte.h ./../vaxuba/upreg.h
359: upmaptype.o: ./../vaxuba/ubareg.h ./saio.h ./savax.h
360:
361: uba.o: uba.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
362: uba.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/vm.h
363: uba.o: /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h
364: uba.o: /usr/include/sys/vmmac.h /usr/include/sys/vmmeter.h
365: uba.o: /usr/include/sys/vmsystm.h ./../h/fs.h ./../vax/cpu.h
366: uba.o: ./../vaxuba/ubareg.h ./saio.h ./savax.h
367:
368: uda.o: uda.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
369: uda.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
370: uda.o: ./saio.h ./savax.h ./../vaxuba/udareg.h ./../vaxuba/ubareg.h
371: uda.o: ./../vax/mscp.h
372:
373: ut.o: ut.c ./../machine/pte.h ./../h/param.h /usr/include/machine/machparam.h
374: ut.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
375: ut.o: ./../vaxuba/ubareg.h ./../vaxuba/utreg.h ./saio.h ./savax.h
376:
377: drtest.o: drtest.c ./../h/param.h /usr/include/machine/machparam.h
378: drtest.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
379: drtest.o: ./saio.h
380:
381: format.o: format.c ./../h/param.h /usr/include/machine/machparam.h
382: format.o: ../h/signal.h /usr/include/sys/types.h ./../h/fs.h ./../h/inode.h
383: format.o: ./../h/dkbad.h ./../h/vmmac.h ./saio.h ./savax.h
384:
385: up.old.o: up.old.c ./../machine/pte.h ./../h/param.h
386: up.old.o: /usr/include/machine/machparam.h ../h/signal.h
387: up.old.o: /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
388: up.old.o: ./../vaxuba/upreg.h ./../vaxuba/ubareg.h ./saio.h ./savax.h
389:
390: hp.old.o: hp.old.c ./../machine/pte.h ./../h/param.h
391: hp.old.o: /usr/include/machine/machparam.h ../h/signal.h
392: hp.old.o: /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
393: hp.old.o: ./../vaxmba/hpreg.h ./../vaxmba/mbareg.h ./saio.h ./savax.h
394:
395: dkbad.o: ../vax/dkbad.c ../h/param.h /usr/include/machine/machparam.h
396: dkbad.o: ../h/signal.h /usr/include/sys/types.h ../h/buf.h ../h/dkbad.h
397:
398: bootxx.o: bootxx.c ./../h/param.h /usr/include/machine/machparam.h
399: bootxx.o: ../h/signal.h /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h
400: bootxx.o: ./../h/vm.h /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h
401: bootxx.o: /usr/include/sys/vmmac.h /usr/include/sys/vmmeter.h
402: bootxx.o: /usr/include/sys/vmsystm.h /usr/include/a.out.h
403: bootxx.o: /usr/include/sys/exec.h ./saio.h ./../h/reboot.h
404:
405: confxx.o: confxx.c ./../machine/pte.h ./../h/param.h
406: confxx.o: /usr/include/machine/machparam.h ../h/signal.h
407: confxx.o: /usr/include/sys/types.h ./../h/inode.h ./../h/fs.h ./saio.h
408: # DEPENDENCIES MUST END AT END OF FILE
409: # IF YOU PUT STUFF HERE IT WILL GO AWAY
410: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.