Makefile revision 3661
230N/A#
230N/A# CDDL HEADER START
230N/A#
230N/A# The contents of this file are subject to the terms of the
230N/A# Common Development and Distribution License (the "License").
230N/A# You may not use this file except in compliance with the License.
230N/A#
230N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
230N/A# or http://www.opensolaris.org/os/licensing.
230N/A# See the License for the specific language governing permissions
230N/A# and limitations under the License.
230N/A#
230N/A# When distributing Covered Code, include this CDDL HEADER in each
230N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
230N/A# If applicable, add the following below this CDDL HEADER, with the
230N/A# fields enclosed by brackets "[]" replaced with your own identifying
230N/A# information: Portions Copyright [yyyy] [name of copyright owner]
230N/A#
230N/A# CDDL HEADER END
230N/A#
230N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3996N/A#
230N/Ainclude ../../make-rules/shared-macros.mk
230N/A
230N/APATH = /usr/gnu/bin:/usr/bin
230N/A
230N/ACOMPONENT_NAME= pinentry
5228N/ACOMPONENT_VERSION= 0.7.6
230N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
230N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5228N/ACOMPONENT_ARCHIVE_HASH= \
230N/A sha256:14670c18f4a042ffcbd7a937aa3f15de392816c56b472588383d8378f65b42ab
618N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/pinentry/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/gnupg
230N/A
5228N/ATPNO= 8850
3661N/A
3996N/Ainclude ../../make-rules/prep.mk
3996N/Ainclude ../../make-rules/configure.mk
3996N/Ainclude ../../make-rules/ips.mk
3996N/A
230N/APATCH_LEVEL = 0
230N/A
230N/A# Enable C99 mode + -Xc for its additional warnings.
230N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
230N/A
230N/A# -xinline=%auto -- we like inlining where appropriate
230N/ACFLAGS += -xinline=%auto
230N/A
230N/A# -xbuiltin=%none -- builtins have been known to be buggy
230N/ACFLAGS += -xbuiltin=%none
230N/A
230N/A# void function cannot return value, unless it's GNU C
230N/ACFLAGS += -features=extinl,extensions
230N/A
230N/ACFLAGS += $(CPP_LARGEFILES)
230N/ACFLAGS += $(XPG6MODE)
230N/ACFLAGS += $(CPP_POSIX)
230N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
230N/ACFLAGS += $(studio_PIC)
230N/A
230N/A# prevent libtool from removing these
230N/ALDFLAGS += -lsocket -lnsl -lpkcs11
230N/ALIBS = -lsocket -lnsl -lpkcs11
230N/A
230N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
230N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
230N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
230N/ACONFIGURE_ENV += LIBS="$(LIBS)"
230N/A
230N/ACONFIGURE_OPTIONS += --localstatedir=/var
230N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
230N/ACONFIGURE_OPTIONS += --enable-pinentry-curses
230N/ACONFIGURE_OPTIONS += --enable-pinentry-gtk2
230N/ACONFIGURE_OPTIONS += --disable-glibtest
230N/ACONFIGURE_OPTIONS += --disable-gtktest
230N/ACONFIGURE_OPTIONS += --enable-threading
230N/ACONFIGURE_OPTIONS += --disable-pinentry-gtk
230N/ACONFIGURE_OPTIONS += --disable-pinentry-qt
230N/ACONFIGURE_OPTIONS += --disable-ncurses
230N/A
230N/AASLR_MODE = $(ASLR_ENABLE)
230N/A
230N/Abuild: $(BUILD_32)
230N/A
230N/Ainstall: $(INSTALL_32)
230N/A $(MKDIR) $(PROTOUSRLIBDIR)
230N/A if test -f $(PROTOUSRBINDIR)/pinentry-curses ; then \
230N/A $(MV) $(PROTOUSRBINDIR)/pinentry-curses $(PROTOUSRLIBDIR)/ ; fi
230N/A if test -f $(PROTOUSRBINDIR)/pinentry-gtk-2 ; then \
230N/A $(MV) $(PROTOUSRBINDIR)/pinentry-gtk-2 $(PROTOUSRLIBDIR)/ ; fi
230N/A cd $(PROTOUSRLIBDIR) && ln -sf pinentry-gtk-2 pinentry
230N/A
230N/Atest: $(NO_TESTS)
230N/A
230N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
230N/A
230N/Ainclude ../../make-rules/depend.mk
230N/A
230N/A