components/findutils/Makefile
author Huie-Ying Lee <huieying.lee@oracle.com>
Fri, 20 Dec 2013 12:17:34 -0800
changeset 1612 3f2ec017627f
parent 1191 3bdf33525a13
child 1882 79ab74d321a8
permissions -rw-r--r--
PSARC 2012/335 OpenSSH migration PSARC 2013/115 Shared configuration for SunSSH & OpenSSH 15769261 SUNBT7135649 Deliver OpenSSH 6.0P1 in the userland gate (OpenSSH migration phase 2) 16306216 problem in UTILITY/OPENSSH
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    23
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		findutils
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	4.2.31
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/findutils/
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:e0d34b8faca0b3cca0703f6c6b498afbe72f0ba16c35980c10ec9ef7724d6204
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/pub/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/gnu-findutils
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/configure.mk
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
CONFIGURE_PREFIX =	/usr/gnu
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    45
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    46
# Disable the leaf optimisation feature, because the st_nlinks directory
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    47
# field is incorrect on ZFS file systems.
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS +=	--disable-leaf-optimisation
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1095
diff changeset
    50
ASLR_MODE = $(ASLR_ENABLE)
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1095
diff changeset
    51
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
# common targets
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
build:          $(BUILD_64)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
install:        $(INSTALL_64)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
# findutils tests use dejagnu which isn't currently included in Solaris.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
test:           $(NO_TESTS)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
include ../../make-rules/depend.mk