aboutsummaryrefslogtreecommitdiffstats
path: root/modules/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'modules/Makefile')
-rw-r--r--modules/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/Makefile b/modules/Makefile
index 5d398a1..b5a7f6b 100644
--- a/modules/Makefile
+++ b/modules/Makefile
@@ -33,6 +33,11 @@ ifeq ($(NISPLUS), 1)
MODS += lookup_nisplus.so
endif
+ifeq ($(LDAP), 1)
+ SRCS += lookup_ldap.c
+ MODS += lookup_ldap.so
+endif
+
CFLAGS += -I../include -fpic -DAUTOFS_LIB_DIR=\"$(autofslibdir)\" -DPATH_AUTOMOUNT=\"$(sbindir)/automount\"
all: $(MODS)
@@ -62,3 +67,8 @@ lookup_hesiod.so: lookup_hesiod.c
$(CC) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \
lookup_hesiod.c $(LIBHESIOD) $(LIBRESOLV)
$(STRIP) lookup_hesiod.so
+
+lookup_ldap.so: lookup_ldap.c
+ $(CC) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \
+ lookup_ldap.c $(LIBLDAP)
+ $(STRIP) lookup_ldap.so