Makefile revision 4337
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User sha256:62e1116549ce5b1ad92901f04d8338d5f7b59f92abce8d15e9a17cafe0efb102
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# pick up -xc99=all in CFLAGS
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# pick up -xlang=c99 in XPG5MODE
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox Userstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# turn on largefile support
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# here, otherwise -norunpath doesn't get set when creating the shared
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# libraries (CC -G).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# turn on support for large files
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# We need to do this because libtool adds wrong paths to RPATH.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox UserLINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox UserCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox UserCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox UserCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS+= --enable-rebuild-chartables
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox UserCONFIGURE_OPTIONS+= --enable-unicode-properties
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox UserCONFIGURE_OPTIONS+= --disable-stack-for-recursion
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS+= --with-match-limit=10000000
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox UserCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# common targets