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