7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # uts/i86xpv/Makefile.i86xpv.shared
24 #
25 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 # Use is subject to license terms.
27 #
28
29 #
30 # This makefile contains the common definitions for the i86xpv unix
31 # and all i86xpv implementation architecture dependent modules.
32 #
33
34 #
35 # Machine type (implementation architecture):
36 #
37 PLATFORM = i86xpv
38
39 #
40 # uname -m value
41 #
42 UNAME_M = i86pc
43
44 #
45 # Everybody needs to know how to build modstubs.o and to locate unix.o
46 #
160 #
161
162 include $(UTSBASE)/i86pc/Makefile.workarounds
163
164 #
165 # Debugging level
166 #
167 # Special knowledge of which special debugging options effect which
168 # file is used to optimize the build if these flags are changed.
169 #
170 # XXX: The above could possibly be done for more flags and files, but
171 # is left as an experiment to the interested reader. Be forewarned,
172 # that excessive use could lead to maintenance difficulties.
173 #
174 DEBUG_DEFS_OBJ32 =
175 DEBUG_DEFS_DBG32 = -DDEBUG
176 DEBUG_DEFS_OBJ64 =
177 DEBUG_DEFS_DBG64 = -DDEBUG
178 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
179
180 DEBUG_COND_OBJ32 :sh = echo \\043
181 DEBUG_COND_DBG32 =
182 DEBUG_COND_OBJ64 :sh = echo \\043
183 DEBUG_COND_DBG64 =
184 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
185
186 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
187 $(IF_DEBUG_OBJ)syscall_asm.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
188 $(IF_DEBUG_OBJ)syscall_asm_amd64.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
189 $(IF_DEBUG_OBJ)fast_trap_asm.o := DEBUG_DEFS += -DTRAPTRACE
190 $(IF_DEBUG_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
191 $(IF_DEBUG_OBJ)intr.o := DEBUG_DEFS += -DTRAPTRACE
192 $(IF_DEBUG_OBJ)locore.o := DEBUG_DEFS += -DTRAPTRACE
193 $(IF_DEBUG_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
194 $(IF_DEBUG_OBJ)machdep.o := DEBUG_DEFS += -DTRAPTRACE
195 $(IF_DEBUG_OBJ)exception.o := DEBUG_DEFS += -DTRAPTRACE
196 $(IF_DEBUG_OBJ)x_call.o := DEBUG_DEFS += -DTRAPTRACE
197 $(IF_DEBUG_OBJ)mp_call.o := DEBUG_DEFS += -DTRAPTRACE
198 $(IF_DEBUG_OBJ)cbe.o := DEBUG_DEFS += -DTRAPTRACE
199 $(IF_DEBUG_OBJ)hyperevent.o := DEBUG_DEFS += -DTRAPTRACE
200 $(IF_DEBUG_OBJ)evtchn.o := DEBUG_DEFS += -DTRAPTRACE
201
202 #
|
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # uts/i86xpv/Makefile.i86xpv.shared
24 #
25 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 # Use is subject to license terms.
27 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
28 #
29
30 #
31 # This makefile contains the common definitions for the i86xpv unix
32 # and all i86xpv implementation architecture dependent modules.
33 #
34
35 #
36 # Machine type (implementation architecture):
37 #
38 PLATFORM = i86xpv
39
40 #
41 # uname -m value
42 #
43 UNAME_M = i86pc
44
45 #
46 # Everybody needs to know how to build modstubs.o and to locate unix.o
47 #
161 #
162
163 include $(UTSBASE)/i86pc/Makefile.workarounds
164
165 #
166 # Debugging level
167 #
168 # Special knowledge of which special debugging options effect which
169 # file is used to optimize the build if these flags are changed.
170 #
171 # XXX: The above could possibly be done for more flags and files, but
172 # is left as an experiment to the interested reader. Be forewarned,
173 # that excessive use could lead to maintenance difficulties.
174 #
175 DEBUG_DEFS_OBJ32 =
176 DEBUG_DEFS_DBG32 = -DDEBUG
177 DEBUG_DEFS_OBJ64 =
178 DEBUG_DEFS_DBG64 = -DDEBUG
179 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
180
181 DEBUG_COND_OBJ32 = $(POUND_SIGN)
182 DEBUG_COND_DBG32 =
183 DEBUG_COND_OBJ64 = $(POUND_SIGN)
184 DEBUG_COND_DBG64 =
185 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
186
187 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
188 $(IF_DEBUG_OBJ)syscall_asm.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
189 $(IF_DEBUG_OBJ)syscall_asm_amd64.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
190 $(IF_DEBUG_OBJ)fast_trap_asm.o := DEBUG_DEFS += -DTRAPTRACE
191 $(IF_DEBUG_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
192 $(IF_DEBUG_OBJ)intr.o := DEBUG_DEFS += -DTRAPTRACE
193 $(IF_DEBUG_OBJ)locore.o := DEBUG_DEFS += -DTRAPTRACE
194 $(IF_DEBUG_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
195 $(IF_DEBUG_OBJ)machdep.o := DEBUG_DEFS += -DTRAPTRACE
196 $(IF_DEBUG_OBJ)exception.o := DEBUG_DEFS += -DTRAPTRACE
197 $(IF_DEBUG_OBJ)x_call.o := DEBUG_DEFS += -DTRAPTRACE
198 $(IF_DEBUG_OBJ)mp_call.o := DEBUG_DEFS += -DTRAPTRACE
199 $(IF_DEBUG_OBJ)cbe.o := DEBUG_DEFS += -DTRAPTRACE
200 $(IF_DEBUG_OBJ)hyperevent.o := DEBUG_DEFS += -DTRAPTRACE
201 $(IF_DEBUG_OBJ)evtchn.o := DEBUG_DEFS += -DTRAPTRACE
202
203 #
|