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