Makefile revision 312
312N/A#
312N/A# CDDL HEADER START
312N/A#
312N/A# The contents of this file are subject to the terms of the
312N/A# Common Development and Distribution License (the "License").
312N/A# You may not use this file except in compliance with the License.
312N/A#
312N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
312N/A# or http://www.opensolaris.org/os/licensing.
312N/A# See the License for the specific language governing permissions
312N/A# and limitations under the License.
312N/A#
312N/A# When distributing Covered Code, include this CDDL HEADER in each
312N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
312N/A# If applicable, add the following below this CDDL HEADER, with the
312N/A# fields enclosed by brackets "[]" replaced with your own identifying
312N/A# information: Portions Copyright [yyyy] [name of copyright owner]
312N/A#
312N/A# CDDL HEADER END
312N/A
312N/A#
312N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
312N/A#
312N/A
312N/Ainclude ../../make-rules/shared-macros.mk
312N/A
312N/ACOMPONENT_NAME= cmake
312N/ACOMPONENT_VERSION= 2.6.2
312N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
312N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
312N/ACOMPONENT_ARCHIVE_HASH= sha1:48d33afaf23d40f2ea9aa2f5018c7213983222c2
312N/ACOMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v2.6/$(COMPONENT_ARCHIVE)
312N/ACOMPONENT_PROJECT_URL= http://www.cmake.org/
312N/A
312N/Ainclude $(WS_TOP)/make-rules/prep.mk
312N/Ainclude $(WS_TOP)/make-rules/configure.mk
312N/Ainclude $(WS_TOP)/make-rules/ips.mk
312N/A
312N/A# Need to remove this option from LD_OPTIONS (only affects sparc build);
312N/A# it causes a SegFault failure in kwsys/testSystemInformation
312N/A# when testing on sparc
312N/ALD_MAP_NOEXBSS=
312N/A
312N/ALDFLAGS += $($(COMPILER)_NORUNPATH)
312N/A
312N/A# We need these in the environment, although they are already passed
312N/A# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used
312N/ACONFIGURE_ENV += CC="$(CC)"
312N/ACONFIGURE_ENV += CXX="$(CXX)"
312N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
312N/ACONFIGURE_ENV += MAKE="$(GMAKE)"
312N/A
312N/A# CmakeCache-txt is created by configure, so we need to patch
312N/A# it after configure
312N/ACOMPONENT_POST_CONFIGURE_ACTION = ( cd $(BUILD_DIR_$(BITS)); \
312N/A $(GPATCH) $(GPATCH_FLAGS) < \
312N/A $(COMPONENT_DIR)/patches-post-config/CmakeCache-txt.patch )
312N/A
312N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
312N/ACOMPONENT_BUILD_ENV += CXX="$(CXX)"
312N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
312N/ACOMPONENT_BUILD_ENV += MAKE="$(GMAKE)"
312N/ACOMPONENT_BUILD_TARGETS = all
312N/A
312N/ACOMPONENT_TEST_TARGETS = test
312N/A
312N/A# common targets
312N/A
312N/Abuild: $(BUILD_32)
312N/A
312N/Ainstall: $(INSTALL_32)
312N/A
312N/A# expected failures: curl, complex, complexOneConfig
312N/Atest: $(TEST_32)
312N/A
312N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
312N/A
312N/Ainclude $(WS_TOP)/make-rules/depend.mk