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