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