Makefile revision 3661
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
58N/A#
2N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
2N/A#
32N/A
32N/Ainclude ../../make-rules/shared-macros.mk
127N/A
127N/ACOMPONENT_NAME= pcre
145N/ACOMPONENT_VERSION= 8.21
127N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
127N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
127N/ACOMPONENT_ARCHIVE_HASH= \
127N/A sha256:62e1116549ce5b1ad92901f04d8338d5f7b59f92abce8d15e9a17cafe0efb102
2N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
145N/ACOMPONENT_PROJECT_URL= http://pcre.org/
26N/ACOMPONENT_BUGDB= library/pcre
38N/A
38N/ATPNO= 9271
29N/A
93N/Ainclude $(WS_TOP)/make-rules/prep.mk
29N/Ainclude $(WS_TOP)/make-rules/configure.mk
29N/Ainclude $(WS_TOP)/make-rules/ips.mk
26N/Ainclude $(WS_TOP)/make-rules/lint-libraries.mk
26N/A
29N/A# pick up -xc99=all in CFLAGS
26N/Astudio_C99MODE= $(studio_C99_ENABLE)
2N/A
38N/A# pick up -xlang=c99 in XPG5MODE
2N/Astudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
6N/A
2N/A# turn on largefile support
58N/ACFLAGS+= $(CPP_LARGEFILES)
2N/A
145N/ACFLAGS+= $(XPG6MODE)
145N/A
34N/A# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
34N/A# here, otherwise -norunpath doesn't get set when creating the shared
34N/A# libraries (CC -G).
49N/ACXX+= $(studio_NORUNPATH)
145N/A
2N/ACXXFLAGS+= $(CC_PIC)
34N/A
34N/A# turn on support for large files
94N/ACXXFLAGS+= $(CPP_LARGEFILES)
94N/A
156N/ACXXFLAGS+= $(XPG5MODE)
156N/A
166N/A# We need to do this because libtool adds wrong paths to RPATH.
166N/ALDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
34N/A
59N/ALINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
72N/A
72N/ACONFIGURE_ENV+= "CC=$(CC)"
72N/ACONFIGURE_ENV+= "CFLAGS=$(CFLAGS)"
59N/ACONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
2N/ACONFIGURE_ENV+= "CXX=$(CXX)"
85N/ACONFIGURE_ENV+= "CXXFLAGS=$(CXXFLAGS)"
61N/ACONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
61N/ACONFIGURE_ENV+= "LDFLAGS=$(LDFLAGS)"
61N/ACONFIGURE_ENV+= "CXXLDFLAGS=$(LDFLAGS)"
61N/ACONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
172N/ACONFIGURE_ENV+= "INSTALL=$(INSTALL)"
61N/ACONFIGURE_ENV+= "MAKE=$(GMAKE)"
61N/A
61N/ACONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
172N/ACONFIGURE_ENV.64+= "MACH64=$(MACH64)"
61N/A
172N/ACONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
61N/ACONFIGURE_OPTIONS+= --localstatedir=/var
152N/ACONFIGURE_OPTIONS+= --disable-static
74N/ACONFIGURE_OPTIONS+= --enable-cpp
61N/ACONFIGURE_OPTIONS+= --enable-rebuild-chartables
85N/ACONFIGURE_OPTIONS+= --enable-utf8
172N/ACONFIGURE_OPTIONS+= --enable-unicode-properties
61N/ACONFIGURE_OPTIONS+= --enable-newline-is-any
172N/ACONFIGURE_OPTIONS+= --disable-stack-for-recursion
61N/ACONFIGURE_OPTIONS+= --enable-pcregrep-libz
172N/ACONFIGURE_OPTIONS+= --enable-pcregrep-libbz2
61N/ACONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
61N/ACONFIGURE_OPTIONS+= --with-link-size=4
61N/ACONFIGURE_OPTIONS+= --with-match-limit=10000000
61N/ACONFIGURE_OPTIONS+= --with-pic
172N/A
61N/ACONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
172N/A
61N/ACOMPONENT_BUILD_ENV+= "LDFLAGS=$(LDFLAGS)"
152N/ACOMPONENT_BUILD_ENV+= "INSTALL=$(INSTALL)"
152N/ACOMPONENT_BUILD_ENV+= "MAKE=$(GMAKE)"
61N/A
61N/ACOMPONENT_BUILD_ARGS+= -e
43N/A
43N/ACOMPONENT_INSTALL_ARGS+= "INSTALL=$(INSTALL)"
120N/ACOMPONENT_INSTALL_ARGS+= "MAKE=$(GMAKE)"
64N/A
64N/A# common targets
64N/A
43N/Abuild: $(BUILD_32_and_64)
43N/A
120N/Ainstall: $(INSTALL_32_and_64)
64N/A
64N/Atest: $(TEST_32_and_64)
64N/A
64N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
64N/A
64N/Ainclude $(WS_TOP)/make-rules/depend.mk
64N/A