2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6460N/A# Copyright (c) 2010, Oracle
and/or it's affiliates. All rights reserved.
32N/ACONSOLIDATION = userland
32N/APUBLISHER = $(CONSOLIDATION)-build
313N/AOS_VERSION = $(shell uname -r)
313N/ASOLARIS_VERSION = $(OS_VERSION:5.%=2.%)
313N/ABUILD_VERSION = $(OS_VERSION)-$(BUILD_NUM)
313N/AWS_LOGS = $(WS_TOP)/logs
313N/APKG_REPO = file://$(WS_TOP)/repo
2238N/APROTO_DIR = $(shell pwd)/$(COMPONENT_SRC)/installed-prototype-$(MACH)
2238N/A# work around _TIME, _DATE, embedded date chatter in component builds
127N/A# to use, set TIME_CONSTANT in the component Makefile and add $(CONSTANT_TIME)
127N/A# to the appropriate {CONFIGURE|BUILD|INSTALL}_ENV
1622N/ACONSTANT_TIME = LD_PRELOAD_32=$(TOOLS)/time-$(MACH32).so
1622N/ACONSTANT_TIME += LD_PRELOAD_64=$(TOOLS)/time-$(MACH64).so
1622N/ACONSTANT_TIME += TIME_CONSTANT=$(TIME_CONSTANT)
3996N/A# set MACH from uname -p to either sparc or i386
538N/A# set MACH32 from MACH to either sparcv7 or i86
538N/AMACH32_1 = $(MACH:sparc=sparcv7)
538N/AMACH32 = $(MACH32_1:i386=i86)
538N/A# set MACH64 from MACH to either sparcv9 or amd64
3996N/AMACH64_1 = $(MACH:sparc=sparcv9)
538N/AMACH64 = $(MACH64_1:i386=amd64)
327N/ABUILD_32 = $(COMPONENT_SRC)/build-$(MACH32)/.built
327N/ABUILD_64 = $(COMPONENT_SRC)/build-$(MACH64)/.built
327N/ABUILD_32_and_64 = $(BUILD_32) $(BUILD_64)
327N/AINSTALL_32 = $(COMPONENT_SRC)/build-$(MACH32)/.installed
327N/AINSTALL_64 = $(COMPONENT_SRC)/build-$(MACH64)/.installed
327N/AINSTALL_32_and_64 = $(INSTALL_32) $(INSTALL_64)
2N/ACC = $(CC.$(COMPILER).$(BITS))
3987N/ACCC = $(CCC.$(COMPILER).$(BITS))
1622N/APYTHON.32 = $(PYTHON.$(PYTHON_VERSION).$(BITS))
26N/APYTHON.64 = $(PYTHON.$(PYTHON_VERSION).$(BITS))