Makefile revision 729
474N/A#
474N/A# CDDL HEADER START
474N/A#
474N/A# The contents of this file are subject to the terms of the
474N/A# Common Development and Distribution License (the "License").
474N/A# You may not use this file except in compliance with the License.
474N/A#
474N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
474N/A# or http://www.opensolaris.org/os/licensing.
474N/A# See the License for the specific language governing permissions
474N/A# and limitations under the License.
474N/A#
474N/A# When distributing Covered Code, include this CDDL HEADER in each
474N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
474N/A# If applicable, add the following below this CDDL HEADER, with the
474N/A# fields enclosed by brackets "[]" replaced with your own identifying
474N/A# information: Portions Copyright [yyyy] [name of copyright owner]
474N/A#
474N/A# CDDL HEADER END
474N/A
474N/A#
474N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
474N/A#
474N/A
474N/Ainclude ../../make-rules/shared-macros.mk
474N/A
474N/ACOMPONENT_NAME= cmake
474N/ACOMPONENT_VERSION= 2.8.6
474N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
474N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
474N/ACOMPONENT_ARCHIVE_HASH= sha1:7c2cbd42d27e26580cd4923892197b84b2a90675
474N/ACOMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v2.8/$(COMPONENT_ARCHIVE)
474N/ACOMPONENT_PROJECT_URL= http://www.cmake.org/
474N/A
474N/Ainclude $(WS_TOP)/make-rules/prep.mk
474N/Ainclude $(WS_TOP)/make-rules/configure.mk
474N/Ainclude $(WS_TOP)/make-rules/ips.mk
474N/A
474N/A# Need to remove this option from LD_OPTIONS (only affects sparc build);
474N/A# it causes a SegFault failure in kwsys/testSystemInformation
474N/A# when testing on sparc
474N/ALD_MAP_NOEXBSS=
474N/A
474N/ALDFLAGS += $($(COMPILER)_NORUNPATH)
474N/A
474N/A# We need these in the environment, although they are already passed
474N/A# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used
474N/ACONFIGURE_ENV += CC="$(CC)"
474N/ACONFIGURE_ENV += CXX="$(CXX)"
474N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
474N/ACONFIGURE_ENV += MAKE="$(GMAKE)"
474N/A
474N/A# Use system-installed third-party libraries, rather than the private
474N/A# copies in the cmake source. Only libarchive will come from the cmake
474N/A# source, since it is not currently part of Solaris.
474N/ACONFIGURE_OPTIONS += --system-curl
474N/ACONFIGURE_OPTIONS += --system-expat
474N/ACONFIGURE_OPTIONS += --system-zlib
474N/ACONFIGURE_OPTIONS += --system-bzip2
474N/A
474N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
474N/ACOMPONENT_BUILD_ENV += CXX="$(CXX)"
474N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
474N/ACOMPONENT_BUILD_ENV += MAKE="$(GMAKE)"
474N/ACOMPONENT_BUILD_TARGETS = all
474N/A
474N/A# Need C and C++ compiler locations for cmake tests
474N/ACOMPONENT_TEST_ENV += CC="$(CC)"
474N/ACOMPONENT_TEST_ENV += CXX="$(CXX)"
474N/A
474N/ACOMPONENT_TEST_TARGETS = test
474N/A
474N/A# common targets
474N/A
474N/Abuild: $(BUILD_32)
474N/A
474N/Ainstall: $(INSTALL_32)
474N/A
474N/A# expected failure: CTestTestUpload
474N/Atest: $(TEST_32)
474N/A
474N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
474N/A
474N/Ainclude $(WS_TOP)/make-rules/depend.mk
474N/A