250N/A#
250N/A# CDDL HEADER START
250N/A#
250N/A# The contents of this file are subject to the terms of the
250N/A# Common Development and Distribution License (the "License").
250N/A# You may not use this file except in compliance with the License.
250N/A#
250N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
250N/A# or http://www.opensolaris.org/os/licensing.
250N/A# See the License for the specific language governing permissions
250N/A# and limitations under the License.
250N/A#
250N/A# When distributing Covered Code, include this CDDL HEADER in each
250N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
250N/A# If applicable, add the following below this CDDL HEADER, with the
250N/A# fields enclosed by brackets "[]" replaced with your own identifying
250N/A# information: Portions Copyright [yyyy] [name of copyright owner]
250N/A#
250N/A# CDDL HEADER END
250N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
250N/A#
250N/Ainclude ../../make-rules/shared-macros.mk
250N/A
250N/ACOMPONENT_NAME= pth
250N/ACOMPONENT_VERSION= 2.0.7
250N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/pth/
250N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
250N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/pth/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= library/pth
250N/A
3661N/ATPNO= 8899
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
250N/A
250N/APATCH_LEVEL = 0
250N/A
250N/A# Enable C99 mode + -Xc for its additional warnings.
250N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
250N/A
250N/A# -xinline=%auto -- we like inlining where appropriate
250N/ACFLAGS += -xinline=%auto
250N/A
250N/A# -xbuiltin=%none -- builtins have been known to be buggy
250N/ACFLAGS += -xbuiltin=%none
250N/A
250N/ACFLAGS += $(CPP_LARGEFILES)
250N/ACFLAGS += $(XPG6MODE)
250N/ACFLAGS += $(CPP_POSIX)
250N/ACFLAGS += $(studio_PIC)
250N/A
250N/ACPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
250N/A
250N/ALDFLAGS = -lpthread -lposix4 -lrt
250N/A
250N/ACONFIGURE_OPTIONS += --localstatedir=/var
250N/ACONFIGURE_OPTIONS += --with-pic
250N/A
250N/ACONFIGURE_ENV += CC="$(CC)"
250N/ACONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
250N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
250N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
250N/ACONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
250N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
250N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
250N/A
250N/Abuild: $(BUILD_32_and_64)
250N/A
250N/Ainstall: $(INSTALL_32_and_64)
250N/A
250N/Atest: $(TEST_32_and_64)
250N/A
3996N/A
250N/A
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library