Makefile revision 230
358628c8f4804a2db52be0f6d03a66137fab4884David Lawrence# CDDL HEADER START
358628c8f4804a2db52be0f6d03a66137fab4884David Lawrence# The contents of this file are subject to the terms of the
54a2e7e8a21ee765f41bd995101995613bff9e8cDavid Lawrence# Common Development and Distribution License (the "License").
54a2e7e8a21ee765f41bd995101995613bff9e8cDavid Lawrence# You may not use this file except in compliance with the License.
54a2e7e8a21ee765f41bd995101995613bff9e8cDavid Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence# See the License for the specific language governing permissions
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence# and limitations under the License.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence# When distributing Covered Code, include this CDDL HEADER in each
a2605214c27439a8af2ad4bd9a8630dcfcc8152eDavid Lawrence# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a2605214c27439a8af2ad4bd9a8630dcfcc8152eDavid Lawrence# If applicable, add the following below this CDDL HEADER, with the
a2605214c27439a8af2ad4bd9a8630dcfcc8152eDavid Lawrence# fields enclosed by brackets "[]" replaced with your own identifying
a2605214c27439a8af2ad4bd9a8630dcfcc8152eDavid Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
344e909ce9c59422a70105aba498e68b2d42623bDavid Lawrence# CDDL HEADER END
738922ba7bb10b206f6f54931aed068e3dcb950dDavid Lawrence# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
c403d3f7d6cb17406e9be03a330ed5cf91619abcDavid LawrenceCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c403d3f7d6cb17406e9be03a330ed5cf91619abcDavid LawrenceCOMPONENT_ARCHIVE_HASH= sha1:229e6585ec816fbb7081a6b3d29daf1e048f362f
c403d3f7d6cb17406e9be03a330ed5cf91619abcDavid LawrenceCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
dc91d010dbd848ab3a11815e5a3d109662a38b0cDavid Lawrenceinclude $(WS_TOP)/make-rules/lint-libraries.mk
e3b3a046bf653d39cb5b92534a6a36fce1702d20Bob Halley# pick up -xc99=all in CFLAGS
e3b3a046bf653d39cb5b92534a6a36fce1702d20Bob Halley# pick up -xlang=c99 in XPG5MODE
e3b3a046bf653d39cb5b92534a6a36fce1702d20Bob Halleystudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
904463e94cafd59c8284f472ea8f58f1f311b8cbDavid Lawrence# turn on largefile support
1a7f6c3898266854db100fb2cb36418d650de8e7Brian Wellington# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
1a7f6c3898266854db100fb2cb36418d650de8e7Brian Wellington# here, otherwise -norunpath doesn't get set when creating the shared
1a7f6c3898266854db100fb2cb36418d650de8e7Brian Wellington# libraries (CC -G).
fc9e755ba340607d76c7de897ee2d985d3b24505David Lawrence# turn on support for large files
7896e45912df15d07eb99f885b9d9c15ad5f3f68David Lawrence# We need to do this because libtool adds wrong paths to RPATH.
7896e45912df15d07eb99f885b9d9c15ad5f3f68David LawrenceLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
32eddfc189108fa93e31761e13150594c7a79d2bDavid LawrenceLINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
b8dd48ecf83142f6ee7238cbd68fec455e527fc8Mark AndrewsCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
68e4926b2262571e004b4be00b905ec776c01d9cMichael GraffCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
6c7e680943ccdb75f23b050a7bc5ac0825e5244aMark AndrewsCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
6c7e680943ccdb75f23b050a7bc5ac0825e5244aMark AndrewsCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
61e9c1cdbe29683bb2db388e4fc6a6fd59315cefDavid LawrenceCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
2cc1d2536d5834fbe20281068b8bd34dd1ee5337David LawrenceCONFIGURE_OPTIONS+= --enable-rebuild-chartables
2cc1d2536d5834fbe20281068b8bd34dd1ee5337David LawrenceCONFIGURE_OPTIONS+= --enable-unicode-properties
140d92622430165001bd91ba2e7d516992faeb2fMichael SawyerCONFIGURE_OPTIONS+= --disable-stack-for-recursion
145bd6ea3394faf2faa40c99cb6bb7c96027ae16David LawrenceCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
145bd6ea3394faf2faa40c99cb6bb7c96027ae16David LawrenceCONFIGURE_OPTIONS+= --with-match-limit=10000000
0c33e418cb443ade8ed55f5433bc4d409c7af0b8David LawrenceCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
9e842bb2d3802de0f7da5d6d33382a4859bc6876Brian Wellington# common targets