Makefile revision 4416
2058N/A#
2058N/A# CDDL HEADER START
2058N/A#
2058N/A# The contents of this file are subject to the terms of the
2058N/A# Common Development and Distribution License (the "License").
2058N/A# You may not use this file except in compliance with the License.
2058N/A#
2058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2058N/A# or http://www.opensolaris.org/os/licensing.
2058N/A# See the License for the specific language governing permissions
2058N/A# and limitations under the License.
2058N/A#
2058N/A# When distributing Covered Code, include this CDDL HEADER in each
2058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2058N/A# If applicable, add the following below this CDDL HEADER, with the
2058N/A# fields enclosed by brackets "[]" replaced with your own identifying
2058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2058N/A#
2058N/A# CDDL HEADER END
2058N/A#
3661N/A
2058N/A#
2058N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2058N/A#
2058N/A
2058N/A# Build intl extension separately to use Studio for proper linkage with ICU
2058N/A
2058N/Ainclude ../../../../make-rules/shared-macros.mk
2058N/Ainclude $(WS_COMPONENTS)/php/php-metadata.mk
2058N/A
2058N/Ainclude $(WS_MAKE_RULES)/prep.mk
2058N/Ainclude $(WS_MAKE_RULES)/configure.mk
2058N/A
2058N/A# CLEAN_PATHS by default only gets SOURCE_DIR, which we don't want to delete.
3661N/A# (removing BUILD_DIR is a separate rule in configure.mk)
3661N/ACLEAN_PATHS=
3778N/A
3778N/A# putting this line here - with no way to compute SOURCE_DIR in prep.mk -
3778N/A# means .prep goes in php56/intl.
3778N/ASOURCE_DIR = $(PHP_SOURCE_DIR)/ext/intl
2058N/ACLEAN_PATHS += .prep
2058N/A
2058N/A# phpize.mk will cloney SOURCE_DIR into BUILD_DIR_64
2058N/Ainclude $(PHP_TOP_DIR)/phpize.mk
2058N/A
2058N/ACONFIGURE_OPTIONS += --enable-intl=shared
2058N/A
2058N/A# The build tools (libtool?) insist on passing "-lCrun -lCstd" flags. These are
2058N/A# legacy Solaris Studio C++ runtime and standard libraries, which is wrong.
2058N/A# The only expedient method I found of removing these flags is to edit the
2058N/A# generated Makefile after configure runs.
2058N/ACOMPONENT_POST_CONFIGURE_ACTION += \
2058N/A $(GSED) -i -e 's/-lCrun//g' -e 's/-lCstd//g' $(BUILD_DIR_64)/Makefile
2058N/A
2058N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
2058N/A
2058N/ACOMPONENT_TEST_TARGETS = test
2058N/A
2058N/Aconfigure: $(CONFIGURE_64)
2058N/Abuild: $(BUILD_64)
2058N/Ainstall: $(INSTALL_64)
2058N/Atest: $(TEST_64)
2058N/A
2058N/AREQUIRED_PACKAGES += library/icu
2058N/AREQUIRED_PACKAGES += system/library/math
2058N/A