Makefile revision 2899
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
2362N/A# CDDL HEADER END
2362N/A#
2362N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/APATH = /usr/gnu/bin:/usr/bin
0N/A
0N/ACOMPONENT_NAME= pinentry
0N/ACOMPONENT_VERSION= 0.7.6
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:14670c18f4a042ffcbd7a937aa3f15de392816c56b472588383d8378f65b42ab
0N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/pinentry/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= utility/gnupg
0N/A
0N/ATPNO= 8850
0N/A
0N/Ainclude ../../make-rules/prep.mk
0N/Ainclude ../../make-rules/configure.mk
0N/Ainclude ../../make-rules/ips.mk
0N/A
0N/APATCH_LEVEL = 0
0N/A
0N/A# Enable C99 mode + -Xc for its additional warnings.
0N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
0N/A
0N/A# -xinline=%auto -- we like inlining where appropriate
0N/ACFLAGS += -xinline=%auto
0N/A
0N/A# -xbuiltin=%none -- builtins have been known to be buggy
0N/ACFLAGS += -xbuiltin=%none
0N/A
0N/A# void function cannot return value, unless it's GNU C
0N/ACFLAGS += -features=extinl,extensions
0N/A
0N/ACFLAGS += $(CPP_LARGEFILES)
0N/ACFLAGS += $(XPG6MODE)
0N/ACFLAGS += $(CPP_POSIX)
0N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
0N/ACFLAGS += $(studio_PIC)
0N/A
0N/A# prevent libtool from removing these
0N/ALDFLAGS += -lsocket -lnsl -lpkcs11
0N/ALIBS = -lsocket -lnsl -lpkcs11
0N/A
0N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
0N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
0N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
0N/ACONFIGURE_ENV += LIBS="$(LIBS)"
0N/A
0N/ACONFIGURE_OPTIONS += --localstatedir=/var
0N/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
CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
ASLR_MODE = $(ASLR_ENABLE)
build: $(BUILD_64)
install: $(INSTALL_64)
$(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