3
3
# Copyright (C) 2006 Luke Howard
4
4
# Copyright (C) 2006 West Consulting
5
# Copyright (C) 2006, 2007, 2009, 2010 Arthur de Jong
5
# Copyright (C) 2006, 2007, 2009, 2010, 2011 Arthur de Jong
6
# Copyright (C) 2010 Symas Corporation
7
8
# This library is free software; you can redistribute it and/or
8
9
# modify it under the terms of the GNU Lesser General Public
27
28
nss_ldap_so_SOURCES = common.c common.h prototypes.h \
28
29
../nslcd.h ../common/nslcd-prot.h \
30
aliases.c ethers.c group.c hosts.c netgroup.c \
31
networks.c passwd.c protocols.c rpc.c services.c \
33
nss_ldap_so_LDFLAGS = -shared -Wl,-h,$(NSS_LDAP_SONAME)
34
if HAVE_VERSION_SCRIPT_FLAG
35
nss_ldap_so_LDFLAGS += $(VERSION_SCRIPT_FLAG)\$(srcdir)/nss_ldap.map
37
nss_ldap_so_LDADD = ../common/libtio.a ../common/libprot.a
31
EXTRA_nss_ldap_so_SOURCES = aliases.c ethers.c group.c hosts.c netgroup.c \
32
networks.c passwd.c protocols.c rpc.c services.c \
33
shadow.c solnss.c bsdnss.c
34
nss_ldap_so_LDADD = $(NSS_MODULE_OBJS)
35
if NSS_FLAVOUR_SOLARIS
36
nss_ldap_so_LDADD += solnss.$(OBJEXT) ../common/libdict.a
38
if NSS_FLAVOUR_FREEBSD
39
nss_ldap_so_LDADD += bsdnss.$(OBJEXT)
41
nss_ldap_so_LDADD += ../common/libtio.a ../common/libprot.a
42
nss_ldap_so_DEPENDENCIES = $(nss_ldap_so_LDADD)
39
EXTRA_DIST = nss_ldap.map
44
EXTRA_DIST = exports.glibc exports.solaris exports.freebsd
41
46
install-exec-local: install-nss_ldap_so
42
47
uninstall-local: uninstall-nss_ldap_so
44
# install libnss_ldap.so.2
45
49
install-nss_ldap_so: nss_ldap.so
46
$(INSTALL_PROGRAM) -D nss_ldap.so $(DESTDIR)$(libdir)/$(NSS_LDAP_SONAME)
50
-rm -f $(DESTDIR)$(libdir)/$(NSS_LDAP_SONAME)
51
$(mkinstalldirs) $(DESTDIR)$(libdir)
52
$(INSTALL_PROGRAM) nss_ldap.so $(DESTDIR)$(libdir)/$(NSS_LDAP_SONAME)
47
54
uninstall-nss_ldap_so:
48
55
-rm -f $(DESTDIR)$(libdir)/$(NSS_LDAP_SONAME)