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