shared-macros.mk revision 26
2N/A#
2N/A# CDDL HEADER START
2N/A#
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#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
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]
2N/A#
2N/A# CDDL HEADER END
2N/A#
6460N/A# Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved.
2N/A#
2N/A
32N/ACONSOLIDATION = userland
32N/APUBLISHER = $(CONSOLIDATION)-build
313N/A
313N/AOS_VERSION = $(shell uname -r)
313N/ASOLARIS_VERSION = $(OS_VERSION:5.%=2.%)
313N/ABUILD_NUM = 0.140
313N/ABUILD_VERSION = $(OS_VERSION)-$(BUILD_NUM)
313N/A
313N/ACOMPILER = studio
313N/ABITS = 32
313N/APYTHON_VERSION = 2.6
2238N/A
6033N/ATOOLS = $(WS_TOP)/tools
313N/AWS_LOGS = $(WS_TOP)/logs
313N/AMAKE_RULES = $(WS_TOP)/components/make-rules
313N/A
313N/APKG_REPO = file://$(WS_TOP)/repo
2238N/APROTO_DIR = $(shell pwd)/$(COMPONENT_SRC)/installed-prototype-$(MACH)
313N/A
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)
127N/A
3996N/A# set MACH from uname -p to either sparc or i386
3996N/AMACH = $(shell uname -p)
3996N/A
538N/A# set MACH32 from MACH to either sparcv7 or i86
538N/AMACH32_1 = $(MACH:sparc=sparcv7)
538N/AMACH32 = $(MACH32_1:i386=i86)
4561N/A
538N/A# set MACH64 from MACH to either sparcv9 or amd64
3996N/AMACH64_1 = $(MACH:sparc=sparcv9)
538N/AMACH64 = $(MACH64_1:i386=amd64)
327N/A
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/A
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)
327N/A
327N/ASPRO_ROOT = /opt/sunstudio12.1
327N/AGCC_ROOT = /usr/gnu
327N/A
3996N/ACC.studio.32 = $(SPRO_ROOT)/bin/cc -m32
3996N/ACCC.studio.32 = $(SPRO_ROOT)/bin/CC -m32
3996N/A
2238N/ACC.studio.64 = $(SPRO_ROOT)/bin/cc -m64
2238N/ACCC.studio.64 = $(SPRO_ROOT)/bin/CC -m64
2238N/A
2238N/ACC.gcc.32 = $(GCC_ROOT)/bin/cc -m32
177N/ACCC.gcc.32 = $(GCC_ROOT)/bin/CC -m32
177N/A
3987N/ACC.gcc.64 = $(GCC_ROOT)/bin/cc -m64
3987N/ACCC.gcc.64 = $(GCC_ROOT)/bin/CC -m64
3987N/A
2N/ACC = $(CC.$(COMPILER).$(BITS))
3987N/ACCC = $(CCC.$(COMPILER).$(BITS))
883N/A
26N/ALD = /usr/bin/ld
38N/A
38N/APYTHON.2.4.32 = /usr/bin/python2.4
4519N/APYTHON.2.4.64 = /usr/bin/amd64/python2.4
4519N/A
4519N/APYTHON.2.6.32 = /usr/bin/python2.6
4519N/APYTHON.2.6.64 = /usr/bin/amd64/python2.6
3996N/A
1622N/APYTHON.32 = $(PYTHON.$(PYTHON_VERSION).$(BITS))
26N/APYTHON.64 = $(PYTHON.$(PYTHON_VERSION).$(BITS))
3996N/A
4493N/AGMAKE = /usr/gnu/bin/make
3996N/AGPATCH = /usr/gnu/bin/patch
477N/AGPATCH_FLAGS = -p1 -b
538N/A
38N/APKGSEND = /usr/bin/pkgsend
3996N/A
6N/ATOUCH = /usr/bin/touch
3778N/AMKDIR = /bin/mkdir -p
3985N/ARM = /bin/rm -f
3985N/ACP = /bin/cp -f
3985N/AENV = /usr/bin/env
3778N/A