Commit | Line | Data |
---|---|---|
f4cc9d92 | 1 | # @(#)Makefile 4.2 %G% |
393ec768 | 2 | # |
f4cc9d92 SL |
3 | ALL= htboot tmboot tsboot hpboot hkboot upboot mtboot utboot noboot \ |
4 | httoggle tmtoggle tstoggle mttoggle uttoggle | |
393ec768 SL |
5 | |
6 | all: ${ALL} | |
7 | ||
8 | htboot: htboot.s | |
9 | as htboot.s | |
10 | nm -u a.out | |
11 | strip a.out | |
12 | dd if=a.out of=b.out bs=32 skip=1 | |
13 | dd if=b.out of=htboot conv=sync | |
14 | ||
15 | tmboot: tmboot.s | |
16 | as tmboot.s | |
17 | nm -u a.out | |
18 | strip a.out | |
19 | dd if=a.out of=b.out bs=32 skip=1 | |
20 | dd if=b.out of=tmboot conv=sync | |
21 | ||
22 | tsboot: tsboot.s | |
23 | as tsboot.s | |
24 | nm -u a.out | |
25 | strip a.out | |
26 | dd if=a.out of=b.out bs=32 skip=1 | |
27 | dd if=b.out of=tsboot conv=sync | |
28 | ||
29 | hpboot: hpboot.s | |
30 | as hpboot.s | |
31 | nm -u a.out | |
32 | strip a.out | |
33 | dd if=a.out bs=32 skip=1 of=b.out | |
34 | dd if=b.out of=hpboot conv=sync | |
35 | ||
36 | hkboot: hkboot.s | |
37 | as hkboot.s | |
38 | nm -u a.out | |
39 | strip a.out | |
40 | dd if=a.out bs=32 skip=1 of=b.out | |
41 | dd if=b.out of=hkboot conv=sync | |
42 | ||
43 | upboot: upboot.s | |
44 | as upboot.s | |
45 | nm -u a.out | |
46 | strip a.out | |
47 | dd if=a.out bs=32 skip=1 of=b.out | |
48 | dd if=b.out of=upboot conv=sync | |
49 | ||
50 | mtboot: mtboot.s | |
51 | as mtboot.s | |
52 | nm -u a.out | |
53 | strip a.out | |
54 | dd if=a.out bs=32 skip=1 of=b.out | |
55 | dd if=b.out of=mtboot conv=sync | |
56 | ||
f4cc9d92 SL |
57 | utboot: utboot.s |
58 | as utboot.s | |
59 | nm -u a.out | |
60 | strip a.out | |
61 | dd if=a.out bs=32 skip=1 of=b.out | |
62 | dd if=b.out of=utboot conv=sync | |
63 | ||
393ec768 SL |
64 | httoggle: httoggle.s |
65 | as httoggle.s | |
66 | nm -u a.out | |
67 | strip a.out | |
68 | dd if=a.out bs=32 skip=1 of=httoggle | |
69 | ||
70 | tstoggle: tstoggle.s | |
71 | as tstoggle.s | |
72 | nm -u a.out | |
73 | strip a.out | |
74 | dd if=a.out bs=32 skip=1 of=tstoggle | |
75 | ||
76 | tmtoggle: tmtoggle.s | |
77 | as tmtoggle.s | |
78 | nm -u a.out | |
79 | strip a.out | |
80 | dd if=a.out bs=32 skip=1 of=tmtoggle | |
81 | ||
82 | mttoggle: mttoggle.s | |
83 | as mttoggle.s | |
84 | nm -u a.out | |
85 | strip a.out | |
86 | dd if=a.out bs=32 skip=1 of=mttoggle | |
87 | ||
f4cc9d92 SL |
88 | uttoggle: uttoggle.s |
89 | as uttoggle.s | |
90 | nm -u a.out | |
91 | strip a.out | |
92 | dd if=a.out bs=32 skip=1 of=uttoggle | |
93 | ||
393ec768 SL |
94 | noboot: |
95 | echo | dd of=noboot conv=sync | |
96 | ||
97 | clean: | |
98 | rm -f a.out b.out ${ALL} | |
99 | ||
100 | install: | |
101 | cp *boot /usr/mdec | |
102 | rm -f /usr/mdec/mboot | |
103 | ln /usr/mdec/htboot /usr/mdec/mboot | |
104 | rm -f /usr/mdec/uboot | |
105 | ln /usr/mdec/hpboot /usr/mdec/uboot |