Makefile revision 4547
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
34f649fa22a16acb488ccf0f8a41d541c6ba7da1Evan Hunt# See the License for the specific language governing permissions
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews# and limitations under the License.
34f649fa22a16acb488ccf0f8a41d541c6ba7da1Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
689023771c563d8660e45d439a207e06e96de28fMark Andrews# CDDL HEADER END
689023771c563d8660e45d439a207e06e96de28fMark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sha256:19d490a714274a8c4c9d131f651489b8647cdb40a159e9fb7ce17ba99ef992ab
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
39f68d7b64dce25e19f7132f6c46b3beabeed492Tinderbox User# pick up -xc99=all in CFLAGS
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# pick up -xlang=c99 in XPG5MODE
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# turn on largefile support
689023771c563d8660e45d439a207e06e96de28fMark Andrews# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
689023771c563d8660e45d439a207e06e96de28fMark Andrews# here, otherwise -norunpath doesn't get set when creating the shared
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# libraries (CC -G).
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# turn on support for large files
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# We need to do this because libtool adds wrong paths to RPATH.
689023771c563d8660e45d439a207e06e96de28fMark AndrewsLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
34f649fa22a16acb488ccf0f8a41d541c6ba7da1Evan HuntCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
34f649fa22a16acb488ccf0f8a41d541c6ba7da1Evan HuntCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
34f649fa22a16acb488ccf0f8a41d541c6ba7da1Evan Hunt# Master test results are the same for 32-bit and 64-bit, so override
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews# here, rather than create multiple identical master files.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews# common targets