Makefile revision 1273
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER START
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# The contents of this file are subject to the terms of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Common Development and Distribution License (the "License").
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You may not use this file except in compliance with the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# or http://www.opensolaris.org/os/licensing.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# See the License for the specific language governing permissions
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# and limitations under the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# If applicable, add the following below this CDDL HEADER, with the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER END
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../../make-rules/shared-macros.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_NAME= libksba
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_VERSION= 1.1.0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/libksba/
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_ARCHIVE_HASH= \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync sha256:d8eb845d7272d23a00d4da6dc65f108ded6a977f32abf4488a075335433769f7
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/libksba/$(COMPONENT_ARCHIVE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_BUGDB= utility/gnupg
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../../make-rules/prep.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../../make-rules/configure.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../../make-rules/ips.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Enable C99 mode + -Xc for its additional warnings.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncstudio_C99MODE = -Xc $(studio_C99_ENABLE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# -xinline=%auto -- we like inlining where appropriate
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += -xinline=%auto
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# -xbuiltin=%none -- builtins have been known to be buggy
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += -xbuiltin=%none
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += $(CPP_LARGEFILES)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += $(XPG6MODE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += $(CPP_POSIX)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += $(CPP_C99_EXTENDED_MATH)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += $(studio_PIC)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_ENV += INSTALL="$(INSTALL)"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_OPTIONS += --localstatedir=/var
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_OPTIONS += --enable-shared
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_OPTIONS += --disable-static
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONFIGURE_OPTIONS += --with-pic
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbuild: $(BUILD_32_and_64)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinstall: $(INSTALL_32_and_64)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest: $(TEST_32_and_64)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../../make-rules/depend.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync