Makefile revision 3261
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/shared-macros.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_NAME= pcre
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_VERSION= 8.21
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_HASH= \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin sha256:62e1116549ce5b1ad92901f04d8338d5f7b59f92abce8d15e9a17cafe0efb102
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_PROJECT_URL= http://pcre.org/
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_BUGDB= library/pcre
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/prep.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/configure.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/ips.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/lint-libraries.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# pick up -xc99=all in CFLAGS
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinstudio_C99MODE= $(studio_C99_ENABLE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# pick up -xlang=c99 in XPG5MODE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# turn on largefile support
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCFLAGS+= $(CPP_LARGEFILES)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCFLAGS+= $(XPG6MODE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# here, otherwise -norunpath doesn't get set when creating the shared
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# libraries (CC -G).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCXX+= $(studio_NORUNPATH)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCXXFLAGS+= $(CC_PIC)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# turn on support for large files
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCXXFLAGS+= $(CPP_LARGEFILES)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCXXFLAGS+= $(XPG5MODE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# We need to do this because libtool adds wrong paths to RPATH.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CC=$(CC)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CFLAGS=$(CFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CXX=$(CXX)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CXXFLAGS=$(CXXFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "LDFLAGS=$(LDFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CXXLDFLAGS=$(LDFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV+= "INSTALL=$(INSTALL)"
CONFIGURE_ENV+= "MAKE=$(GMAKE)"
CONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
CONFIGURE_ENV.64+= "MACH64=$(MACH64)"
CONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
CONFIGURE_OPTIONS+= --localstatedir=/var
CONFIGURE_OPTIONS+= --disable-static
CONFIGURE_OPTIONS+= --enable-cpp
CONFIGURE_OPTIONS+= --enable-rebuild-chartables
CONFIGURE_OPTIONS+= --enable-utf8
CONFIGURE_OPTIONS+= --enable-unicode-properties
CONFIGURE_OPTIONS+= --enable-newline-is-any
CONFIGURE_OPTIONS+= --disable-stack-for-recursion
CONFIGURE_OPTIONS+= --enable-pcregrep-libz
CONFIGURE_OPTIONS+= --enable-pcregrep-libbz2
CONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
CONFIGURE_OPTIONS+= --with-link-size=4
CONFIGURE_OPTIONS+= --with-match-limit=10000000
CONFIGURE_OPTIONS+= --with-pic
CONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
COMPONENT_BUILD_ENV+= "LDFLAGS=$(LDFLAGS)"
COMPONENT_BUILD_ENV+= "INSTALL=$(INSTALL)"
COMPONENT_BUILD_ENV+= "MAKE=$(GMAKE)"
COMPONENT_BUILD_ARGS+= -e
COMPONENT_INSTALL_ARGS+= "INSTALL=$(INSTALL)"
COMPONENT_INSTALL_ARGS+= "MAKE=$(GMAKE)"
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk