"Fossies" - the Fresh Open Source Software Archive

Member "nss_ldap-265/Makefile.am" (6 Nov 2009, 3680 Bytes) of package /linux/privat/old/nss_ldap-265.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 if AIX
    2 authmod = NSS_LDAP
    3 else
    4 authmod =
    5 endif
    6 
    7 noinst_PROGRAMS = nss_ldap.so $(authmod)
    8 INST_UID=root
    9 if AIX
   10 INST_GID=system
   11 else
   12 INST_GID=root
   13 endif
   14 
   15 EXTRA_DIST = CVSVersionInfo.txt ChangeLog \
   16 	     AUTHORS ANNOUNCE NEWS INSTALL README LICENSE.OpenLDAP COPYING\
   17 	     ldap.conf nss_ldap.spec nsswitch.ldap 
   18 
   19 man_MANS = nss_ldap.5
   20 
   21 nss_ldap_so_SOURCES = ldap-nss.c ldap-pwd.c ldap-grp.c ldap-netgrp.c ldap-rpc.c \
   22 	ldap-hosts.c ldap-network.c ldap-proto.c ldap-spwd.c \
   23 	ldap-alias.c ldap-service.c ldap-schema.c ldap-ethers.c \
   24 	ldap-bp.c ldap-automount.c util.c ltf.c snprintf.c resolve.c \
   25 	dnsconfig.c irs-nss.c pagectrl.c ldap-sldap.c ldap-init-krb5-cache.c \
   26 	vers.c
   27 
   28 nss_ldap_so_LDFLAGS = @nss_ldap_so_LDFLAGS@
   29 
   30 NSS_LDAP_PATH_CONF = @NSS_LDAP_PATH_CONF@
   31 NSS_LDAP_PATH_ROOTPASSWD = @NSS_LDAP_PATH_ROOTPASSWD@
   32 
   33 NSS_LDAP_SOURCES = ldap-nss.c ldap-grp.c ldap-pwd.c ldap-netgrp.c ldap-schema.c \
   34 	util.c ltf.c snprintf.c resolve.c dnsconfig.c \
   35 	irs-nss.c pagectrl.c aix_authmeth.c ldap-init-krb5-cache.c vers.c
   36 
   37 NSS_LDAP_LDFLAGS = @NSS_LDAP_LDFLAGS@
   38 DEFS = @DEFS@
   39 #INCLUDES = -I$(top_builddir) -I$(srcdir)
   40 
   41 if GCC
   42 MULTI_OS_DIRECTORY=$(shell $(CC) $(CFLAGS) -print-multi-os-directory)
   43 else
   44 MULTI_OS_DIRECTORY=.
   45 endif
   46 
   47 if GLIBC
   48 LIBC_VERS = $(shell ls /lib/$(MULTI_OS_DIRECTORY)/libc-*.so | tail -n 1 | sed -e 's|.*libc-\(.*\)\.so|\1|')
   49 NSS_LDAP_LIBC_VERSIONED = libnss_ldap-$(LIBC_VERS).so
   50 
   51 NSS_VERS = $(shell ls /lib/$(MULTI_OS_DIRECTORY)/libnss_files.so.? | tail -n 1 | sed -e 's|.*libnss_files\.so\.\(.*\)|\1|')
   52 NSS_LDAP_NSS_VERSIONED = libnss_ldap.so.$(NSS_VERS)
   53 endif
   54 
   55 if USE_NATIVE_LINKER
   56 NATIVE_LINK = $(nss_ldap_so_LD) $(AM_LDFLAGS) -o $@ 
   57 else
   58 GNU_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
   59 endif
   60 
   61 # This is horrible but appears to be the only way to work with
   62 # recent versions of automake. Any better ideas, let me know.
   63 LINK = $(NATIVE_LINK) $(GNU_LINK)
   64 
   65 if AIX
   66 
   67 # AIX install instructions per doc/README.AIX
   68 
   69 install-exec-local: nss_ldap.so NSS_LDAP
   70 	$(mkinstalldirs) $(DESTDIR)$(libdir)/netsvc/dynload
   71 	$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/netsvc/dynload/nss_ldap.so
   72 	$(mkinstalldirs) $(DESTDIR)$(libdir)/security
   73 	$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) NSS_LDAP $(DESTDIR)$(libdir)/security/NSS_LDAP
   74 
   75 else
   76 
   77 # Linux, Solaris, other platform install instructions
   78 
   79 install-exec-local: nss_ldap.so
   80 	@$(NORMAL_INSTALL)
   81 if GLIBC
   82 	-rm -f $(DESTDIR)$(libdir)/$(NSS_LDAP_LIBC_VERSIONED)
   83 	$(mkinstalldirs) $(DESTDIR)$(libdir)
   84 	$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/$(NSS_LDAP_LIBC_VERSIONED)
   85 	(cd $(DESTDIR)$(libdir); ln -sf $(NSS_LDAP_LIBC_VERSIONED) $(NSS_LDAP_NSS_VERSIONED))
   86 	$(mkinstalldirs) $(DESTDIR)/usr$(libdir)
   87 	(cd $(DESTDIR)/usr$(libdir); ln -sf ../..$(libdir)/$(NSS_LDAP_NSS_VERSIONED) .)
   88 else
   89 	$(mkinstalldirs) $(DESTDIR)$(libdir)
   90 if HPUX
   91 	$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/libnss_ldap.1
   92 else
   93 	$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/nss_ldap.so.1
   94 	(cd $(DESTDIR)$(libdir); rm -f nss_ldap.so; ln -s nss_ldap.so.1 nss_ldap.so)
   95 endif
   96 endif
   97 
   98 endif
   99 
  100 install-data-local:
  101 	@$(NORMAL_INSTALL)
  102 	@if test ! -f $(DESTDIR)$(NSS_LDAP_PATH_CONF); then \
  103 		$(mkinstalldirs) $(DESTDIR)$(dir $(NSS_LDAP_PATH_CONF)); \
  104 		$(INSTALL_DATA) -o $(INST_UID) -g $(INST_GID) $(srcdir)/ldap.conf $(DESTDIR)$(NSS_LDAP_PATH_CONF); \
  105 	fi
  106 	$(INSTALL_DATA) -o $(INST_UID) -g $(INST_GID) $(srcdir)/nsswitch.ldap $(DESTDIR)$(sysconfdir)/nsswitch.ldap; 
  107 
  108 uninstall-local:
  109 	@$(NORMAL_UNINSTALL)
  110 
  111 vers.c: $(top_srcdir)/CVSVersionInfo.txt
  112 	CVSVERSIONDIR=$(top_srcdir) vers_string -v
  113