"Fossies" - the Fresh Open Source Software Archive

Member "nss-mdns-0.10/src/Makefile.am" (8 Feb 2007, 4628 Bytes) of package /linux/misc/dns/old/nss-mdns-0.10.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # $Id: Makefile.am 114 2007-02-08 16:42:22Z lennart $
    2 #
    3 # This file is part of nss-mdns.
    4 #
    5 # nss-mdns 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.
    9 #
   10 # nss-mdns 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.
   14 #
   15 # You should have received a copy of the GNU Lesser General Public
   16 # License along with nss-mdns; if not, write to the Free Software
   17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
   18 # USA.
   19 
   20 EXTRA_DIST = map-file
   21 
   22 AM_CFLAGS = \
   23 	-DMDNS_ALLOW_FILE=\"$(sysconfdir)/mdns.allow\" \
   24 	-DRESOLV_CONF_FILE=\"$(sysconfdir)/resolv.conf\" \
   25 	-DAVAHI_SOCKET=\"$(localstatedir)/run/avahi-daemon/socket\"
   26 
   27 #AM_CFLAGS += -DNDEBUG=1 -Os
   28 
   29 # This cool debug trap works on i386/gcc only
   30 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
   31 
   32 AM_LDFLAGS=-avoid-version -module -export-dynamic
   33 
   34 lib_LTLIBRARIES = 
   35 
   36 if FREEBSD_NSS
   37 lib_LTLIBRARIES += \
   38 	nss_mdns.la \
   39 	nss_mdns4.la \
   40 	nss_mdns6.la \
   41 	nss_mdns_minimal.la \
   42 	nss_mdns4_minimal.la \
   43 	nss_mdns6_minimal.la
   44 else
   45 lib_LTLIBRARIES += \
   46 	libnss_mdns.la \
   47 	libnss_mdns4.la \
   48 	libnss_mdns6.la \
   49 	libnss_mdns_minimal.la \
   50 	libnss_mdns4_minimal.la \
   51 	libnss_mdns6_minimal.la
   52 endif
   53 
   54 noinst_PROGRAMS = nss-test
   55 sources = util.c util.h
   56 
   57 if ENABLE_AVAHI
   58 sources += avahi.c avahi.h
   59 noinst_PROGRAMS += avahi-test
   60 endif
   61 
   62 if ENABLE_LEGACY
   63 sources += query.c query.h dns.c dns.h
   64 noinst_PROGRAMS += mdns-test
   65 endif
   66 
   67 # GNU Libc
   68 libnss_mdns_la_SOURCES= $(sources) nss.c
   69 libnss_mdns_la_CFLAGS=$(AM_CFLAGS) 
   70 libnss_mdns_la_LDFLAGS=$(AM_LDFLAGS) -shrext .so.2 -Wl,-version-script=$(srcdir)/map-file
   71 
   72 libnss_mdns_minimal_la_SOURCES=$(libnss_mdns_la_SOURCES)
   73 libnss_mdns_minimal_la_CFLAGS=$(libnss_mdns_la_CFLAGS) -DMDNS_MINIMAL
   74 libnss_mdns_minimal_la_LDFLAGS=$(libnss_mdns_la_LDFLAGS)
   75 
   76 libnss_mdns4_la_SOURCES=$(libnss_mdns_la_SOURCES)
   77 libnss_mdns4_la_CFLAGS=$(libnss_mdns_la_CFLAGS) -DNSS_IPV4_ONLY=1
   78 libnss_mdns4_la_LDFLAGS=$(libnss_mdns_la_LDFLAGS)
   79 
   80 libnss_mdns4_minimal_la_SOURCES=$(libnss_mdns_la_SOURCES)
   81 libnss_mdns4_minimal_la_CFLAGS=$(libnss_mdns_la_CFLAGS) -DNSS_IPV4_ONLY=1 -DMDNS_MINIMAL
   82 libnss_mdns4_minimal_la_LDFLAGS=$(libnss_mdns_la_LDFLAGS)
   83 
   84 libnss_mdns6_la_SOURCES=$(libnss_mdns_la_SOURCES)
   85 libnss_mdns6_la_CFLAGS=$(libnss_mdns_la_CFLAGS) -DNSS_IPV6_ONLY=1
   86 libnss_mdns6_la_LDFLAGS=$(libnss_mdns_la_LDFLAGS)
   87 
   88 libnss_mdns6_minimal_la_SOURCES=$(libnss_mdns_la_SOURCES)
   89 libnss_mdns6_minimal_la_CFLAGS=$(libnss_mdns_la_CFLAGS) -DNSS_IPV6_ONLY=1 -DMDNS_MINIMAL
   90 libnss_mdns6_minimal_la_LDFLAGS=$(libnss_mdns_la_LDFLAGS)
   91 
   92 # FreeBSD
   93 nss_mdns_la_SOURCES=$(sources) bsdnss.c
   94 nss_mdns_la_CFLAGS=$(AM_CFLAGS)
   95 nss_mdns_la_LDFLAGS=$(AM_LDFLAGS) -shrext .so.1
   96 
   97 nss_mdns_minimal_la_SOURCES=$(nss_mdns_la_SOURCES)
   98 nss_mdns_minimal_la_CFLAGS=$(nss_mdns_la_CFLAGS) -DMDNS_MINIMAL
   99 nss_mdns_minimal_la_LDFLAGS=$(nss_mdns_la_LDFLAGS)
  100 
  101 nss_mdns4_la_SOURCES=$(nss_mdns_la_SOURCES)
  102 nss_mdns4_la_CFLAGS=$(nss_mdns_la_CFLAGS) -DNSS_IPV4_ONLY=1
  103 nss_mdns4_la_LDFLAGS=$(nss_mdns_la_LDFLAGS)
  104 
  105 nss_mdns4_minimal_la_SOURCES=$(nss_mdns_la_SOURCES)
  106 nss_mdns4_minimal_la_CFLAGS=$(nss_mdns_la_CFLAGS) -DNSS_IPV4_ONLY=1 -DMDNS_MINIMAL
  107 nss_mdns4_minimal_la_LDFLAGS=$(nss_mdns_la_LDFLAGS)
  108 
  109 nss_mdns6_la_SOURCES=$(nss_mdns_la_SOURCES)
  110 nss_mdns6_la_CFLAGS=$(nss_mdns_la_CFLAGS) -DNSS_IPV6_ONLY=1
  111 nss_mdns6_la_LDFLAGS=$(nss_mdns_la_LDFLAGS)
  112 
  113 nss_mdns6_minimal_la_SOURCES=$(nss_mdns_la_SOURCES)
  114 nss_mdns6_minimal_la_CFLAGS=$(nss_mdns_la_CFLAGS) -DNSS_IPV6_ONLY=1 -DMDNS_MINIMAL
  115 nss_mdns6_minimal_la_LDFLAGS=$(nss_mdns_la_LDFLAGS)
  116 
  117 avahi_test_SOURCES = \
  118 	avahi.c avahi.h \
  119 	util.c util.h \
  120 	avahi-test.c
  121 
  122 mdns_test_SOURCES = \
  123 	query.c query.h \
  124 	dns.c dns.h \
  125 	util.c util.h \
  126 	mdns-test.c
  127 
  128 nss_test_SOURCES = \
  129 	nss-test.c
  130 
  131 install-exec-hook:
  132 	rm -f $(DESTDIR)$(libdir)/libnss_mdns.la 
  133 	rm -f $(DESTDIR)$(libdir)/libnss_mdns_minimal.la 
  134 	rm -f $(DESTDIR)$(libdir)/libnss_mdns4.la 
  135 	rm -f $(DESTDIR)$(libdir)/libnss_mdns4_minimal.la 
  136 	rm -f $(DESTDIR)$(libdir)/libnss_mdns6.la 
  137 	rm -f $(DESTDIR)$(libdir)/libnss_mdns6_minimal.la 
  138 
  139 uninstall-hook:
  140 	rm -f $(DESTDIR)$(libdir)/libnss_mdns.so.2 
  141 	rm -f $(DESTDIR)$(libdir)/libnss_mdns_minimal.so.2 
  142 	rm -f $(DESTDIR)$(libdir)/libnss_mdns4.so.2 
  143 	rm -f $(DESTDIR)$(libdir)/libnss_mdns4_minimal.so.2 
  144 	rm -f $(DESTDIR)$(libdir)/libnss_mdns6.so.2 
  145 	rm -f $(DESTDIR)$(libdir)/libnss_mdns6_minimal.so.2