|
Packit |
6bd9ab |
# Makefile.am - use automake to generate Makefile.in
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# Copyright (C) 2006 Luke Howard
|
|
Packit |
6bd9ab |
# Copyright (C) 2006 West Consulting
|
|
Packit |
6bd9ab |
# Copyright (C) 2006-2015 Arthur de Jong
|
|
Packit |
6bd9ab |
# Copyright (C) 2010 Symas Corporation
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# This library is free software; you can redistribute it and/or
|
|
Packit |
6bd9ab |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6bd9ab |
# License as published by the Free Software Foundation; either
|
|
Packit |
6bd9ab |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# This library is distributed in the hope that it will be useful,
|
|
Packit |
6bd9ab |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6bd9ab |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6bd9ab |
# Lesser General Public License for more details.
|
|
Packit |
6bd9ab |
#
|
|
Packit |
6bd9ab |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6bd9ab |
# License along with this library; if not, write to the Free Software
|
|
Packit |
6bd9ab |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit |
6bd9ab |
# 02110-1301 USA
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
noinst_PROGRAMS = nss_ldap.so
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
AM_CPPFLAGS=-I$(top_srcdir)
|
|
Packit |
6bd9ab |
AM_CFLAGS = $(PIC_CFLAGS)
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
nss_ldap_so_SOURCES = common.c common.h prototypes.h solnss.h \
|
|
Packit |
6bd9ab |
../nslcd.h ../common/nslcd-prot.h \
|
|
Packit |
6bd9ab |
../compat/attrs.h
|
|
Packit |
6bd9ab |
EXTRA_nss_ldap_so_SOURCES = aliases.c ethers.c group.c hosts.c netgroup.c \
|
|
Packit |
6bd9ab |
networks.c passwd.c protocols.c rpc.c services.c \
|
|
Packit |
6bd9ab |
shadow.c solnss.c bsdnss.c
|
|
Packit |
6bd9ab |
nss_ldap_so_LDADD = $(NSS_MODULE_OBJS)
|
|
Packit |
6bd9ab |
if NSS_FLAVOUR_SOLARIS
|
|
Packit |
6bd9ab |
nss_ldap_so_LDADD += solnss.$(OBJEXT) ../common/libdict.a
|
|
Packit |
6bd9ab |
endif
|
|
Packit |
6bd9ab |
if NSS_FLAVOUR_FREEBSD
|
|
Packit |
6bd9ab |
nss_ldap_so_LDADD += bsdnss.$(OBJEXT)
|
|
Packit |
6bd9ab |
endif
|
|
Packit |
6bd9ab |
nss_ldap_so_LDADD += ../common/libtio.a ../common/libprot.a
|
|
Packit |
6bd9ab |
nss_ldap_so_DEPENDENCIES = $(nss_ldap_so_LDADD) exports.map
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
EXTRA_DIST = exports.glibc exports.solaris exports.freebsd
|
|
Packit |
6bd9ab |
CLEANFILES = exports.map
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
exports.map: $(EXTRA_DIST) Makefile
|
|
Packit |
6bd9ab |
sed 's/ldap/@MODULE_NAME@/' < $(srcdir)/exports.$(NSS_FLAVOUR) > exports.map
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
install-exec-local: install-nss_ldap_so
|
|
Packit |
6bd9ab |
uninstall-local: uninstall-nss_ldap_so
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
install-nss_ldap_so: nss_ldap.so
|
|
Packit |
6bd9ab |
-rm -f $(DESTDIR)$(libdir)/$(NSS_LDAP_SONAME)
|
|
Packit |
6bd9ab |
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
Packit |
6bd9ab |
$(INSTALL_PROGRAM) nss_ldap.so $(DESTDIR)$(libdir)/$(NSS_LDAP_SONAME)
|
|
Packit |
6bd9ab |
|
|
Packit |
6bd9ab |
uninstall-nss_ldap_so:
|
|
Packit |
6bd9ab |
-rm -f $(DESTDIR)$(libdir)/$(NSS_LDAP_SONAME)
|