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