Makefile revision 235
452d2fd15cebd2da9331d5d765558a60b488c1a9rbb# CDDL HEADER START
83b031099aa3dc8a5fd2f708e397818cbd16c9aajerenkrantz# The contents of this file are subject to the terms of the
83b031099aa3dc8a5fd2f708e397818cbd16c9aajerenkrantz# Common Development and Distribution License (the "License").
01e77cadbd9ad4962993380245bcc033dde523e4rbb# You may not use this file except in compliance with the License.
01e77cadbd9ad4962993380245bcc033dde523e4rbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8ea9794272347cfdd92861f46295406649f01afatrawick# See the License for the specific language governing permissions
8ea9794272347cfdd92861f46295406649f01afatrawick# and limitations under the License.
b900452c9c36031434d318880f023c0fb9143325rbb# When distributing Covered Code, include this CDDL HEADER in each
b900452c9c36031434d318880f023c0fb9143325rbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b900452c9c36031434d318880f023c0fb9143325rbb# If applicable, add the following below this CDDL HEADER, with the
b900452c9c36031434d318880f023c0fb9143325rbb# fields enclosed by brackets "[]" replaced with your own identifying
b900452c9c36031434d318880f023c0fb9143325rbb# information: Portions Copyright [yyyy] [name of copyright owner]
b900452c9c36031434d318880f023c0fb9143325rbb# CDDL HEADER END
43053faf24ffe7657bb32bc06d4058dedf3ef053rbb# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
8b91dcac0e1ef7796c72d16b0962267313cac486jerenkrantzCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6ce942b017db75b559a42bdc2d7b8ea9e869a956wroweCOMPONENT_ARCHIVE_HASH= sha1:229e6585ec816fbb7081a6b3d29daf1e048f362f
6ce942b017db75b559a42bdc2d7b8ea9e869a956wroweCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
6ce942b017db75b559a42bdc2d7b8ea9e869a956wrowe# pick up -xc99=all in CFLAGS
574f6ff9ee80ef4f772649c5c8319b764a8abe42jerenkrantz# pick up -xlang=c99 in XPG5MODE
574f6ff9ee80ef4f772649c5c8319b764a8abe42jerenkrantzstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
6d7d70dbda8e461d87f2d41e323755496ae3ebc7trawick# turn on largefile support
a310497ca9c5112d759871e1b7d9f6a40fb78bcfwrowe# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
a310497ca9c5112d759871e1b7d9f6a40fb78bcfwrowe# here, otherwise -norunpath doesn't get set when creating the shared
a310497ca9c5112d759871e1b7d9f6a40fb78bcfwrowe# libraries (CC -G).
8bda0627eb2aca9e678c1303a0423d33069388dfwrowe# turn on support for large files
e36ef0d081aa59867688bcbb3da65952ec16fae3rbb# We need to do this because libtool adds wrong paths to RPATH.
e36ef0d081aa59867688bcbb3da65952ec16fae3rbbLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
52df98b165194a0ad68885f49f81fdaf56ece568wroweCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
7e44dd5082cd865068285e8f915bb5f045e0bb80larsCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
44a4ee1140769173da7bc2b42d1a686e3260ad84wroweCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
978faa9e29e0f0c42e66c07240e562325a4717b0jerenkrantzCONFIGURE_OPTIONS+= --disable-stack-for-recursion
978faa9e29e0f0c42e66c07240e562325a4717b0jerenkrantzCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
976501adbc040220270f7d1d77c4b8373033be69wroweCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
9af1ccb223d0669b3c3a43eed070d815afde9084mjc# common targets