Commit | Line | Data |
---|---|---|
b1078c35 KM |
1 | # |
2 | # Copyright (c) 1980 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 6.3 (Berkeley) %G% | |
393ec768 | 7 | # |
278e42ae | 8 | ALL= hkboot hpboot htboot mtboot noboot raboot rlboot \ |
f687b90b | 9 | upboot utboot tmboot tsboot tuboot \ |
278e42ae | 10 | httoggle mttoggle tmtoggle tstoggle uttoggle |
393ec768 SL |
11 | |
12 | all: ${ALL} | |
13 | ||
278e42ae SL |
14 | hkboot: hkboot.s |
15 | as hkboot.s | |
16 | nm -u a.out | |
17 | strip a.out | |
18 | dd if=a.out bs=32 skip=1 of=b.out | |
19 | dd if=b.out of=hkboot conv=sync | |
20 | ||
21 | hpboot: hpboot.s | |
22 | as hpboot.s | |
23 | nm -u a.out | |
24 | strip a.out | |
25 | dd if=a.out bs=32 skip=1 of=b.out | |
26 | dd if=b.out of=hpboot conv=sync | |
27 | ||
393ec768 SL |
28 | htboot: htboot.s |
29 | as htboot.s | |
30 | nm -u a.out | |
31 | strip a.out | |
32 | dd if=a.out of=b.out bs=32 skip=1 | |
33 | dd if=b.out of=htboot conv=sync | |
34 | ||
278e42ae SL |
35 | mtboot: mtboot.s |
36 | as mtboot.s | |
37 | nm -u a.out | |
38 | strip a.out | |
39 | dd if=a.out bs=32 skip=1 of=b.out | |
40 | dd if=b.out of=mtboot conv=sync | |
41 | ||
42 | raboot: raboot.s | |
43 | as raboot.s | |
44 | nm -u a.out | |
45 | strip a.out | |
46 | dd if=a.out bs=32 skip=1 of=b.out | |
47 | dd if=b.out of=raboot conv=sync | |
48 | ||
49 | rlboot: rlboot.s | |
50 | as rlboot.s | |
51 | nm -u a.out | |
52 | strip a.out | |
53 | dd if=a.out bs=32 skip=1 of=b.out | |
54 | dd if=b.out of=rlboot conv=sync | |
55 | ||
393ec768 SL |
56 | tmboot: tmboot.s |
57 | as tmboot.s | |
58 | nm -u a.out | |
59 | strip a.out | |
60 | dd if=a.out of=b.out bs=32 skip=1 | |
61 | dd if=b.out of=tmboot conv=sync | |
62 | ||
63 | tsboot: tsboot.s | |
64 | as tsboot.s | |
65 | nm -u a.out | |
66 | strip a.out | |
67 | dd if=a.out of=b.out bs=32 skip=1 | |
68 | dd if=b.out of=tsboot conv=sync | |
69 | ||
393ec768 SL |
70 | upboot: upboot.s |
71 | as upboot.s | |
72 | nm -u a.out | |
73 | strip a.out | |
74 | dd if=a.out bs=32 skip=1 of=b.out | |
75 | dd if=b.out of=upboot conv=sync | |
76 | ||
f687b90b SL |
77 | tuboot: tuboot.s |
78 | as tuboot.s | |
79 | nm -u a.out | |
80 | strip a.out | |
81 | dd if=a.out of=b.out bs=32 skip=1 | |
82 | dd if=b.out of=tuboot conv=sync | |
83 | ||
f4cc9d92 SL |
84 | utboot: utboot.s |
85 | as utboot.s | |
86 | nm -u a.out | |
87 | strip a.out | |
88 | dd if=a.out bs=32 skip=1 of=b.out | |
89 | dd if=b.out of=utboot conv=sync | |
90 | ||
393ec768 SL |
91 | httoggle: httoggle.s |
92 | as httoggle.s | |
93 | nm -u a.out | |
94 | strip a.out | |
95 | dd if=a.out bs=32 skip=1 of=httoggle | |
96 | ||
278e42ae SL |
97 | mttoggle: mttoggle.s |
98 | as mttoggle.s | |
393ec768 SL |
99 | nm -u a.out |
100 | strip a.out | |
278e42ae | 101 | dd if=a.out bs=32 skip=1 of=mttoggle |
393ec768 SL |
102 | |
103 | tmtoggle: tmtoggle.s | |
104 | as tmtoggle.s | |
105 | nm -u a.out | |
106 | strip a.out | |
107 | dd if=a.out bs=32 skip=1 of=tmtoggle | |
108 | ||
278e42ae SL |
109 | tstoggle: tstoggle.s |
110 | as tstoggle.s | |
393ec768 SL |
111 | nm -u a.out |
112 | strip a.out | |
278e42ae | 113 | dd if=a.out bs=32 skip=1 of=tstoggle |
393ec768 | 114 | |
f4cc9d92 SL |
115 | uttoggle: uttoggle.s |
116 | as uttoggle.s | |
117 | nm -u a.out | |
118 | strip a.out | |
119 | dd if=a.out bs=32 skip=1 of=uttoggle | |
120 | ||
393ec768 SL |
121 | noboot: |
122 | echo | dd of=noboot conv=sync | |
123 | ||
124 | clean: | |
125 | rm -f a.out b.out ${ALL} | |
126 | ||
127 | install: | |
b10f72d2 MK |
128 | cp *boot ${DESTDIR}/usr/mdec |
129 | rm -f ${DESTDIR}/usr/mdec/mboot | |
130 | ln ${DESTDIR}/usr/mdec/htboot ${DESTDIR}/usr/mdec/mboot | |
131 | rm -f ${DESTDIR}/usr/mdec/uboot | |
132 | ln ${DESTDIR}/usr/mdec/hpboot ${DESTDIR}/usr/mdec/uboot |