Makefile revision 80e2ca8596e3435bc3b76f3c597833ea0a87f85e
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This makefile drives the production of the kernel component of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# the Solaris 10 brand
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define the module and object file sets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common rules.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define targets
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Update compiler variables.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinAS_INC_PATH += -I$(UTSBASE)/i86pc/genassym/$(OBJS_DIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Ugh, this is a gross hack. s10_brand_asm.s uses lots of defines
d9184858dd5d7677050a813d444c281c56f697aaTinderbox User# to simplify variable access. All these defines work fine for amd64
d9184858dd5d7677050a813d444c281c56f697aaTinderbox User# compiles because when compiling for amd64 we use the GNU assembler,
d9184858dd5d7677050a813d444c281c56f697aaTinderbox User# gas. For 32-bit code we use the Sun assembler, as. Unfortunatly
d9184858dd5d7677050a813d444c281c56f697aaTinderbox User# as does not handle certian constructs that gas does. So rather than
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# make our code less readable, we'll just use gas to compile our 32-bit
d9184858dd5d7677050a813d444c281c56f697aaTinderbox User# code as well.
5d564da348e890e42f63eebf2dced9a05b41f4fbTinderbox User# Default build targets.
81199ce5ba7bd719add38189b06987e0a6e583a1Tinderbox User# Include common targets.