Makefile revision 3353
430474e5ec398f769830a548d818d75ff37d5113vboxsync#
430474e5ec398f769830a548d818d75ff37d5113vboxsync# CDDL HEADER START
459e93059a8be95d20eda3d1dad52187595a688cvboxsync#
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# The contents of this file are subject to the terms of the
430474e5ec398f769830a548d818d75ff37d5113vboxsync# Common Development and Distribution License (the "License").
430474e5ec398f769830a548d818d75ff37d5113vboxsync# You may not use this file except in compliance with the License.
459e93059a8be95d20eda3d1dad52187595a688cvboxsync#
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# or http://www.opensolaris.org/os/licensing.
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# See the License for the specific language governing permissions
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# and limitations under the License.
459e93059a8be95d20eda3d1dad52187595a688cvboxsync#
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# When distributing Covered Code, include this CDDL HEADER in each
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# If applicable, add the following below this CDDL HEADER, with the
430474e5ec398f769830a548d818d75ff37d5113vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
430474e5ec398f769830a548d818d75ff37d5113vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
459e93059a8be95d20eda3d1dad52187595a688cvboxsync#
430474e5ec398f769830a548d818d75ff37d5113vboxsync# CDDL HEADER END
459e93059a8be95d20eda3d1dad52187595a688cvboxsync#
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
459e93059a8be95d20eda3d1dad52187595a688cvboxsync#
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# we really need to use studio so we don't like that
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# parfait is g++ in disguise
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncexport PARFAIT_BUILD=no
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncinclude ../../make-rules/shared-macros.mk
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncPATH=$(dir $(CC)):/usr/gnu/bin:/usr/bin
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_NAME= stdcxx
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_VERSION= 4.2.1
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_PROJECT_URL= http://stdcxx.apache.org/
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_PROJECT_URL= http://stdcxx.apache.org/
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_ARCHIVE_HASH= \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync sha256:00854223cbd947bf1bd85d9dabd1b2829706d9062e0007d5022082a5e4b7e15e
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_ARCHIVE_URL= http://www.apache.org/dist/stdcxx/$(COMPONENT_ARCHIVE)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_BUGDB= library/libstdcxx
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncTPNO= 9048
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCLOBBER_PATHS += install.sh
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncinclude ../../make-rules/prep.mk
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncinclude ../../make-rules/configure.mk
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncinclude ../../make-rules/ips.mk
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncISA_PATCH_DIR_32 = $(WS_TOP)/components/stdcxx/isa_patches/$(MACH)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncISA_PATCH_DIR_64 = $(WS_TOP)/components/stdcxx/isa_patches/$(MACH64)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncISA_PATCH_DIR = $(ISA_PATCH_DIR_$(BITS))
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncISA_PATCHES_$(MACH) = \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(ISA_PATCH_DIR)/1034-sunpro.config.$(MACH).patch \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(ISA_PATCH_DIR)/1035-GNUmakefile.tst.$(MACH).patch \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(ISA_PATCH_DIR)/1036-GNUmakefile.rwt.$(MACH).patch \
430474e5ec398f769830a548d818d75ff37d5113vboxsync $(ISA_PATCH_DIR)/1037-GNUmakefile.lib.$(MACH).patch \
430474e5ec398f769830a548d818d75ff37d5113vboxsync $(ISA_PATCH_DIR)/1038-GNUmakefile.ph.$(MACH).patch \
8c16794f5ce593e63ae3138a574a4bd1d3aed76avboxsync $(ISA_PATCH_DIR)/1039-GNUmakefile.exm.$(MACH).patch \
8c16794f5ce593e63ae3138a574a4bd1d3aed76avboxsync $(ISA_PATCH_DIR)/1040-GNUmakefile.cfg.$(MACH).patch \
8c16794f5ce593e63ae3138a574a4bd1d3aed76avboxsync $(ISA_PATCH_DIR)/1041-GNUmakefile.bin.$(MACH).patch
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncISA_PATCHES_$(MACH64) = \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1034-sunpro.config.$(MACH64).patch \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1035-GNUmakefile.tst.$(MACH64).patch \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1036-GNUmakefile.rwt.$(MACH64).patch \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1037-GNUmakefile.lib.$(MACH64).patch \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1038-GNUmakefile.ph.$(MACH64).patch \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1039-GNUmakefile.exm.$(MACH64).patch \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1040-GNUmakefile.cfg.$(MACH64).patch \
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync $(ISA_PATCH_DIR)/1041-GNUmakefile.bin.$(MACH64).patch
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync
58fd0712f38839a3228583267d39e0f20d41f36cvboxsyncISA_PATCHES_32 = $(ISA_PATCHES_$(MACH))
58fd0712f38839a3228583267d39e0f20d41f36cvboxsyncISA_PATCHES_64 = $(ISA_PATCHES_$(MACH64))
58fd0712f38839a3228583267d39e0f20d41f36cvboxsyncISA_PATCHES = $(ISA_PATCHES_$(BITS))
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync
58fd0712f38839a3228583267d39e0f20d41f36cvboxsyncPATCH_LEVEL = 1
58fd0712f38839a3228583267d39e0f20d41f36cvboxsync
58fd0712f38839a3228583267d39e0f20d41f36cvboxsyncTOPDIR = $(COMPONENT_DIR)/$(COMPONENT_SRC)
9febf2a3d6e24ecf10bbdd52858c9e5170314a46vboxsyncLOCAL_BUILDDIR = $(TOPDIR)/build
9febf2a3d6e24ecf10bbdd52858c9e5170314a46vboxsyncMARG = -m$(BITS)
9febf2a3d6e24ecf10bbdd52858c9e5170314a46vboxsyncPICFLAG = -KPIC -DPIC
430474e5ec398f769830a548d818d75ff37d5113vboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# Please see the README file in this directory for a detailed explanation
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# about these flags, what they do, and why we need them.
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncFLAGS_sparc = -m32 -xarch=sparcvis -xmemalign=8i
c8db1db099a06ef2a418a24d38d233e3402c8c66vboxsyncFLAGS_sparcv9 = -m64 -xarch=sparcvis -xmemalign=16i
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncFLAGS_i386 = -m32 -xarch=386
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncFLAGS_amd64 = -m64 -xarch=generic
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_sparc = -Xc -features=extinl -xvis=yes
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_sparc += -Qoption cg -xregs=no%appl -xbuiltin=%none -xO4 $(PICFLAG)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_i386 = -Xc -features=extinl -xregs=no%frameptr
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_i386 += -xO3 -xbuiltin=%none $(PICFLAG)
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_32 = $(FLAGS_$(MACH)) $(CFLAGS_$(MACH))
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_64 = $(FLAGS_$(MACH64)) $(CFLAGS_$(MACH))
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_sparc = -xvis=yes -xregs=no%appl -xO4
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_sparc += -xbuiltin=%none $(PICFLAG)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_i386 = -xregs=no%frameptr -xO3 -xbuiltin=%none $(PICFLAG)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += -xc99=%all
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += -mt -D_REENTRANT -DNDEBUG
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += -D_XPG6 -D_XOPEN_SOURCE=600 -D_POSIX_PTHREAD_SEMANTICS
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += -D_POSIX_C_SOURCE=200112L -D__XOPEN_OR_POSIX
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += -D_STRICT_STDC -D_STRICT_STDC__ -D_STDC_C99 -D_ISOC99_SOURCE
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += -D_IN_BUILD_STDCXX
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS_GENERIC += $(CFLAGS_$(BITS))
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCFLAGS = $(CFLAGS_GENERIC)
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC = -library=Cstd -library=Crun -norunpath
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -Qoption ccfe ++boolflag:sunwcch=false
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -Qoption ccfe +d2,-xgeninl=system
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -Qoption ccfe -expand=10000
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -instances=global
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -template=geninlinefuncs
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -verbose=template
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += $(CXXFLAGS_$(MACH))
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -xlang=c99
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -xbuiltin=%none
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -xinline=
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -xlibmieee
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -xustr=ascii_utf16_ushort
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -z ignore $(PICFLAG)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -mt -D_REENTRANT -DNDEBUG
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -D_IN_BUILD_STDCXX
430474e5ec398f769830a548d818d75ff37d5113vboxsyncCXXFLAGS_GENERIC += -D__EXTENSIONS__
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -D_LARGEFILE_SOURCE
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -D_FILE_OFFSET_BITS=64
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -D_XOPEN_SOURCE=500
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -D_XPG5
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += -D_POSIX_PTHREAD_SEMANTICS -s
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_GENERIC += +w2 -errtags -erroff=hidef
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_32 = $(FLAGS_$(MACH))
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS_64 = $(FLAGS_$(MACH64))
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCXXFLAGS = $(CXXFLAGS_$(BITS)) $(CXXFLAGS_$(MACH)) $(CXXFLAGS_GENERIC)
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCPPFLAGS = -I$(TOPDIR)/include/ansi
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCPPFLAGS += -I$(TOPDIR)/include/tr1
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCPPFLAGS += -I$(TOPDIR)/include
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# -mt will automatically pass -lthread unless we pass -lpthread
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# on link line. -lthread causes regressions. see man CC(1) and -mt.
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# -lumem must be passed before -lc.
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncLDFLAGS = -lpthread -lumem -lm -lc -s -z ignore
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# We cannot have -B direct
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncLD_OPTIONS = -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncLD_OPTIONS += -M /usr/lib/ld/map.pagealign
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncLD_OPTIONS += -lpthread -lumem -lm -lc -s -z ignore
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# If I name it NLSPATH, gmake insists on getting its value from the
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# running environment. Also, it all has to be on one line. += prepends
459e93059a8be95d20eda3d1dad52187595a688cvboxsync# a whitespace.
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncBUILD_NLSPATH = :%N.cat:/usr/lib/locale/%L/%N.cat:/usr/share/locale/%L/%N.cat:$(BUILD_DIR_$(BITS))/lib/rwstderr.cat
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV = CC="$(CC)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += CXX="$(CXX)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += LD="$(CXX) $(CXXFLAGS) $(LDFLAGS)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += MAKE="$(MAKE)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += TOPDIR="$(TOPDIR)"
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCONFIGURE_ENV += MAKEFLAGS=""
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
430474e5ec398f769830a548d818d75ff37d5113vboxsyncCONFIGURE_OPTIONS = $(MARG)
430474e5ec398f769830a548d818d75ff37d5113vboxsyncCONFIGURE_OPTIONS += -topdir=$(TOPDIR)
430474e5ec398f769830a548d818d75ff37d5113vboxsyncCONFIGURE_OPTIONS += -builddir=$(LOCAL_BUILDDIR)
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncGCP = /usr/gnu/bin/cp
430474e5ec398f769830a548d818d75ff37d5113vboxsync
5638779fc90f0e0e702176680e16b1888ce23580vboxsyncCOMPONENT_BUILD_ENV = MAKEFLAGS=""
5638779fc90f0e0e702176680e16b1888ce23580vboxsyncCOMPONENT_BUILD_ENV += MAKELEVEL=""
5638779fc90f0e0e702176680e16b1888ce23580vboxsyncCOMPONENT_BUILD_ENV += SHELL="/bin/bash"
f0057abac56417c558ea84f3a1c0995e73390152vboxsyncCOMPONENT_BUILD_ENV += NLSPATH="$(BUILD_NLSPATH)"
f0057abac56417c558ea84f3a1c0995e73390152vboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncPKG_PROTO_DIRS += $(COMPONENT_DIR)/$(COMPONENT_SRC)-32
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncPKG_PROTO_DIRS += $(COMPONENT_DIR)/$(COMPONENT_SRC)-64
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_PREP_ACTION = \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync ( if test -f $(TOPDIR)/.unpacked ; then \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync cd $(TOPDIR) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync else $(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(TOUCH) $(TOPDIR)/.unpacked ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync cd $(TOPDIR) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync fi ; \
430474e5ec398f769830a548d818d75ff37d5113vboxsync list='$(ISA_PATCHES)' ; for f in $$list ; do \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(GPATCH) $(GPATCH_FLAGS) <$$f ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync done )
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync ( if test -f $(TOPDIR)/.unpacked ; then \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync cd $(TOPDIR) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync else $(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(TOUCH) $(TOPDIR)/.unpacked ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync cd $(TOPDIR) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync list1='$(ISA_PATCHES)' ; for f in $$list1 ; do \
a99fcd9e1deb3cfb94cd3905847ff779c5eecdd7vboxsync $(GPATCH) $(GPATCH_FLAGS) <$$f ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync done ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync list2='$(PATCHES)' ; for f in $$list2 ; do \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(GPATCH) $(GPATCH_FLAGS) <$(COMPONENT_DIR)/$$f ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync done ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(TOUCH) $(TOPDIR)/.patched ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync fi ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CP) -Rp $(COMPONENT_DIR)/Solaris . ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CP) -p ./Solaris/configure . ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(TOUCH) -acm ./configure ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CHMOD) 0755 ./configure )
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_POST_CONFIGURE_ACTION = \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync ( $(CLONEY) $(TOPDIR) $(@D) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync find ./$(COMPONENT_SRC) -type f -name "*.~1~" \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -exec chmod 0644 {} \; > /dev/null 2>&1 )
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_POST_BUILD_ACTION = \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync ( cd $(BUILD_DIR_$(BITS))/build ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(GMAKE) locales ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync cd $(TOPDIR) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CP) -p $(COMPONENT_DIR)/Solaris/fix_nls_symlinks.sh . ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CHMOD) 0755 fix_nls_symlinks.sh ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(SHELL) ./fix_nls_symlinks.sh ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync cd $(COMPONENT_DIR) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(GCP) -rpd $(COMPONENT_SRC) $(COMPONENT_SRC)-$(BITS) ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(RM) -rf $(COMPONENT_SRC) )
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_PRE_TEST_ACTION = \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CP) -p $(COMPONENT_DIR)/Solaris/prep_build_area.sh \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(COMPONENT_DIR)/ ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CHMOD) 0755 $(COMPONENT_DIR)/prep_build_area.sh ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(SHELL) $(COMPONENT_DIR)/prep_build_area.sh $(CC_BITS) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -builddir=$(BUILD_DIR)/$(MACH$(BITS)) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -srcdir=$(TOPDIR)-$(BITS)
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/build/tests
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_TEST_CMD = \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CP) -p $(COMPONENT_DIR)/Solaris/run_tests.sh . ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CHMOD) 0755 run_tests.sh ; \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(SHELL) ./run_tests.sh > \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(COMPONENT_DIR)/runtests-$(MACH).out 2>&1
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncCOMPONENT_TEST_TARGETS =
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncASLR_MODE = $(ASLR_NOT_APPLICABLE)
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncbuild: $(BUILD_32) $(BUILD_64)
459e93059a8be95d20eda3d1dad52187595a688cvboxsync
459e93059a8be95d20eda3d1dad52187595a688cvboxsyncinstall: $(BUILD_DIR_32)/.built $(BUILD_DIR_64)/.built
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CP) $(COMPONENT_DIR)/Solaris/install.sh $(COMPONENT_DIR)/
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(CHMOD) 0755 $(COMPONENT_DIR)/install.sh
459e93059a8be95d20eda3d1dad52187595a688cvboxsync $(MKDIR) $(PROTO_DIR)/usr
459e93059a8be95d20eda3d1dad52187595a688cvboxsync ( $(SHELL) $(COMPONENT_DIR)/install.sh \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -prefix=$(PROTO_DIR)/usr \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -builddir=$(BUILD_DIR_32) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -componentdir=$(COMPONENT_DIR) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -componentsrc=$(COMPONENT_SRC) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -srcdir=$(TOPDIR)-32 )
459e93059a8be95d20eda3d1dad52187595a688cvboxsync ( $(SHELL) $(COMPONENT_DIR)/install.sh \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -prefix=$(PROTO_DIR)/usr \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -builddir=$(BUILD_DIR_64) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -componentdir=$(COMPONENT_DIR) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -componentsrc=$(COMPONENT_SRC) \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -srcdir=$(TOPDIR)-64 \
459e93059a8be95d20eda3d1dad52187595a688cvboxsync -mach64=$(MACH64) )
459e93059a8be95d20eda3d1dad52187595a688cvboxsync test -d $(TOPDIR) || $(MKDIR) $(TOPDIR)
430474e5ec398f769830a548d818d75ff37d5113vboxsync
430474e5ec398f769830a548d818d75ff37d5113vboxsynctest: $(TEST_32_and_64)
clean::
$(RM) -r $(COMPONENT_SRC) $(COMPONENT_SRC)-32 $(COMPONENT_SRC)-64
$(RM) -f *.sed *.out
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk