Makefile revision 844
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder#
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder# CDDL HEADER START
e6d40133bc9f858308654afb1262b8b483ec5922Till Mossakowski#
68b065341b3426cd3ecbdc31c0186090000ae4b6Christian Maeder# The contents of this file are subject to the terms of the
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu# Common Development and Distribution License (the "License").
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder# You may not use this file except in compliance with the License.
3f69b6948966979163bdfe8331c38833d5d90ecdChristian Maeder#
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder# or http://www.opensolaris.org/os/licensing.
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder# See the License for the specific language governing permissions
e6d40133bc9f858308654afb1262b8b483ec5922Till Mossakowski# and limitations under the License.
0095c7efbddd0ffeed6aaf8ec015346be161d819Till Mossakowski#
679d3f541f7a9ede4079e045f7758873bb901872Till Mossakowski# When distributing Covered Code, include this CDDL HEADER in each
e85b224577b78d08ba5c39fe9dcc2e53995454a2Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowski# If applicable, add the following below this CDDL HEADER, with the
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowski# fields enclosed by brackets "[]" replaced with your own identifying
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowski# information: Portions Copyright [yyyy] [name of copyright owner]
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowski#
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowski# CDDL HEADER END
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowski#
14531c6815cafb191a1d48c92e4a1c20c1bedb74Till Mossakowski# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowski#
752f4f9b21f02d0b608444cf6210ada777271d10Till Mossakowskiinclude ../../make-rules/shared-macros.mk
14531c6815cafb191a1d48c92e4a1c20c1bedb74Till Mossakowski
14531c6815cafb191a1d48c92e4a1c20c1bedb74Till MossakowskiCOMPONENT_NAME= libksba
a0ab5a70083f5a9fdf91ea70844717da1f0d157cChristian MaederCOMPONENT_VERSION= 1.1.0
dbc8d3892d2e742bda322d92203b4b09ce10077fChristian MaederCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d7ef0a855b45046ca24270745b843bc797b79fe7Christian MaederCOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/libksba/
d7ef0a855b45046ca24270745b843bc797b79fe7Christian MaederCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
d7ef0a855b45046ca24270745b843bc797b79fe7Christian MaederCOMPONENT_ARCHIVE_HASH= \
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder sha256:d8eb845d7272d23a00d4da6dc65f108ded6a977f32abf4488a075335433769f7
d7ef0a855b45046ca24270745b843bc797b79fe7Christian MaederCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/libksba/$(COMPONENT_ARCHIVE)
c2bfb62683f150951ce995874e46164ba1b8720dMartin Kühl
6fd7710e5577ab99cb1ffab82f9bcf54bac4018bChristian Maederinclude ../../make-rules/prep.mk
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian Maederinclude ../../make-rules/configure.mk
ccd28c25c1aee73a195053e677eca17e20917d84Christian Maederinclude ../../make-rules/ips.mk
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian Maeder
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian Maeder# Enable C99 mode + -Xc for its additional warnings.
c438c79d00fc438f99627e612498744bdc0d0c89Christian Maederstudio_C99MODE = -Xc $(studio_C99_ENABLE)
c438c79d00fc438f99627e612498744bdc0d0c89Christian Maeder
792df0347edab377785d98c63e2be8e2ce0a8bdeChristian Maeder# -xinline=%auto -- we like inlining where appropriate
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian MaederCFLAGS += -xinline=%auto
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder
bf52f113af1263696a1115e46097d787c9323754Christian Maeder# -xbuiltin=%none -- builtins have been known to be buggy
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian MaederCFLAGS += -xbuiltin=%none
d7ef0a855b45046ca24270745b843bc797b79fe7Christian Maeder
2a5b885d9350ec6dd8bc4992ee91d2f68aa592f4Christian MaederCFLAGS += $(CPP_LARGEFILES)
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian MaederCFLAGS += $(XPG6MODE)
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian MaederCFLAGS += $(CPP_POSIX)
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian MaederCFLAGS += $(CPP_C99_EXTENDED_MATH)
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian MaederCFLAGS += $(studio_PIC)
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian Maeder
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian MaederCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
d7ef0a855b45046ca24270745b843bc797b79fe7Christian MaederCONFIGURE_ENV += INSTALL="$(INSTALL)"
9361f31f2c11bcc43289d85af3ccb23e16dd770cChristian Maeder
d7ef0a855b45046ca24270745b843bc797b79fe7Christian MaederCONFIGURE_OPTIONS += --localstatedir=/var
4c4a3329080becd4b81d56396586b740487924cbChristian MaederCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
5cc369fbceee1b13bd0f06e43620c46541d1d4f8Christian MaederCONFIGURE_OPTIONS += --enable-shared
5cc369fbceee1b13bd0f06e43620c46541d1d4f8Christian MaederCONFIGURE_OPTIONS += --disable-static
dbc8d3892d2e742bda322d92203b4b09ce10077fChristian MaederCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
bf52f113af1263696a1115e46097d787c9323754Christian MaederCONFIGURE_OPTIONS += --with-pic
bf52f113af1263696a1115e46097d787c9323754Christian Maeder
68b065341b3426cd3ecbdc31c0186090000ae4b6Christian Maederbuild: $(BUILD_32_and_64)
68b065341b3426cd3ecbdc31c0186090000ae4b6Christian Maeder
bf52f113af1263696a1115e46097d787c9323754Christian Maederinstall: $(INSTALL_32_and_64)
68b065341b3426cd3ecbdc31c0186090000ae4b6Christian Maeder
68b065341b3426cd3ecbdc31c0186090000ae4b6Christian Maedertest: $(TEST_32_and_64)
425a171557bcb5cff81b6569ff61e95a44278616Christian Maeder
425a171557bcb5cff81b6569ff61e95a44278616Christian MaederBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
d183a4514d8a5b6a5d48d15a8dff52d0c96691eaChristian Maeder
9c2dcd68c773575403ff4a1f1341be10b14588b0Christian Maederinclude ../../make-rules/depend.mk
dbc8d3892d2e742bda322d92203b4b09ce10077fChristian Maeder
2a5b885d9350ec6dd8bc4992ee91d2f68aa592f4Christian Maeder