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