fix compiler warning for format string
[oweals/gnunet.git] / src / gns / nss / Makefile.am
1 # This Makefile.am is in the public domain
2 # $Id$
3 #
4 # This file taken and modified from nss-gns.
5 #
6 # nss-gns is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; either version 3 of the
9 # License, or (at your option) any later version.
10 #
11 # nss-gns is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with nss-gns; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 # USA.
20
21 EXTRA_DIST = map-file \
22   install-nss-plugin.sh \
23   uninstall-nss-plugin.sh
24
25 AM_LDFLAGS=-avoid-version -module -export-dynamic
26
27 nssdir = $(NSS_DIR)
28
29 LIBTOOL = $(LIBTOOL_SUDO_BINARY) $(SHELL) $(top_builddir)/libtool
30
31 if !MINGW
32 if INSTALL_NSS
33 nss_LTLIBRARIES = \
34         libnss_gns.la \
35         libnss_gns4.la \
36         libnss_gns6.la
37
38 install-nssLTLIBRARIES:
39         LIBTOOL_SUDO_BINARY=$(SUDO_BINARY)
40 uninstall-nssLTLIBRARIES:
41         LIBTOOL_SUDO_BINARY=$(SUDO_BINARY)
42 endif
43 endif
44
45 sources = nss_gns_query.h nss_gns_query.c
46
47 # GNU Libc
48 libnss_gns_la_SOURCES= $(sources) nss_gns.c
49 libnss_gns_la_CFLAGS=$(AM_CFLAGS) -D_GNU_SOURCE
50 libnss_gns_la_LDFLAGS=$(AM_LDFLAGS) -shrext .so.2 -Wl,-version-script=$(srcdir)/map-file
51
52 libnss_gns4_la_SOURCES=$(libnss_gns_la_SOURCES)
53 libnss_gns4_la_CFLAGS=$(libnss_gns_la_CFLAGS) -DNSS_IPV4_ONLY=1
54 libnss_gns4_la_LDFLAGS=$(libnss_gns_la_LDFLAGS)
55
56 libnss_gns6_la_SOURCES=$(libnss_gns_la_SOURCES)
57 libnss_gns6_la_CFLAGS=$(libnss_gns_la_CFLAGS) -DNSS_IPV6_ONLY=1
58 libnss_gns6_la_LDFLAGS=$(libnss_gns_la_LDFLAGS)
59
60 if INSTALL_NSS
61 if !MINGW
62 install-data-hook:
63         $(top_srcdir)/src/gns/nss/install-nss-plugin.sh $(SHELL) $(top_builddir) $(DESTDIR)$(nssdir) $(SUDO_BINARY)
64
65 uninstall-hook:
66         $(top_srcdir)/src/gns/nss/uninstall-nss-plugin.sh $(SHELL) $(top_builddir) "rm -f $(nssdir)/libnss_gns.so.2" $(SUDO_BINARY)
67         $(top_srcdir)/src/gns/nss/uninstall-nss-plugin.sh $(SHELL) $(top_builddir) "rm -f $(nssdir)/libnss_gns4.so.2" $(SUDO_BINARY)
68         $(top_srcdir)/src/gns/nss/uninstall-nss-plugin.sh $(SHELL) $(top_builddir) "rm -f $(nssdir)/libnss_gns6.so.2" $(SUDO_BINARY)
69 endif
70 endif