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