Makefile revision 5228
bec154197d3d640b0d5b416cd5218ea58dca5d3aTinderbox User# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:9883e419c336c63b0cb5202b09537c140966d585e4d0da66147dc513da13e629
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# pick up -xc99=all in CFLAGS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# pick up -xlang=c99 in XPG5MODE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# turn on largefile support
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# here, otherwise -norunpath doesn't get set when creating the shared
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# libraries (CC -G).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# turn on support for large files
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# We need to do this because libtool adds wrong paths to RPATH.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS+= --disable-stack-for-recursion
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# common targets