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