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