9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# CDDL HEADER START
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# The contents of this file are subject to the terms of the
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Common Development and Distribution License (the "License").
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# You may not use this file except in compliance with the License.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# See the License for the specific language governing permissions
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# and limitations under the License.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# When distributing Covered Code, include this CDDL HEADER in each
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# If applicable, add the following below this CDDL HEADER, with the
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# fields enclosed by brackets "[]" replaced with your own identifying
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# information: Portions Copyright [yyyy] [name of copyright owner]
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# CDDL HEADER END
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# This makefile drives the production of the kernel component of
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# the N-1 Solaris brand
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Path to the base of the uts directory tree (usually /usr/src/uts).
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Define the module and object file sets.
628e3cbed6489fa1db545d8524a06cd6535af456Edward PilatowiczOBJECTS = $(SN1_BRAND_OBJS:%=$(OBJS_DIR)/%)
628e3cbed6489fa1db545d8524a06cd6535af456Edward PilatowiczLINTS = $(SN1_BRAND_OBJS:%.o=$(LINTS_DIR)/%.ln)
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Include common rules.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Define targets
628e3cbed6489fa1db545d8524a06cd6535af456Edward Pilatowicz# Update compiler variables.
fd9e7635fa85e33de5aff912b955d797589f6f87edp# Ugh, this is a gross hack. Sn1_brand_asm.s uses lots of defines
fd9e7635fa85e33de5aff912b955d797589f6f87edp# to simplify variable access. All these defines work fine for amd64
fd9e7635fa85e33de5aff912b955d797589f6f87edp# compiles because when compiling for amd64 we use the GNU assembler,
fd9e7635fa85e33de5aff912b955d797589f6f87edp# gas. For 32-bit code we use the Sun assembler, as. Unfortunatly
fd9e7635fa85e33de5aff912b955d797589f6f87edp# as does not handle certian constructs that gas does. So rather than
fd9e7635fa85e33de5aff912b955d797589f6f87edp# make our code less readable, we'll just use gas to compile our 32-bit
fd9e7635fa85e33de5aff912b955d797589f6f87edp# code as well.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Default build targets.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Include common targets.