Commit | Line | Data |
---|---|---|
b1078c35 | 1 | # |
0880b18e | 2 | # Copyright (c) 1980, 1986 Regents of the University of California. |
b1078c35 KM |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
70385c9b | 6 | # @(#)Makefile 7.2 (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 | 11 | |
70385c9b MK |
12 | CFLAGS= -DLOCORE |
13 | INCLUDE= /usr/include | |
14 | ||
393ec768 SL |
15 | all: ${ALL} |
16 | ||
70385c9b MK |
17 | hkboot: hkboot.c ${INCLUDE}/sys/disklabel.h |
18 | cc -E ${CFLAGS} hkboot.c | as | |
278e42ae SL |
19 | nm -u a.out |
20 | strip a.out | |
21 | dd if=a.out bs=32 skip=1 of=b.out | |
22 | dd if=b.out of=hkboot conv=sync | |
70385c9b | 23 | rm b.out |
278e42ae | 24 | |
70385c9b MK |
25 | hpboot: hpboot.c ${INCLUDE}/sys/disklabel.h |
26 | cc -E ${CFLAGS} hpboot.c | as | |
278e42ae SL |
27 | nm -u a.out |
28 | strip a.out | |
29 | dd if=a.out bs=32 skip=1 of=b.out | |
30 | dd if=b.out of=hpboot conv=sync | |
70385c9b | 31 | rm b.out |
278e42ae | 32 | |
70385c9b MK |
33 | htboot: htboot.c |
34 | cc -E ${CFLAGS} htboot.c | as | |
393ec768 SL |
35 | nm -u a.out |
36 | strip a.out | |
37 | dd if=a.out of=b.out bs=32 skip=1 | |
38 | dd if=b.out of=htboot conv=sync | |
70385c9b | 39 | rm b.out |
393ec768 | 40 | |
70385c9b MK |
41 | mtboot: mtboot.c |
42 | cc -E ${CFLAGS} mtboot.c | as | |
278e42ae SL |
43 | nm -u a.out |
44 | strip a.out | |
45 | dd if=a.out bs=32 skip=1 of=b.out | |
46 | dd if=b.out of=mtboot conv=sync | |
70385c9b | 47 | rm b.out |
278e42ae | 48 | |
70385c9b MK |
49 | raboot: raboot.c ${INCLUDE}/sys/disklabel.h |
50 | cc -E ${CFLAGS} raboot.c | as | |
278e42ae SL |
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=raboot conv=sync | |
70385c9b | 55 | rm b.out |
278e42ae | 56 | |
70385c9b MK |
57 | rlboot: rlboot.c ${INCLUDE}/sys/disklabel.h |
58 | cc -E ${CFLAGS} rlboot.c | as | |
278e42ae SL |
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=rlboot conv=sync | |
70385c9b | 63 | rm b.out |
278e42ae | 64 | |
70385c9b MK |
65 | tmboot: tmboot.c |
66 | cc -E ${CFLAGS} tmboot.c | as | |
393ec768 SL |
67 | nm -u a.out |
68 | strip a.out | |
69 | dd if=a.out of=b.out bs=32 skip=1 | |
70 | dd if=b.out of=tmboot conv=sync | |
70385c9b | 71 | rm b.out |
393ec768 | 72 | |
70385c9b MK |
73 | tsboot: tsboot.c |
74 | cc -E ${CFLAGS} tsboot.c | as | |
393ec768 SL |
75 | nm -u a.out |
76 | strip a.out | |
77 | dd if=a.out of=b.out bs=32 skip=1 | |
78 | dd if=b.out of=tsboot conv=sync | |
70385c9b | 79 | rm b.out |
393ec768 | 80 | |
70385c9b MK |
81 | upboot: upboot.c ${INCLUDE}/sys/disklabel.h |
82 | cc -E ${CFLAGS} upboot.c | as | |
393ec768 SL |
83 | nm -u a.out |
84 | strip a.out | |
85 | dd if=a.out bs=32 skip=1 of=b.out | |
86 | dd if=b.out of=upboot conv=sync | |
70385c9b | 87 | rm b.out |
393ec768 | 88 | |
70385c9b MK |
89 | tuboot: tuboot.c |
90 | cc -E ${CFLAGS} tuboot.c | as | |
f687b90b SL |
91 | nm -u a.out |
92 | strip a.out | |
93 | dd if=a.out of=b.out bs=32 skip=1 | |
94 | dd if=b.out of=tuboot conv=sync | |
70385c9b | 95 | rm b.out |
f687b90b | 96 | |
70385c9b MK |
97 | utboot: utboot.c |
98 | cc -E ${CFLAGS} utboot.c | as | |
f4cc9d92 SL |
99 | nm -u a.out |
100 | strip a.out | |
101 | dd if=a.out bs=32 skip=1 of=b.out | |
102 | dd if=b.out of=utboot conv=sync | |
70385c9b | 103 | rm b.out |
f4cc9d92 | 104 | |
393ec768 SL |
105 | httoggle: httoggle.s |
106 | as httoggle.s | |
107 | nm -u a.out | |
108 | strip a.out | |
109 | dd if=a.out bs=32 skip=1 of=httoggle | |
110 | ||
278e42ae SL |
111 | mttoggle: mttoggle.s |
112 | as mttoggle.s | |
393ec768 SL |
113 | nm -u a.out |
114 | strip a.out | |
278e42ae | 115 | dd if=a.out bs=32 skip=1 of=mttoggle |
393ec768 SL |
116 | |
117 | tmtoggle: tmtoggle.s | |
118 | as tmtoggle.s | |
119 | nm -u a.out | |
120 | strip a.out | |
121 | dd if=a.out bs=32 skip=1 of=tmtoggle | |
122 | ||
278e42ae SL |
123 | tstoggle: tstoggle.s |
124 | as tstoggle.s | |
393ec768 SL |
125 | nm -u a.out |
126 | strip a.out | |
278e42ae | 127 | dd if=a.out bs=32 skip=1 of=tstoggle |
393ec768 | 128 | |
f4cc9d92 SL |
129 | uttoggle: uttoggle.s |
130 | as uttoggle.s | |
131 | nm -u a.out | |
132 | strip a.out | |
133 | dd if=a.out bs=32 skip=1 of=uttoggle | |
134 | ||
393ec768 SL |
135 | noboot: |
136 | echo | dd of=noboot conv=sync | |
137 | ||
138 | clean: | |
139 | rm -f a.out b.out ${ALL} | |
140 | ||
141 | install: | |
b10f72d2 MK |
142 | cp *boot ${DESTDIR}/usr/mdec |
143 | rm -f ${DESTDIR}/usr/mdec/mboot | |
144 | ln ${DESTDIR}/usr/mdec/htboot ${DESTDIR}/usr/mdec/mboot | |
145 | rm -f ${DESTDIR}/usr/mdec/uboot | |
146 | ln ${DESTDIR}/usr/mdec/hpboot ${DESTDIR}/usr/mdec/uboot |