Makefile revision 618
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
1265N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A
919N/A#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A
98N/Ainclude ../../make-rules/shared-macros.mk
98N/A
98N/ACOMPONENT_NAME= pcre
98N/ACOMPONENT_VERSION= 7.8
98N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
98N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1265N/ACOMPONENT_ARCHIVE_HASH= sha1:229e6585ec816fbb7081a6b3d29daf1e048f362f
493N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
98N/ACOMPONENT_PROJECT_URL= http://pcre.org/
911N/A
1276N/Ainclude $(WS_TOP)/make-rules/prep.mk
1276N/Ainclude $(WS_TOP)/make-rules/configure.mk
1276N/Ainclude $(WS_TOP)/make-rules/ips.mk
911N/Ainclude $(WS_TOP)/make-rules/lint-libraries.mk
98N/A
235N/A# pick up -xc99=all in CFLAGS
493N/Astudio_C99MODE= $(studio_C99_ENABLE)
98N/A
916N/A# pick up -xlang=c99 in XPG5MODE
916N/Astudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
916N/A
916N/A# turn on largefile support
970N/ACFLAGS+= $(CPP_LARGEFILES)
970N/A
970N/ACFLAGS+= $(XPG6MODE)
970N/A
970N/A# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
970N/A# here, otherwise -norunpath doesn't get set when creating the shared
970N/A# libraries (CC -G).
970N/ACXX+= $(studio_NORUNPATH)
970N/A
970N/ACXXFLAGS+= $(CC_PIC)
970N/A
970N/A# turn on support for large files
970N/ACXXFLAGS+= $(CPP_LARGEFILES)
970N/A
970N/ACXXFLAGS+= $(XPG5MODE)
970N/A
970N/A# We need to do this because libtool adds wrong paths to RPATH.
970N/ALDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
970N/A
970N/ALINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
970N/A
970N/ACONFIGURE_ENV+= "CC=$(CC)"
970N/ACONFIGURE_ENV+= "CFLAGS=$(CFLAGS)"
970N/ACONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
970N/ACONFIGURE_ENV+= "CXX=$(CXX)"
1029N/ACONFIGURE_ENV+= "CXXFLAGS=$(CXXFLAGS)"
1029N/ACONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
1124N/ACONFIGURE_ENV+= "LDFLAGS=$(LDFLAGS)"
1124N/ACONFIGURE_ENV+= "CXXLDFLAGS=$(LDFLAGS)"
1124N/ACONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
1124N/ACONFIGURE_ENV+= "INSTALL=$(INSTALL)"
1124N/ACONFIGURE_ENV+= "MAKE=$(GMAKE)"
1124N/A
970N/ACONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
98N/ACONFIGURE_ENV.64+= "MACH64=$(MACH64)"
98N/A
1265N/ACONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
1124N/ACONFIGURE_OPTIONS+= --localstatedir=/var
1124N/ACONFIGURE_OPTIONS+= --disable-static
1124N/ACONFIGURE_OPTIONS+= --enable-cpp
1265N/ACONFIGURE_OPTIONS+= --enable-rebuild-chartables
1265N/ACONFIGURE_OPTIONS+= --enable-utf8
1265N/ACONFIGURE_OPTIONS+= --enable-unicode-properties
1124N/ACONFIGURE_OPTIONS+= --enable-newline-is-any
98N/ACONFIGURE_OPTIONS+= --disable-stack-for-recursion
493N/ACONFIGURE_OPTIONS+= --enable-pcregrep-libz
98N/ACONFIGURE_OPTIONS+= --enable-pcregrep-libbz2
970N/ACONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
970N/ACONFIGURE_OPTIONS+= --with-link-size=4
970N/ACONFIGURE_OPTIONS+= --with-match-limit=10000000
1026N/ACONFIGURE_OPTIONS+= --with-pic
970N/A
970N/ACONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
1026N/A
1124N/ACOMPONENT_BUILD_ENV+= "LDFLAGS=$(LDFLAGS)"
1003N/ACOMPONENT_BUILD_ENV+= "INSTALL=$(INSTALL)"
98N/ACOMPONENT_BUILD_ENV+= "MAKE=$(GMAKE)"
98N/A
98N/ACOMPONENT_BUILD_ARGS+= -e
908N/A
591N/ACOMPONENT_INSTALL_ARGS+= "INSTALL=$(INSTALL)"
493N/ACOMPONENT_INSTALL_ARGS+= "MAKE=$(GMAKE)"
493N/A
1201N/A# common targets
1201N/A
1201N/Abuild: $(BUILD_32_and_64)
1201N/A
1265N/Ainstall: $(INSTALL_32_and_64)
1265N/A
1201N/Atest: $(TEST_32_and_64)
1201N/A
1201N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1201N/A
493N/Ainclude $(WS_TOP)/make-rules/depend.mk
493N/A