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