aboutsummaryrefslogtreecommitdiffstats
path: root/modules/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'modules/Makefile')
-rw-r--r--modules/Makefile33
1 files changed, 26 insertions, 7 deletions
diff --git a/modules/Makefile b/modules/Makefile
index c2a709b..4e81be0 100644
--- a/modules/Makefile
+++ b/modules/Makefile
@@ -3,15 +3,26 @@
# Makefile for autofs
#
-SRCS = lookup_yp.c lookup_file.c lookup_program.c \
- parse_sun.c \
- mount_generic.c mount_nfs.c mount_smbfs.c
-MODS = lookup_yp.so lookup_file.so lookup_program.so \
- parse_sun.so \
- mount_generic.so mount_nfs.so mount_smbfs.so
-
include ../Makefile.rules
+SRCS = lookup_yp.c lookup_file.c lookup_program.c \
+ parse_sun.c \
+ mount_generic.c mount_nfs.c mount_smbfs.c mount_afs.c
+
+MODS = lookup_yp.so lookup_file.so lookup_program.so \
+ parse_sun.so \
+ mount_generic.so mount_nfs.so mount_smbfs.so mount_afs.so
+
+ifdef HESIOD
+ SRCS += lookup_hesiod.c parse_hesiod.c
+ MODS += lookup_hesiod.so parse_hesiod.so
+endif
+
+ifdef NISPLUS
+ SRCS += lookup_nisplus.c
+ MODS += lookup_nisplus.so
+endif
+
CFLAGS += -I../include -fpic -DAUTOFS_LIB_DIR=\"$(autofslibdir)\"
all: $(MODS)
@@ -29,3 +40,11 @@ install: all
lookup_yp.so: lookup_yp.c
$(CC) $(SOLDFLAGS) $(CFLAGS) -o lookup_yp.so lookup_yp.c $(YPLIBS)
$(STRIP) lookup_yp.so
+
+lookup_nisplus.so: lookup_nisplus.c
+ $(CC) $(SOLDFLAGS) $(CFLAGS) -o lookup_nisplus.so lookup_nisplus.c $(YPLIBS)
+ $(STRIP) lookup_nisplus.so
+
+lookup_hesiod.so: lookup_hesiod.c
+ $(CC) $(SOLDFLAGS) $(CFLAGS) -I$(HESIOD)/include -o lookup_hesiod.so \
+ lookup_hesiod.c $(HESIOD_LIBS)