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