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