Makefile revision 3661
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# CDDL HEADER START
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# The contents of this file are subject to the terms of the
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Common Development and Distribution License (the "License").
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater# You may not use this file except in compliance with the License.
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews#
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# or http://www.opensolaris.org/os/licensing.
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/shared-macros.mk
7eda3642eea03f1181e41540c7c8791a57759383Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCOMPONENT_NAME= pth
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_VERSION= 2.0.7
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_PROJECT_URL= http://www.gnu.org/software/pth/
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_HASH= \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews sha256:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/pth/$(COMPONENT_ARCHIVE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_BUGDB= library/pth
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTPNO= 8899
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/prep.mk
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updaterinclude ../../make-rules/configure.mk
298c514fff250c1a147176cfbbc1c0ca441d1ea5Automatic Updaterinclude ../../make-rules/ips.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterPATCH_LEVEL = 0
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater# Enable C99 mode + -Xc for its additional warnings.
9d330c054e02f52cefd8dc0e71550b0fe07e077eAutomatic Updaterstudio_C99MODE = -Xc $(studio_C99_ENABLE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater# -xinline=%auto -- we like inlining where appropriate
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += -xinline=%auto
c0b771f68361b073388b85a689c12cbe502880eeAutomatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# -xbuiltin=%none -- builtins have been known to be buggy
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += -xbuiltin=%none
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCFLAGS += $(CPP_LARGEFILES)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCFLAGS += $(XPG6MODE)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCFLAGS += $(CPP_POSIX)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCFLAGS += $(studio_PIC)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsLDFLAGS = -lpthread -lposix4 -lrt
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += --localstatedir=/var
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic UpdaterCONFIGURE_OPTIONS += --with-pic
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_ENV += CC="$(CC)"
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_ENV += INSTALL="$(INSTALL)"
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsbuild: $(BUILD_32_and_64)
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updaterinstall: $(INSTALL_32_and_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewstest: $(TEST_32_and_64)
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterinclude ../../make-rules/depend.mk
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews