3 # This file taken and modified from nss-gns.
5 # nss-gns is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
10 # nss-gns is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with nss-gns; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 AM_LDFLAGS=-avoid-version -module -export-dynamic
25 LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool
34 sources = util.c util.h query.h query.c
37 libnss_gns_la_SOURCES= $(sources) nss_gns.c
38 libnss_gns_la_CFLAGS=$(AM_CFLAGS) -D_GNU_SOURCE
39 libnss_gns_la_LDFLAGS=$(AM_LDFLAGS) -shrext .so.2 -Wl,-version-script=$(srcdir)/map-file
41 libnss_gns4_la_SOURCES=$(libnss_gns_la_SOURCES)
42 libnss_gns4_la_CFLAGS=$(libnss_gns_la_CFLAGS) -DNSS_IPV4_ONLY=1
43 libnss_gns4_la_LDFLAGS=$(libnss_gns_la_LDFLAGS)
45 libnss_gns6_la_SOURCES=$(libnss_gns_la_SOURCES)
46 libnss_gns6_la_CFLAGS=$(libnss_gns_la_CFLAGS) -DNSS_IPV6_ONLY=1
47 libnss_gns6_la_LDFLAGS=$(libnss_gns_la_LDFLAGS)
50 $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool --finish $(nssdir)
51 $(SUDO_BINARY) rm -f $(nssdir)/libnss_gns.la $(nssdir)/libnss_gns4.la $(nssdir)/libnss_gns6.la
54 $(SUDO_BINARY) rm -f $(nssdir)/libnss_gns.so.2 $(nssdir)/libnss_gns4.so.2 $(nssdir)/libnss_gns6.so.2