Makefile revision 2899
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
c25056de36a33f2a76f79dcf64593f731d258013gw# Common Development and Distribution License (the "License").
c25056de36a33f2a76f79dcf64593f731d258013gw# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
641097441a6e36fb83135a28c834761ecbb80d36Chris Horne# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
5aeb94743e3be0c51e86f73096334611ae3a058eGarrett D'AmoreCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa9e4066f08beec538e775443c5be79dd423fcabahrens sha256:62e1116549ce5b1ad92901f04d8338d5f7b59f92abce8d15e9a17cafe0efb102
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
fa9e4066f08beec538e775443c5be79dd423fcabahrens# pick up -xc99=all in CFLAGS
fa9e4066f08beec538e775443c5be79dd423fcabahrens# pick up -xlang=c99 in XPG5MODE
fa9e4066f08beec538e775443c5be79dd423fcabahrensstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
fa9e4066f08beec538e775443c5be79dd423fcabahrens# turn on largefile support
5aeb94743e3be0c51e86f73096334611ae3a058eGarrett D'Amore# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
fa9e4066f08beec538e775443c5be79dd423fcabahrens# here, otherwise -norunpath doesn't get set when creating the shared
fa9e4066f08beec538e775443c5be79dd423fcabahrens# libraries (CC -G).
641097441a6e36fb83135a28c834761ecbb80d36Chris Horne# turn on support for large files
fa9e4066f08beec538e775443c5be79dd423fcabahrens# We need to do this because libtool adds wrong paths to RPATH.
641097441a6e36fb83135a28c834761ecbb80d36Chris HorneLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
641097441a6e36fb83135a28c834761ecbb80d36Chris HorneLINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
641097441a6e36fb83135a28c834761ecbb80d36Chris HorneCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
641097441a6e36fb83135a28c834761ecbb80d36Chris HorneCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
fa9e4066f08beec538e775443c5be79dd423fcabahrensCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
5aeb94743e3be0c51e86f73096334611ae3a058eGarrett D'AmoreCONFIGURE_OPTIONS+= --with-match-limit=10000000
5aeb94743e3be0c51e86f73096334611ae3a058eGarrett D'AmoreCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
fa9e4066f08beec538e775443c5be79dd423fcabahrens# common targets