Makefile revision 5680
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
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.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
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#
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#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER END
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User# gnupth only delivers scripts that embed paths, so prefer 32-bit.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterBUILD_BITS= 32_and_64
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../make-rules/shared-macros.mk
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_NAME= pth
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_VERSION= 2.0.7
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater sha256:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_BUGDB= library/pth
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox UserTPNO= 8899
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude $(WS_MAKE_RULES)/gnu-component.mk
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterPATCH_LEVEL = 0
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Enable C99 mode + -Xc for its additional warnings.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterstudio_C99MODE = -Xc $(studio_C99_ENABLE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# -xinline=%auto -- we like inlining where appropriate
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += -xinline=%auto
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# -xbuiltin=%none -- builtins have been known to be buggy
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCFLAGS += -xbuiltin=%none
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += $(CPP_LARGEFILES)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += $(XPG6MODE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += $(CPP_POSIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += $(studio_PIC)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLDFLAGS = -lpthread -lposix4 -lrt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --with-pic
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCONFIGURE_ENV += INSTALL="$(INSTALL)"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMPONENT_TEST_TRANSFORMS += \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater '-e "s|\(^Pth:\).*|\1|" '
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterREQUIRED_PACKAGES += shell/ksh93
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User