Makefile revision 1273
335N/A#
335N/A# CDDL HEADER START
335N/A#
335N/A# The contents of this file are subject to the terms of the
335N/A# Common Development and Distribution License (the "License").
335N/A# You may not use this file except in compliance with the License.
335N/A#
335N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
335N/A# or http://www.opensolaris.org/os/licensing.
335N/A# See the License for the specific language governing permissions
335N/A# and limitations under the License.
335N/A#
335N/A# When distributing Covered Code, include this CDDL HEADER in each
335N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
335N/A# If applicable, add the following below this CDDL HEADER, with the
335N/A# fields enclosed by brackets "[]" replaced with your own identifying
335N/A# information: Portions Copyright [yyyy] [name of copyright owner]
335N/A#
335N/A# CDDL HEADER END
335N/A#
335N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
335N/A#
335N/Ainclude ../../make-rules/shared-macros.mk
335N/A
335N/ACOMPONENT_NAME= pth
335N/ACOMPONENT_VERSION= 2.0.7
335N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
335N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/pth/
335N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
335N/ACOMPONENT_ARCHIVE_HASH= \
335N/A sha256:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
335N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/pth/$(COMPONENT_ARCHIVE)
335N/ACOMPONENT_BUGDB= library/pth
335N/A
335N/Ainclude ../../make-rules/prep.mk
335N/Ainclude ../../make-rules/configure.mk
335N/Ainclude ../../make-rules/ips.mk
335N/A
335N/APATCH_LEVEL = 0
335N/A
335N/A# Enable C99 mode + -Xc for its additional warnings.
335N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
335N/A
335N/A# -xinline=%auto -- we like inlining where appropriate
335N/ACFLAGS += -xinline=%auto
335N/A
335N/A# -xbuiltin=%none -- builtins have been known to be buggy
335N/ACFLAGS += -xbuiltin=%none
335N/A
335N/ACFLAGS += $(CPP_LARGEFILES)
335N/ACFLAGS += $(XPG6MODE)
335N/ACFLAGS += $(CPP_POSIX)
335N/ACFLAGS += $(studio_PIC)
335N/A
335N/ACPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
335N/A
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)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk