Makefile revision 3817
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould#
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould# CDDL HEADER START
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould#
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould# The contents of this file are subject to the terms of the
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# Common Development and Distribution License (the "License").
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# You may not use this file except in compliance with the License.
0f5aa157f7c7947699cb72b896da454a43145e36bdilly#
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# or http://www.opensolaris.org/os/licensing.
17702c3e7d673070205000a6359403bb920e10aajoelholdsworth# See the License for the specific language governing permissions
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould# and limitations under the License.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould#
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould# When distributing Covered Code, include this CDDL HEADER in each
17702c3e7d673070205000a6359403bb920e10aajoelholdsworth# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# If applicable, add the following below this CDDL HEADER, with the
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# fields enclosed by brackets "[]" replaced with your own identifying
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# information: Portions Copyright [yyyy] [name of copyright owner]
0f5aa157f7c7947699cb72b896da454a43145e36bdilly#
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# CDDL HEADER END
0f5aa157f7c7947699cb72b896da454a43145e36bdilly#
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0f5aa157f7c7947699cb72b896da454a43145e36bdilly#
0f5aa157f7c7947699cb72b896da454a43145e36bdillyinclude ../../make-rules/shared-macros.mk
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_NAME= libassuan
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_VERSION= 2.0.1
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/libassuan/
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_ARCHIVE_HASH= \
0f5aa157f7c7947699cb72b896da454a43145e36bdilly sha256:1117be532ac41b13790b4756df7fa747d3d04264f7b4544aa9d7ff468a24b457
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/libassuan/$(COMPONENT_ARCHIVE)
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCOMPONENT_BUGDB= utility/gnupg
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyTPNO= 18558
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyinclude $(WS_MAKE_RULES)/prep.mk
0f5aa157f7c7947699cb72b896da454a43145e36bdillyinclude $(WS_MAKE_RULES)/configure.mk
0f5aa157f7c7947699cb72b896da454a43145e36bdillyinclude $(WS_MAKE_RULES)/ips.mk
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# Enable C99 mode + -Xc for its additional warnings.
0f5aa157f7c7947699cb72b896da454a43145e36bdillystudio_C99MODE = -Xc $(studio_C99_ENABLE)
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# -xinline=%auto -- we like inlining where appropriate
17702c3e7d673070205000a6359403bb920e10aajoelholdsworthCFLAGS += -xinline=%auto
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdilly# -xbuiltin=%none -- builtins have been known to be buggy
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCFLAGS += -xbuiltin=%none
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCFLAGS += $(CPP_LARGEFILES)
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCFLAGS += $(XPG6MODE)
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCFLAGS += $(CPP_POSIX)
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCFLAGS += $(CPP_C99_EXTENDED_MATH)
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCFLAGS += $(studio_PIC)
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCONFIGURE_ENV += INSTALL="$(INSTALL)"
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCONFIGURE_OPTIONS += --localstatedir=/var
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCONFIGURE_OPTIONS += --enable-shared
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCONFIGURE_OPTIONS += --disable-static
0f5aa157f7c7947699cb72b896da454a43145e36bdillyCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
17702c3e7d673070205000a6359403bb920e10aajoelholdsworthCONFIGURE_OPTIONS += --with-pic
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyASLR_MODE = $(ASLR_NOT_APPLICABLE)
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyconfigure: $(CONFIGURE_32_and_64)
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillybuild: $(BUILD_32_and_64)
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyinstall: $(INSTALL_32_and_64)
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillytest: $(TEST_32_and_64)
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdilly
2d4aeccc796c90f2301f78b14242ba2e77cef859bdilly
0f5aa157f7c7947699cb72b896da454a43145e36bdillyREQUIRED_PACKAGES += library/security/libgpg-error
2d4aeccc796c90f2301f78b14242ba2e77cef859bdillyREQUIRED_PACKAGES += shell/ksh93
0f5aa157f7c7947699cb72b896da454a43145e36bdillyREQUIRED_PACKAGES += system/library
2d4aeccc796c90f2301f78b14242ba2e77cef859bdilly