6 # You may not use this file except in compliance with the License.
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/i86pc/Makefile.i86pc
24 #
25 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
26 #
27 #
28 # This makefile contains the common definitions for the i86pc unix
29 # and all i86pc implementation architecture dependent modules.
30 #
31
32 #
33 # Machine type (implementation architecture):
34 #
35 PLATFORM = i86pc
36
37 #
38 # uname -m value
39 #
40 UNAME_M = $(PLATFORM)
41
42 #
43 # Definitions for the platform-specific /platform directories.
44 #
45 # IMPLEMENTATIONS is used to designate i86pc machines which have
168 #
169
170 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
171
172 #
173 # Debugging level
174 #
175 # Special knowledge of which special debugging options effect which
176 # file is used to optimize the build if these flags are changed.
177 #
178 # XXX: The above could possibly be done for more flags and files, but
179 # is left as an experiment to the interested reader. Be forewarned,
180 # that excessive use could lead to maintenance difficulties.
181 #
182 DEBUG_DEFS_OBJ32 =
183 DEBUG_DEFS_DBG32 = -DDEBUG
184 DEBUG_DEFS_OBJ64 =
185 DEBUG_DEFS_DBG64 = -DDEBUG
186 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
187
188 DEBUG_COND_OBJ32 :sh = echo \\043
189 DEBUG_COND_DBG32 =
190 DEBUG_COND_OBJ64 :sh = echo \\043
191 DEBUG_COND_DBG64 =
192 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
193
194 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
195 $(IF_DEBUG_OBJ)syscall_asm.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
196 $(IF_DEBUG_OBJ)syscall_asm_amd64.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
197 $(IF_DEBUG_OBJ)fast_trap_asm.o := DEBUG_DEFS += -DTRAPTRACE
198 $(IF_DEBUG_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
199 $(IF_DEBUG_OBJ)intr.o := DEBUG_DEFS += -DTRAPTRACE
200 $(IF_DEBUG_OBJ)locore.o := DEBUG_DEFS += -DTRAPTRACE
201 $(IF_DEBUG_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
202 $(IF_DEBUG_OBJ)machdep.o := DEBUG_DEFS += -DTRAPTRACE
203 $(IF_DEBUG_OBJ)exception.o := DEBUG_DEFS += -DTRAPTRACE
204 $(IF_DEBUG_OBJ)x_call.o := DEBUG_DEFS += -DTRAPTRACE
205 $(IF_DEBUG_OBJ)mp_call.o := DEBUG_DEFS += -DTRAPTRACE
206 $(IF_DEBUG_OBJ)cbe.o := DEBUG_DEFS += -DTRAPTRACE
207
208 #
209 # Collect the preprocessor definitions to be associated with *all*
210 # files.
|
6 # You may not use this file except in compliance with the License.
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/i86pc/Makefile.i86pc
24 #
25 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
26 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
27 #
28 #
29 # This makefile contains the common definitions for the i86pc unix
30 # and all i86pc implementation architecture dependent modules.
31 #
32
33 #
34 # Machine type (implementation architecture):
35 #
36 PLATFORM = i86pc
37
38 #
39 # uname -m value
40 #
41 UNAME_M = $(PLATFORM)
42
43 #
44 # Definitions for the platform-specific /platform directories.
45 #
46 # IMPLEMENTATIONS is used to designate i86pc machines which have
169 #
170
171 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
172
173 #
174 # Debugging level
175 #
176 # Special knowledge of which special debugging options effect which
177 # file is used to optimize the build if these flags are changed.
178 #
179 # XXX: The above could possibly be done for more flags and files, but
180 # is left as an experiment to the interested reader. Be forewarned,
181 # that excessive use could lead to maintenance difficulties.
182 #
183 DEBUG_DEFS_OBJ32 =
184 DEBUG_DEFS_DBG32 = -DDEBUG
185 DEBUG_DEFS_OBJ64 =
186 DEBUG_DEFS_DBG64 = -DDEBUG
187 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
188
189 DEBUG_COND_OBJ32 = $(POUND_SIGN)
190 DEBUG_COND_DBG32 =
191 DEBUG_COND_OBJ64 = $(POUND_SIGN)
192 DEBUG_COND_DBG64 =
193 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
194
195 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
196 $(IF_DEBUG_OBJ)syscall_asm.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
197 $(IF_DEBUG_OBJ)syscall_asm_amd64.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
198 $(IF_DEBUG_OBJ)fast_trap_asm.o := DEBUG_DEFS += -DTRAPTRACE
199 $(IF_DEBUG_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
200 $(IF_DEBUG_OBJ)intr.o := DEBUG_DEFS += -DTRAPTRACE
201 $(IF_DEBUG_OBJ)locore.o := DEBUG_DEFS += -DTRAPTRACE
202 $(IF_DEBUG_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
203 $(IF_DEBUG_OBJ)machdep.o := DEBUG_DEFS += -DTRAPTRACE
204 $(IF_DEBUG_OBJ)exception.o := DEBUG_DEFS += -DTRAPTRACE
205 $(IF_DEBUG_OBJ)x_call.o := DEBUG_DEFS += -DTRAPTRACE
206 $(IF_DEBUG_OBJ)mp_call.o := DEBUG_DEFS += -DTRAPTRACE
207 $(IF_DEBUG_OBJ)cbe.o := DEBUG_DEFS += -DTRAPTRACE
208
209 #
210 # Collect the preprocessor definitions to be associated with *all*
211 # files.
|