components/nicstat/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 07 Apr 2015 19:39:47 -0700
changeset 4066 ab220f4ee1f7
child 4339 6501cf9c29f9
permissions -rw-r--r--
PSARC 2014/401 nicstat version 1.95 17257965 Integrate "nicstat" utility into Solaris
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4066
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		nicstat
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	1.95
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_PROJECT_URL=	http://sourceforge.net/projects/nicstat/
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
    sha256:c4cc33f8838f4523f27c3d7584eedbe59f4c587f0821612f5ac2201adc18b367
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)files/$(COMPONENT_ARCHIVE)/download
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_BUGDB=	utility/nicstat
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
TPNO=			20669
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
include $(WS_MAKE_RULES)/prep.mk
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
include $(WS_MAKE_RULES)/justmake.mk
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
include $(WS_MAKE_RULES)/ips.mk
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
COMPONENT_BUILD_ENV +=	CC="$(CC) -m64"
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
COMPONENT_BUILD_ARGS =	-f Makefile.Solaris
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
PATCH_LEVEL =		0
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
# Just get stuff from the build directory.
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
PKG_PROTO_DIRS += $(BUILD_DIR_64)
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
ASLR_MODE = $(ASLR_ENABLE)
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
build:		$(BUILD_64)
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
# Makefile.Solaris is pretty useless for working in Userland.
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
install:	$(BUILD_64)
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
test:		$(NO_TESTS)
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
ab220f4ee1f7 PSARC 2014/401 nicstat version 1.95
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
REQUIRED_PACKAGES += system/library