Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # Hypervisor Software File: depend.mk | |
4 | # | |
5 | # Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
6 | # | |
7 | # - Do no alter or remove copyright notices | |
8 | # | |
9 | # - Redistribution and use of this software in source and binary forms, with | |
10 | # or without modification, are permitted provided that the following | |
11 | # conditions are met: | |
12 | # | |
13 | # - Redistribution of source code must retain the above copyright notice, | |
14 | # this list of conditions and the following disclaimer. | |
15 | # | |
16 | # - Redistribution in binary form must reproduce the above copyright notice, | |
17 | # this list of conditions and the following disclaimer in the | |
18 | # documentation and/or other materials provided with the distribution. | |
19 | # | |
20 | # Neither the name of Sun Microsystems, Inc. or the names of contributors | |
21 | # may be used to endorse or promote products derived from this software | |
22 | # without specific prior written permission. | |
23 | # | |
24 | # This software is provided "AS IS," without a warranty of any kind. | |
25 | # ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, | |
26 | # INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A | |
27 | # PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN | |
28 | # MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR | |
29 | # ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR | |
30 | # DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN | |
31 | # OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR | |
32 | # FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE | |
33 | # DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, | |
34 | # ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF | |
35 | # SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
36 | # | |
37 | # You acknowledge that this software is not designed, licensed or | |
38 | # intended for use in the design, construction, operation or maintenance of | |
39 | # any nuclear facility. | |
40 | # | |
41 | # ========== Copyright Header End ============================================ | |
42 | # id: @(#)depend.mk 1.4 03/07/17 | |
43 | # purpose: @(#)depend.mk | |
44 | # copyright 1985-1990 Bradley Forthware | |
45 | # copyright: Copyright 1990-2003 Sun Microsystems, Inc. All Rights Reserved | |
46 | # copyright: Use is subject to license terms. | |
47 | ||
48 | FORTH-SOURCES = \ | |
49 | ${BP}/os/sun/sparc/loadutil.fth \ | |
50 | ${BP}/fm/lib/copyrigh.fth \ | |
51 | ${BP}/fm/lib/transien.fth \ | |
52 | ${BP}/fm/lib/headless.fth \ | |
53 | ${BP}/fm/lib/brackif.fth \ | |
54 | ${BP}/fm/kernel/sparc/loadsyms.fth \ | |
55 | ${BP}/fm/lib/stubs.fth \ | |
56 | ${BP}/fm/lib/filetool.fth \ | |
57 | ${BP}/fm/lib/dispose.fth \ | |
58 | ${BP}/fm/lib/showspac.fth \ | |
59 | ${BP}/fm/lib/chains.fth \ | |
60 | ${BP}/os/stand/romable.fth \ | |
61 | ${BP}/fm/lib/hidden.fth \ | |
62 | ${BP}/fm/lib/th.fth \ | |
63 | ${BP}/fm/lib/patch.fth \ | |
64 | ${BP}/fm/kernel/hashcach.fth \ | |
65 | ${BP}/fm/lib/strings.fth \ | |
66 | ${BP}/fm/lib/suspend.fth \ | |
67 | ${BP}/fm/lib/util.fth \ | |
68 | ${BP}/fm/lib/format.fth \ | |
69 | ${BP}/fm/lib/cirstack.fth \ | |
70 | ${BP}/fm/lib/pseudors.fth \ | |
71 | ${BP}/fm/lib/headtool.fth \ | |
72 | ${BP}/fm/lib/needs.fth \ | |
73 | ${BP}/fm/lib/stringar.fth \ | |
74 | ${BP}/fm/lib/split.fth \ | |
75 | ${BP}/fm/lib/dump.fth \ | |
76 | ${BP}/fm/lib/words.fth \ | |
77 | ${BP}/fm/lib/decomp.fth \ | |
78 | ${BP}/fm/lib/seechain.fth \ | |
79 | ${BP}/fm/lib/loadedit.fth \ | |
80 | ${BP}/fm/lib/fileed.fth \ | |
81 | ${BP}/fm/lib/editcmd.fth \ | |
82 | ${BP}/fm/lib/unixedit.fth \ | |
83 | ${BP}/fm/lib/cmdcpl.fth \ | |
84 | ${BP}/fm/lib/fcmdcpl.fth \ | |
85 | ${BP}/fm/lib/caller.fth \ | |
86 | ${BP}/fm/lib/callfind.fth \ | |
87 | ${BP}/fm/lib/substrin.fth \ | |
88 | ${BP}/fm/lib/sift.fth \ | |
89 | ${BP}/fm/lib/array.fth \ | |
90 | ${BP}/fm/lib/linklist.fth \ | |
91 | ${BP}/fm/lib/initsave.fth \ | |
92 | ${BP}/cpu/sparc/assem.fth \ | |
93 | ${BP}/cpu/sparc/code.fth \ | |
94 | ${BP}/cpu/sparc/asmmacro.fth \ | |
95 | ${BP}/fm/lib/loclabel.fth \ | |
96 | ${BP}/cpu/sparc/disforw.fth \ | |
97 | ${BP}/cpu/sparc/ultra/impldis.fth \ | |
98 | ${BP}/fm/lib/instdis.fth \ | |
99 | ${BP}/fm/lib/sparc/decompm.fth \ | |
100 | ${BP}/os/stand/sparc/notmeta.fth \ | |
101 | ${BP}/fm/lib/sparc/bitops.fth \ | |
102 | ${BP}/fm/cwrapper/binhdr.fth \ | |
103 | ${BP}/fm/cwrapper/sparc/savefort.fth \ | |
104 | ${BP}/cpu/sparc/doccall.fth \ | |
105 | ${BP}/fm/lib/sparc/debugm.fth \ | |
106 | ${BP}/fm/lib/debug.fth \ | |
107 | ${BP}/fm/lib/sparc/objsup.fth \ | |
108 | ${BP}/fm/lib/objects.fth \ | |
109 | ${BP}/cpu/sparc/cpustate.fth \ | |
110 | ${BP}/fm/lib/savedstk.fth \ | |
111 | ${BP}/fm/lib/rstrace.fth \ | |
112 | ${BP}/fm/lib/sparc/ftrace.fth \ | |
113 | ${BP}/fm/lib/sparc/cpubpsup.fth \ | |
114 | ${BP}/fm/lib/breakpt.fth \ | |
115 | ${BP}/cpu/sparc/call.fth \ | |
116 | ${BP}/os/sun/sparc/signal.fth \ | |
117 | ${BP}/os/sun/sparc/catchexc.fth \ | |
118 | ${BP}/os/unix/sparc/arcbpsup.fth \ | |
119 | ${BP}/fm/lib/version.fth | |
120 | ||
121 | FORTH32-SOURCES = \ | |
122 | ${FORTH-SOURCES} \ | |
123 | ${BP}/cpu/sparc/traps.fth \ | |
124 | ${BP}/cpu/sparc/register.fth \ | |
125 | ${BP}/fm/lib/sparc/ctrace.fth | |
126 | ||
127 | FORTH64-SOURCES = \ | |
128 | ${FORTH-SOURCES} \ | |
129 | ${BP}/cpu/sparc/traps9.fth \ | |
130 | ${BP}/cpu/sparc/register9.fth \ | |
131 | ${BP}/fm/lib/sparc/ctrace9.fth | |
132 | ||
133 | # Start with the 32 bit forths | |
134 | ${BOOTSTRAPFORTH}.dic: ${BOOTSTRAPKERNEL}.dic ${BOOTSTRAPKERNEL}.fth | |
135 | ${BOOTSTRAPFORTH}.dic: ${BP}/os/sun/sparc/loadutil.fth | |
136 | ${BOOTSTRAPFORTH}.dic: ${FORTH} ${FORTH32-SOURCES} | |
137 | @${NOTIFY} Creating $@ | |
138 | ( BP=${BP}; export BP; \ | |
139 | ${FORTH} ${VERBOSE} \ | |
140 | -d ${BOOTSTRAPKERNEL}.dic -u ${FFLAGS} \ | |
141 | -D XREF -D dic-file-name=$@ \ | |
142 | -D kernel-hdr-file=${BOOTSTRAPKERNEL}.fth \ | |
143 | -s "${FTHFLAGS}" \ | |
144 | ${BP}/os/sun/sparc/loadutil.fth \ | |
145 | ) | |
146 | ||
147 | ${BOOTSTRAPFORTH}-xref.dic: ${BOOTSTRAPKERNEL}-xref.dic | |
148 | ${BOOTSTRAPFORTH}-xref.dic: ${BOOTSTRAPKERNEL}-xref.fth | |
149 | ${BOOTSTRAPFORTH}-xref.dic: ${BP}/os/sun/sparc/loadutil.fth | |
150 | ${BOOTSTRAPFORTH}-xref.dic: ${FORTH} ${FORTH-SOURCES} | |
151 | @${NOTIFY} Creating $@ | |
152 | ( BP=${BP}; export BP; \ | |
153 | ${FORTH} ${VERBOSE} \ | |
154 | -d ${BOOTSTRAPKERNEL}-xref.dic -u ${FFLAGS} \ | |
155 | -D dic-file-name=$@ -D XREF -x $@.xref \ | |
156 | -D kernel-hdr-file=${BOOTSTRAPKERNEL}-xref.fth \ | |
157 | -s "${FTHFLAGS}" \ | |
158 | ${BP}/os/sun/sparc/loadutil.fth \ | |
159 | ) | |
160 | ||
161 | # now the rest | |
162 | ${F32T32}.dic: ${K32T32}-xref.dic ${K32T32}-xref.fth | |
163 | ${F32T32}.dic: ${BP}/os/sun/sparc/loadutil.fth | |
164 | ${F32T32}.dic: ${FORTH} ${FORTH-SOURCES} | |
165 | @${NOTIFY} Creating $@ | |
166 | ( BP=${BP}; export BP; \ | |
167 | ${FORTH} ${VERBOSE} \ | |
168 | -d ${K32T32}-xref.dic -u ${FFLAGS} \ | |
169 | -D XREF -D dic-file-name=$@ \ | |
170 | -D kernel-hdr-file=${K32T32}-xref.fth \ | |
171 | -s "${FTHFLAGS}" \ | |
172 | ${BP}/os/sun/sparc/loadutil.fth \ | |
173 | ) | |
174 | ||
175 | ${F32T16S2}.dic: ${K32T16S2}-xref.dic ${K32T16S2}-xref.fth | |
176 | ${F32T16S2}.dic: ${BP}/os/sun/sparc/loadutil.fth | |
177 | ${F32T16S2}.dic: ${FORTH} ${FORTH-SOURCES} | |
178 | @${NOTIFY} Creating $@ | |
179 | ( BP=${BP}; export BP; \ | |
180 | ${FORTH} ${VERBOSE} \ | |
181 | -d ${K32T16S2}-xref.dic -u ${FFLAGS} \ | |
182 | -D XREF -D dic-file-name=$@ \ | |
183 | -D kernel-hdr-file=${K32T16S2}-xref.fth \ | |
184 | -s "${FTHFLAGS}" \ | |
185 | ${BP}/os/sun/sparc/loadutil.fth \ | |
186 | ) | |
187 | ||
188 | ||
189 | ${F32T16S4}.dic: ${K32T16S4}-xref.dic ${K32T16S4}-xref.fth | |
190 | ${F32T16S4}.dic: ${BP}/os/sun/sparc/loadutil.fth | |
191 | ${F32T16S4}.dic: ${FORTH} ${FORTH-SOURCES} | |
192 | @${NOTIFY} Creating $@ | |
193 | ( BP=${BP}; export BP; \ | |
194 | ${FORTH} ${VERBOSE} \ | |
195 | -d ${K32T16S4}-xref.dic -u ${FFLAGS} \ | |
196 | -D XREF -D dic-file-name=$@ \ | |
197 | -D kernel-hdr-file=${K32T16S4}-xref.fth \ | |
198 | -s "${FTHFLAGS}" \ | |
199 | ${BP}/os/sun/sparc/loadutil.fth \ | |
200 | ) | |
201 | ||
202 | # Now the 64bit ones | |
203 | # These all have a dependancy upon the same 32bit kernel | |
204 | ||
205 | ${F64T32}.dic: ${K64T32}-xref.dic ${K64T32}-xref.fth | |
206 | ${F64T32}.dic: ${BP}/os/sun/sparc/loadutil.fth | |
207 | ${F64T32}.dic: ${FORTH64} ${FORTH-SOURCES} | |
208 | @${NOTIFY} Creating $@ | |
209 | ( BP=${BP}; export BP; \ | |
210 | ${FORTH64} ${VERBOSE} \ | |
211 | -d ${K64T32}-xref.dic -u ${FFLAGS} \ | |
212 | -D XREF -D dic-file-name=$@ \ | |
213 | -D kernel-hdr-file=${K64T32}-xref.fth \ | |
214 | -s "${FTHFLAGS}" \ | |
215 | ${BP}/os/sun/sparc/loadutil.fth \ | |
216 | ) | |
217 | ||
218 | ${F64T16S2}.dic: ${K64T16S2}-xref.dic ${K64T16S2}-xref.fth | |
219 | ${F64T16S2}.dic: ${BP}/os/sun/sparc/loadutil.fth | |
220 | ${F64T16S2}.dic: ${FORTH64} ${FORTH-SOURCES} | |
221 | @${NOTIFY} Creating $@ | |
222 | ( BP=${BP}; export BP; \ | |
223 | ${FORTH64} ${VERBOSE} \ | |
224 | -d ${K64T16S2}-xref.dic -u ${FFLAGS} \ | |
225 | -D XREF -D dic-file-name=$@ \ | |
226 | -D kernel-hdr-file=${K64T16S2}-xref.fth \ | |
227 | -s "${FTHFLAGS}" \ | |
228 | ${BP}/os/sun/sparc/loadutil.fth \ | |
229 | ) | |
230 | ||
231 | ||
232 | ${F64T16S4}.dic: ${K64T16S4}-xref.dic ${K64T16S4}-xref.fth | |
233 | ${F64T16S4}.dic: ${BP}/os/sun/sparc/loadutil.fth | |
234 | ${F64T16S4}.dic: ${FORTH64} ${FORTH-SOURCES} | |
235 | @${NOTIFY} Creating $@ | |
236 | ( BP=${BP}; export BP; \ | |
237 | ${FORTH64} ${VERBOSE} \ | |
238 | -d ${K64T16S4}-xref.dic -u ${FFLAGS} \ | |
239 | -D XREF -D dic-file-name=$@ \ | |
240 | -D kernel-hdr-file=${K64T16S4}-xref.fth \ | |
241 | -s "${FTHFLAGS}" \ | |
242 | ${BP}/os/sun/sparc/loadutil.fth \ | |
243 | ) | |
244 | ||
245 | clean:: | |
246 | ${RM} ${BOOTSTRAPFORTH}.dic | |
247 | ${RM} ${F32T32}.dic | |
248 | ${RM} ${F32T16S2}.dic | |
249 | ${RM} ${F32T16S4}.dic | |
250 | ${RM} ${F64T32}.dic | |
251 | ${RM} ${F64T16S2}.dic | |
252 | ${RM} ${F64T16S4}.dic |