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