Makefile revision 5957
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# The contents of this file are subject to the terms of the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Common Development and Distribution License (the "License").
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# You may not use this file except in compliance with the License.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# or http://www.opensolaris.org/os/licensing.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# See the License for the specific language governing permissions
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# and limitations under the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# When distributing Covered Code, include this CDDL HEADER in each
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER END
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterHUMAN_VERSION= $(COMPONENT_VERSION)p$(COMPONENT_PATCH_VERSION)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(HUMAN_VERSION)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater sha256:81d20c06a0b01abe3b84fac092185bf014252d38fe5e7b2758f604680a0220dc
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_ARCHIVE_URL= http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# NTP tests log results in separate files. Instead of geting the output
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# of the build and test and deleting the extra lines, it is easier to just
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# cat together all of the logs. The test TEST_PROGNAME3 tests the system
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# log facility, so we have to get rid of the output because the pid is
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# different every time.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# In addition, we append the config.h file so we know if the configuration
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# ever changes. We get rid of the version number which changes every time
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# we upgrade and the system string and endian info which is different between
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# intel and SPARC.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt print "\#!/bin/sh" > $(COMPONENT_TEST_TRANSFORM_CMD); \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt print '$(FIND) $(BUILD_DIR_64) -name test-\*.log | sort |\\' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt >> $(COMPONENT_TEST_TRANSFORM_CMD); \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater print ' xargs cat | grep -v TEST_PROGNAME3 \\' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt >> $(COMPONENT_TEST_TRANSFORM_CMD); \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt >> $(COMPONENT_TEST_TRANSFORM_CMD); \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt >> $(COMPONENT_TEST_TRANSFORM_CMD); \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt print 'grep -v VERSION | grep -v STR_SYSTEM | grep -v ENDIAN \\' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt >> $(COMPONENT_TEST_TRANSFORM_CMD); \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt >> $(COMPONENT_TEST_TRANSFORM_CMD); \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterPATCH_LEVEL = 0
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterTEST_TARGET= build $(TEST_64)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude $(WS_MAKE_RULES)/common.mk
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterstudio_C99MODE= $(studio_C99_ENABLE)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCFLAGS.studio.i386 = -preserve_argvalues=complete
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_BINDIR.64 = $(USRSBINDIR)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCONFIGURE_OPTIONS += --with-binsubdir=sbin
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/inet
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCONFIGURE_OPTIONS += --enable-all-clocks
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-debugging
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-debug-timing
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --disable-optional-args
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-parse-clocks
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-ignore-dns-errors
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --without-ntpsnmpd
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --with-openssl-libdir=$(LIBDIR)/$(MACH64)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --disable-problem-tests
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntREQUIRED_PACKAGES += library/libedit
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntREQUIRED_PACKAGES += library/security/openssl
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntREQUIRED_PACKAGES += $(PERL_PKG)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterREQUIRED_PACKAGES += service/network/dns/mdns
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterREQUIRED_PACKAGES += shell/ksh93
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntREQUIRED_PACKAGES += system/core-os
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntREQUIRED_PACKAGES += system/library/math
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterREQUIRED_PACKAGES += system/library/security/crypto