components/cmake/Makefile
author Petr Cvachoucek <petr.cvachoucek@oracle.com>
Tue, 26 Jun 2012 23:39:53 -0700
branchs11-sru
changeset 2298 b90913c3e10b
parent 312 6ca02fd5a199
child 614 db6c0cd206dd
permissions -rw-r--r--
7154506 Solaris 11 snmpd core dumps when proxy option is used in snmpd.conf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
312
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
#
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    23
#
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		cmake
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	2.6.2
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	sha1:48d33afaf23d40f2ea9aa2f5018c7213983222c2
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://www.cmake.org/files/v2.6/$(COMPONENT_ARCHIVE)
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=  http://www.cmake.org/
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    34
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    35
include $(WS_TOP)/make-rules/prep.mk
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    36
include $(WS_TOP)/make-rules/configure.mk
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
include $(WS_TOP)/make-rules/ips.mk
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
# Need to remove this option from LD_OPTIONS (only affects sparc build);
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
# it causes a SegFault failure in kwsys/testSystemInformation
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
# when testing on sparc
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    42
LD_MAP_NOEXBSS=
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    43
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    44
LDFLAGS +=	$($(COMPILER)_NORUNPATH)
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
# We need these in the environment, although they are already passed
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    47
# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    48
CONFIGURE_ENV +=	CC="$(CC)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    49
CONFIGURE_ENV +=	CXX="$(CXX)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    50
CONFIGURE_ENV +=	LDFLAGS="$(LDFLAGS)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    51
CONFIGURE_ENV +=	MAKE="$(GMAKE)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    52
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    53
# CmakeCache-txt is created by configure, so we need to patch
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    54
# it after configure
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    55
COMPONENT_POST_CONFIGURE_ACTION =	( cd $(BUILD_DIR_$(BITS)); \
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    56
	$(GPATCH) $(GPATCH_FLAGS) < \
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    57
	$(COMPONENT_DIR)/patches-post-config/CmakeCache-txt.patch )
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    58
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    59
COMPONENT_BUILD_ENV +=	CC="$(CC)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    60
COMPONENT_BUILD_ENV +=	CXX="$(CXX)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    61
COMPONENT_BUILD_ENV +=	LDFLAGS="$(LDFLAGS)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    62
COMPONENT_BUILD_ENV +=	MAKE="$(GMAKE)"	
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    63
COMPONENT_BUILD_TARGETS =	all
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    64
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    65
COMPONENT_TEST_TARGETS =	test
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    66
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    67
# common targets
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    68
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    69
build:		$(BUILD_32)
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    70
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    71
install:	$(INSTALL_32)
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    72
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    73
# expected failures: curl, complex, complexOneConfig
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    74
test:		$(TEST_32)
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    75
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    76
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    77
6ca02fd5a199 7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    78
include $(WS_TOP)/make-rules/depend.mk