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