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