Makefile revision 1258
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER START
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# The contents of this file are subject to the terms of the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Common Development and Distribution License (the "License").
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You may not use this file except in compliance with the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# See the License for the specific language governing permissions
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# and limitations under the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER END
f41405d21249e11c1636301b1324ac1937b455aaMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews sha256:62e1116549ce5b1ad92901f04d8338d5f7b59f92abce8d15e9a17cafe0efb102
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews# pick up -xc99=all in CFLAGS
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# pick up -xlang=c99 in XPG5MODE
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# turn on largefile support
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# here, otherwise -norunpath doesn't get set when creating the shared
d39690e5a9b4a9a084d984abd193bed4395db41aDavid Lawrence# libraries (CC -G).
88b3bc12b5570aae77e5963204e9111a2875915eAndreas Gustafsson# turn on support for large files
ff8fd4d1b6abb0490b5aaf2b1d86555750ae0818Mark Andrews# We need to do this because libtool adds wrong paths to RPATH.
1c9200af084f2b6f1d28eccf91525676c158cfa3Mark AndrewsLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
9463feb3cb002df10b053f71e21540607c7a48e8Tatuya JINMEI 神明達哉LINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
58e0b35a3bbb50d154c36749096f7463dab75a7aMark AndrewsCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
b9858c2efcee324745a1b8d7b099baf540bc695bMark AndrewsCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark AndrewsCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
f4545143206d918a7f6ee53cd4fb9788c534c0c7Mark AndrewsCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
09233633dadbd7878e60dd383a814e24e5eda1c6Mark AndrewsCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
d4ae7d9200ebad7700e8e85886cabe93ab24afd8Mark AndrewsCONFIGURE_OPTIONS+= --disable-stack-for-recursion
d4cefad19e32879e6847df043e62ad8f9cbfa06bMark AndrewsCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
fd6574dbc551faac89ae2ce6f3549fed51c24e49Mark AndrewsCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
bda34793bb9f407390fd54cef8e5846c357e55c6Mark Andrews# common targets
test: $(TEST_32_and_64)