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