Makefile revision 230
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
cedb0bd0c1e3c461b7e479a16d3adfd5b150f1f4Mark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH= sha1:229e6585ec816fbb7081a6b3d29daf1e048f362f
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# pick up -xc99=all in CFLAGS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# pick up -xlang=c99 in XPG5MODE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinstudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# turn on largefile support
b15d6bddeb80c985f42986dba362c2aaf8803462Mark Andrews# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# here, otherwise -norunpath doesn't get set when creating the shared
b15d6bddeb80c985f42986dba362c2aaf8803462Mark Andrews# libraries (CC -G).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# turn on support for large files
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# We need to do this because libtool adds wrong paths to RPATH.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
727f5b8846457a33d06f515a10a7e1aa849ddf18Andreas GustafssonCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# common targets