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