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