Makefile revision 4328
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# CDDL HEADER START
754cb8a2b33fa6cfaa15d6470f66e5fb0eab4764Automatic Updater#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# The contents of this file are subject to the terms of the
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Common Development and Distribution License (the "License").
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You may not use this file except in compliance with the License.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
754cb8a2b33fa6cfaa15d6470f66e5fb0eab4764Automatic Updater#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceinclude ../../make-rules/shared-macros.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_NAME= libksba
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_VERSION= 1.3.2
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/libksba/
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_ARCHIVE_HASH= \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley sha256:eb95537955dfc2845690a4cc3836074fa6d0a2c2ca2cbf1759364d3bd9868406
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/libksba/$(COMPONENT_ARCHIVE)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_BUGDB= utility/gnupg
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceTPNO= 21897
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceinclude $(WS_MAKE_RULES)/prep.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude $(WS_MAKE_RULES)/configure.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude $(WS_MAKE_RULES)/ips.mk
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Enable C99 mode + -Xc for its additional warnings.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrencestudio_C99MODE = -Xc $(studio_C99_ENABLE)
fcb54ce0a4f7377486df5bec83b3aa4711bf4131Mark Andrews
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# -xinline=%auto -- we like inlining where appropriate
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCFLAGS += -xinline=%auto
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# -xbuiltin=%none -- builtins have been known to be buggy
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCFLAGS += -xbuiltin=%none
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCFLAGS += $(CPP_LARGEFILES)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCFLAGS += $(XPG6MODE)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCFLAGS += $(CPP_POSIX)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCFLAGS += $(CPP_C99_EXTENDED_MATH)
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCFLAGS += $(studio_PIC)
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCONFIGURE_ENV += INSTALL="$(INSTALL)"
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCONFIGURE_OPTIONS += --localstatedir=/var
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCONFIGURE_OPTIONS += --enable-shared
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCONFIGURE_OPTIONS += --disable-static
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCONFIGURE_OPTIONS += --disable-silent-rules
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
596912ee9ca8eb14d30707ec286ab5d28bd39b3eMark AndrewsCONFIGURE_OPTIONS += --with-pic
8319af16557b81eba3277ee67215285f0823b587Mark Andrews
8319af16557b81eba3277ee67215285f0823b587Mark Andrewsbuild: $(BUILD_32_and_64)
aee5e9cbacd8f88325840b8a498876f4319b0890Mark Andrews
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrenceinstall: $(INSTALL_32_and_64)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrencetest: $(TEST_32_and_64)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
c32b87bc54abacf95fb3b063d72b7d1855c1643bMichael GraffBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceREQUIRED_PACKAGES += library/security/libgpg-error
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceREQUIRED_PACKAGES += shell/ksh93
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceREQUIRED_PACKAGES += system/library
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence