components/watch/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 14 Apr 2015 14:58:29 -0700
changeset 4118 14c44fb1869d
child 4339 6501cf9c29f9
permissions -rw-r--r--
PSARC 2014/394 watch version 3.3.10 15701439 SUNBT7025662 we should have the Linux convenient command watch(1) in Solaris
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4118
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
include ../../make-rules/shared-macros.mk
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
COMPONENT_NAME=		procps-ng
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_VERSION=	3.3.10
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	http://sourceforge.net/projects/procps-ng/
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
    sha256:a02e6f98974dfceab79884df902ca3df30b0e9bad6d76aee0fb5dce17f267f04
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)files/Production/$(COMPONENT_ARCHIVE)/download
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_BUGDB=	utility/watch
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
TPNO=			20559
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
include $(WS_MAKE_RULES)/prep.mk
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
include $(WS_MAKE_RULES)/configure.mk
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/ips.mk
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
COMPILER =			gcc
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
CFLAGS +=			-I/usr/include/ncurses
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
CONFIGURE_ENV +=		"CFLAGS=$(CFLAGS)"
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
# Always show the build and link lines for easier debugging.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
COMPONENT_BUILD_ARGS +=		V=1
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
# Don't try to link watch with .../proc/libprocps.la as it's not needed.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
COMPONENT_BUILD_ARGS +=		AM_LDFLAGS=
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
COMPONENT_BUILD_TARGETS =	watch
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
PKG_PROTO_DIRS += $(BUILD_DIR_64)
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
ASLR_MODE = $(ASLR_ENABLE)
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
# common targets
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
build:		$(BUILD_64)
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
# Nothing to install.
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
install:	$(BUILD_64)
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
test:		$(NO_TESTS)
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
REQUIRED_PACKAGES +=	library/ncurses
14c44fb1869d PSARC 2014/394 watch version 3.3.10
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
REQUIRED_PACKAGES +=	system/library