components/check/Makefile
author Stacy Yeh <stacy.yeh@oracle.com>
Thu, 21 May 2015 13:48:49 -0700
changeset 4339 6501cf9c29f9
parent 4065 15a3200fff2d
child 4747 0e43ac303e45
permissions -rw-r--r--
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		check
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	0.9.14
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://check.sourceforge.net/
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:c272624645b1b738cf57fd5d81a3e4d9b722b99d6133ee3f3c4007d4d279840a
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/check
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
TPNO=			19836
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# Several tests fail when the Studio compiler is used.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPILER =      gcc
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
CC +=		$(CC_BITS)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
# Master test results are the same for 32-bit and 64-bit, so override
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# here, rather than create multiple identical master files.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
# common targets
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
build:		$(BUILD_32_and_64)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
install:	$(INSTALL_32_and_64)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
test:		$(TEST_32_and_64)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4065
diff changeset
    62
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4065
diff changeset
    63
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
REQUIRED_PACKAGES +=	system/library
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
REQUIRED_PACKAGES +=	system/library/math
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
REQUIRED_PACKAGES +=	text/gawk