Makefile revision 3477
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER START
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# The contents of this file are subject to the terms of the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Common Development and Distribution License (the "License").
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You may not use this file except in compliance with the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# or http://www.opensolaris.org/os/licensing.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# See the License for the specific language governing permissions
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# and limitations under the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER END
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
f41405d21249e11c1636301b1324ac1937b455aaMark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrewsinclude ../../make-rules/shared-macros.mk
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_NAME= cmake
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_VERSION= 2.8.6
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews sha256:e6999b81ac367d85ffb0f69b6c4a0ef96f95dc154efd3592f9cfebacdf75728e
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v2.8/$(COMPONENT_ARCHIVE)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_PROJECT_URL= http://www.cmake.org/
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_BUGDB= utility/cmake
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsTPNO= 6581
33518843817dd9cf127eb09c5952227f1972af55Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsinclude $(WS_TOP)/make-rules/prep.mk
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsinclude $(WS_TOP)/make-rules/configure.mk
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsinclude $(WS_TOP)/make-rules/ips.mk
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Need to remove this option from LD_OPTIONS (only affects sparc build);
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# it causes a SegFault failure in kwsys/testSystemInformation
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# when testing on sparc
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsLD_MAP_NOEXBSS=
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsLDFLAGS += $($(COMPILER)_NORUNPATH)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# We need these in the environment, although they are already passed
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_ENV += CC="$(CC)"
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_ENV += CXX="$(CXX)"
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
d39690e5a9b4a9a084d984abd193bed4395db41aDavid LawrenceCONFIGURE_ENV += MAKE="$(GMAKE)"
d39690e5a9b4a9a084d984abd193bed4395db41aDavid Lawrence
105f5a65b1f680f4cb6f897b8b0f7ee7e09e41ebDavid Lawrence# Use system-installed third-party libraries, rather than the private
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# copies in the cmake source. Only libarchive will come from the cmake
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# source, since it is not currently part of Solaris.
88b3bc12b5570aae77e5963204e9111a2875915eAndreas GustafssonCONFIGURE_OPTIONS += --system-curl
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --system-expat
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --system-zlib
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --system-bzip2
e2bb1e3de4d132b82005eca9fb30a5edbe8745e4Andreas Gustafsson
b0ec080043c586a6be6a7f88151d7df61fd22009Andreas GustafssonCOMPONENT_BUILD_ENV += CC="$(CC)"
c05a979fda35c83d7fba16fee7859644e98a7450Mark AndrewsCOMPONENT_BUILD_ENV += CXX="$(CXX)"
c05a979fda35c83d7fba16fee7859644e98a7450Mark AndrewsCOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
2a313f56e78e19ae6dc2315bb53bd32fad13ae29Mark AndrewsCOMPONENT_BUILD_ENV += MAKE="$(GMAKE)"
fcb54ce0a4f7377486df5bec83b3aa4711bf4131Mark AndrewsCOMPONENT_BUILD_TARGETS = all
60c2c8814f838f503333da5b2fd7e6792ca39c14Mark Andrews
c58088e3a0fd9e553db750cd4b08d3e621d0ded4Mark AndrewsASLR_MODE = $(ASLR_ENABLE)
b9858c2efcee324745a1b8d7b099baf540bc695bMark Andrews
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews# Need C and C++ compiler locations for cmake tests
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark AndrewsCOMPONENT_TEST_ENV += CC="$(CC)"
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark AndrewsCOMPONENT_TEST_ENV += CXX="$(CXX)"
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews
a69a77ddfef58e93036cf6173dc7f91ed864d103Mark AndrewsCOMPONENT_TEST_TARGETS = test
ea37c1a7780311cc7076ff54f09774b2296aebe5Mark Andrews
de90c0b2efac159580365beaa761a14bdb74330cMark Andrews# common targets
49aa1303a7cf1ec2a06cde11e46a039dddfca8feMark Andrews
e20eae14fc554bae394f535067e80884b59d0684Mark Andrewsconfigure: $(CONFIGURE_32)
e03d4ecce3b62bb0a02d2f5e2cc1a9549df08498Mark Andrews
e03d4ecce3b62bb0a02d2f5e2cc1a9549df08498Mark Andrewsbuild: $(BUILD_32)
install: $(INSTALL_32)
# expected failure: CTestTestUpload
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk