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