Makefile revision 4663
3d78993c6d415f600f57520d1566627b5535d715Mark Andrews#
3d78993c6d415f600f57520d1566627b5535d715Mark Andrews# CDDL HEADER START
3d78993c6d415f600f57520d1566627b5535d715Mark Andrews#
8c850a29eda020642c84038e449d60f124c6123bMark Andrews# The contents of this file are subject to the terms of the
8c850a29eda020642c84038e449d60f124c6123bMark Andrews# Common Development and Distribution License (the "License").
8c850a29eda020642c84038e449d60f124c6123bMark Andrews# You may not use this file except in compliance with the License.
da31aff2f2a2163dafeea65c63f16d8f3fca05c5Mark Andrews#
da31aff2f2a2163dafeea65c63f16d8f3fca05c5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da31aff2f2a2163dafeea65c63f16d8f3fca05c5Mark Andrews# or http://www.opensolaris.org/os/licensing.
da31aff2f2a2163dafeea65c63f16d8f3fca05c5Mark Andrews# See the License for the specific language governing permissions
e8ca2abed76b550fd3baddcfb17f2c9a630d6b71Mark Andrews# and limitations under the License.
e8ca2abed76b550fd3baddcfb17f2c9a630d6b71Mark Andrews#
e8ca2abed76b550fd3baddcfb17f2c9a630d6b71Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
81d9d7a10e52b421d7f4784c48ae995b13203c59Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
81d9d7a10e52b421d7f4784c48ae995b13203c59Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
81d9d7a10e52b421d7f4784c48ae995b13203c59Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
301f6ffbbeabcbf765f8163f4ffb7f6f0146b926Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
301f6ffbbeabcbf765f8163f4ffb7f6f0146b926Mark Andrews#
9e4b25fc3eb5777202147634d789345d893b4539Mark Andrews# CDDL HEADER END
9e4b25fc3eb5777202147634d789345d893b4539Mark Andrews#
9e4b25fc3eb5777202147634d789345d893b4539Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
7314547af7aa1dd25d690dd3f034d49e5cc8fa9dMark Andrews#
7314547af7aa1dd25d690dd3f034d49e5cc8fa9dMark Andrewsinclude ../../make-rules/shared-macros.mk
541b9722d8031485922ab11221c2e747c0262cf5Mark Andrews
541b9722d8031485922ab11221c2e747c0262cf5Mark AndrewsPATH = /usr/gnu/bin:/usr/bin
541b9722d8031485922ab11221c2e747c0262cf5Mark Andrews
ddaeaddf2b9148ce3e6ec5fecc48f64ea5826faeMark AndrewsCOMPONENT_NAME= gpgme
ddaeaddf2b9148ce3e6ec5fecc48f64ea5826faeMark AndrewsCOMPONENT_VERSION= 1.5.3
ddaeaddf2b9148ce3e6ec5fecc48f64ea5826faeMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a6f7fdcc039de75e9a20da90044caa814f0357a3Michael GraffCOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/gpgme/
a6f7fdcc039de75e9a20da90044caa814f0357a3Michael GraffCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
d7e8610d31d83ff863e8b2dc05c238376c35e949Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
d7e8610d31d83ff863e8b2dc05c238376c35e949Mark Andrews sha256:0db040c5b07e69cfe9a0b4566c8e90151ebacfe122c97c452f11386654aefcc9
d7e8610d31d83ff863e8b2dc05c238376c35e949Mark AndrewsCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gpgme/$(COMPONENT_ARCHIVE)
7e8214191899dc8043babdfbe9235ba14c825005Mark AndrewsCOMPONENT_BUGDB= utility/gnupg
7e8214191899dc8043babdfbe9235ba14c825005Mark Andrews
c4dc5966e0a66f4d75677f1634eff3b45baf988eMark AndrewsTPNO= 21167
c4dc5966e0a66f4d75677f1634eff3b45baf988eMark Andrews
c4dc5966e0a66f4d75677f1634eff3b45baf988eMark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
9429f5a8318bd2142280c949d4af05998ca348a2Evan Huntinclude $(WS_MAKE_RULES)/configure.mk
9429f5a8318bd2142280c949d4af05998ca348a2Evan Huntinclude $(WS_MAKE_RULES)/ips.mk
0899d16ebd6a70bb027e7899c53e7f542ebc987bEvan Hunt
0899d16ebd6a70bb027e7899c53e7f542ebc987bEvan HuntPATCH_LEVEL = 0
0899d16ebd6a70bb027e7899c53e7f542ebc987bEvan Hunt
0899d16ebd6a70bb027e7899c53e7f542ebc987bEvan Hunt# Enable C99 mode + -Xc for its additional warnings.
d2e440ca30f27468443ccc7e21db0b8e10c4faf8Mark Andrewsstudio_C99MODE = -Xc $(studio_C99_ENABLE)
d2e440ca30f27468443ccc7e21db0b8e10c4faf8Mark Andrews
d2e440ca30f27468443ccc7e21db0b8e10c4faf8Mark Andrews# -xinline=%auto -- we like inlining where appropriate
404df30f4fcbd318dd1e3cc027d2b5abff3ab6d5Mark AndrewsCFLAGS += -xinline=%auto
404df30f4fcbd318dd1e3cc027d2b5abff3ab6d5Mark Andrews
404df30f4fcbd318dd1e3cc027d2b5abff3ab6d5Mark Andrews# -xbuiltin=%none -- builtins have been known to be buggy
544d0efa38490d67e458aa9c23a7dac2a9d546bfMark AndrewsCFLAGS += -xbuiltin=%none
544d0efa38490d67e458aa9c23a7dac2a9d546bfMark Andrews
1f2635d3f7b3f0b3bf0d0310fe880d95e84f09fcMark AndrewsCFLAGS += $(CPP_LARGEFILES)
1f2635d3f7b3f0b3bf0d0310fe880d95e84f09fcMark AndrewsCFLAGS += $(XPG6MODE)
1f2635d3f7b3f0b3bf0d0310fe880d95e84f09fcMark AndrewsCFLAGS += $(CPP_POSIX)
802760773ca5224b29a610741a7f2e0a7d6e031bMark AndrewsCFLAGS += $(CPP_C99_EXTENDED_MATH)
802760773ca5224b29a610741a7f2e0a7d6e031bMark AndrewsCFLAGS += $(studio_PIC)
802760773ca5224b29a610741a7f2e0a7d6e031bMark Andrews
b6d496d53851e5ab5ba82e800062a431b05310cbEvan HuntCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
b6d496d53851e5ab5ba82e800062a431b05310cbEvan HuntCONFIGURE_ENV += INSTALL="$(INSTALL)"
67213ca3d0594588a6fac32d8188efc68b0ad572Shane Kerr
d55494b8e9887e7ff7cdf1ec96a9dc5e8afe3c94Shane KerrCONFIGURE_OPTIONS += --localstatedir=/var
d813808a01d5629110b8df483ccc2dff9ec2a84fMark AndrewsCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
67213ca3d0594588a6fac32d8188efc68b0ad572Shane KerrCONFIGURE_OPTIONS += --enable-shared
67213ca3d0594588a6fac32d8188efc68b0ad572Shane KerrCONFIGURE_OPTIONS += --disable-static
d813808a01d5629110b8df483ccc2dff9ec2a84fMark AndrewsCONFIGURE_OPTIONS += --disable-silent-rules
d813808a01d5629110b8df483ccc2dff9ec2a84fMark AndrewsCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
33170a4b2b2765583df543efbb13a01e7b664037Mark AndrewsCONFIGURE_OPTIONS += --enable-largefile
33170a4b2b2765583df543efbb13a01e7b664037Mark AndrewsCONFIGURE_OPTIONS += --enable-gpg-test
33170a4b2b2765583df543efbb13a01e7b664037Mark AndrewsCONFIGURE_OPTIONS += --enable-gpgsm-test
2cc262c0932a193b261e6e6a172855bd8f898c6dMark AndrewsCONFIGURE_OPTIONS += --enable-gpgconf-test
2cc262c0932a193b261e6e6a172855bd8f898c6dMark AndrewsCONFIGURE_OPTIONS += --with-libgpg-error-prefix=$(CONFIGURE_PREFIX)
2cc262c0932a193b261e6e6a172855bd8f898c6dMark AndrewsCONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
76a378884f628f9b23bff16490e39dcd69b6ef0eMark AndrewsCONFIGURE_OPTIONS += --with-pic
76a378884f628f9b23bff16490e39dcd69b6ef0eMark Andrews
76a378884f628f9b23bff16490e39dcd69b6ef0eMark AndrewsASLR_MODE = $(ASLR_ENABLE)
03745451370778a867e46fdbe315eb958745a391Mark Andrews
03745451370778a867e46fdbe315eb958745a391Mark Andrewsbuild: $(BUILD_32_and_64)
f183f4c0cd40354f423bdb129e7a0c9badb5082cMark Andrews
f183f4c0cd40354f423bdb129e7a0c9badb5082cMark Andrewsinstall: $(INSTALL_32_and_64)
f183f4c0cd40354f423bdb129e7a0c9badb5082cMark Andrews
f183f4c0cd40354f423bdb129e7a0c9badb5082cMark Andrews# Although building and running the GpgME tests is enabled, GpgME's
f183f4c0cd40354f423bdb129e7a0c9badb5082cMark Andrews# Test Harness is not suitable for running in an automated test
e9908a145e763591bb407a4cd3d2062c7bc94cd8Mark Andrews# environment. The GpgME tests require interactive, manual input
71f4918fd8a5ec4f0a05aac657b614fdf2467bebMark Andrews# from the tty as well as system configuration changes.
71f4918fd8a5ec4f0a05aac657b614fdf2467bebMark Andrews# The GpgME Test Harness can only be run manually, and interactively
873a2046fb73aee49934d7978efe3da6509faed3Evan Hunt# from a terminal.
dabe7f50bb61d75841b535b91edb8f323f82f826Evan Hunttest: $(NO_TESTS)
a1e2170ad5c5018fbe8f7b8449d8885d5d298e88Mark Andrews
a1e2170ad5c5018fbe8f7b8449d8885d5d298e88Mark AndrewsREQUIRED_PACKAGES += library/security/libgpg-error
a1e2170ad5c5018fbe8f7b8449d8885d5d298e88Mark AndrewsREQUIRED_PACKAGES += library/security/libassuan
a1e2170ad5c5018fbe8f7b8449d8885d5d298e88Mark AndrewsREQUIRED_PACKAGES += shell/ksh93
a1e2170ad5c5018fbe8f7b8449d8885d5d298e88Mark AndrewsREQUIRED_PACKAGES += system/library
a1e2170ad5c5018fbe8f7b8449d8885d5d298e88Mark AndrewsREQUIRED_PACKAGES += system/linker
a1e2170ad5c5018fbe8f7b8449d8885d5d298e88Mark Andrews