Makefile revision 5177
1754N/A#
1754N/A# CDDL HEADER START
1754N/A#
1754N/A# The contents of this file are subject to the terms of the
1754N/A# Common Development and Distribution License (the "License").
1754N/A# You may not use this file except in compliance with the License.
1754N/A#
1754N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1754N/A# or http://www.opensolaris.org/os/licensing.
1754N/A# See the License for the specific language governing permissions
1754N/A# and limitations under the License.
1754N/A#
1754N/A# When distributing Covered Code, include this CDDL HEADER in each
1754N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1754N/A# If applicable, add the following below this CDDL HEADER, with the
1754N/A# fields enclosed by brackets "[]" replaced with your own identifying
1754N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1754N/A#
1754N/A# CDDL HEADER END
1754N/A#
1754N/A
1754N/A#
1754N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
1754N/A#
1754N/A
1754N/Ainclude ../../make-rules/shared-macros.mk
1754N/A
1754N/ACOMPONENT_NAME= check
1754N/ACOMPONENT_VERSION= 0.9.14
1754N/ACOMPONENT_PROJECT_URL= http://check.sourceforge.net/
1754N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1754N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1754N/ACOMPONENT_ARCHIVE_HASH= \
1754N/A sha256:c272624645b1b738cf57fd5d81a3e4d9b722b99d6133ee3f3c4007d4d279840a
1754N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1754N/ACOMPONENT_BUGDB= utility/check
1754N/A
1754N/ATPNO= 19836
1754N/A
1754N/Ainclude $(WS_MAKE_RULES)/prep.mk
1754N/Ainclude $(WS_MAKE_RULES)/configure.mk
1754N/Ainclude $(WS_MAKE_RULES)/ips.mk
1938N/A
1754N/A# Several tests fail when the Studio compiler is used.
1754N/ACOMPILER = gcc
1754N/A
1754N/ACC += $(CC_BITS)
1754N/A
1754N/A# Override tests in m4/acx_pthread.m4 that try to set obsolete/incompatible
1754N/A# flags for linking threaded code on Solaris.
1754N/APTHREAD_CFLAGS = -D__EXTENSIONS__
1754N/Aifeq ($(BUILD_TYPE), evaluation)
1754N/A# No longer needed on S12 due to PSARC/2014/019, but still needed on S11
1754N/APTHREAD_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
1754N/Aendif
1754N/ACONFIGURE_OPTIONS += PTHREAD_CFLAGS="$(PTHREAD_CFLAGS)"
1754N/ACONFIGURE_OPTIONS += PTHREAD_LIBS="-lc"
1754N/A
# Master test results are the same for 32-bit and 64-bit, so override
# here, rather than create multiple identical master files.
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
COMPONENT_TEST_TRANSFORMS += \
'-n ' \
'-e "/passed/p" ' \
'-e "/failed/p" ' \
'-e "/Checks:/p" ' \
'-e "/Total:/p" ' \
'-e "/Passed/p" ' \
'-e "/Failed/p" ' \
'-e "/Failure expected/p" ' \
'-e "/SKIP/p" ' \
'-e "/PASS/p" ' \
'-e "/FAIL/p" '
COMPONENT_SYSTEM_TEST_ENV = CHECKMK_SCRIPT=/usr/bin/checkmk
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
system-test: configure $(SYSTEM_TEST_32_and_64)
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += text/gawk