5
-include ../Makefile.conf
6
include ../Makefile.rules
8
SRCS = automount.c indirect.c direct.c spawn.c module.c mount.c \
9
lookup.c state.c flag.c
10
OBJS = automount.o indirect.o direct.o spawn.o module.o mount.o \
11
lookup.o state.o flag.o
13
version := $(shell cat ../.version)
15
CFLAGS += -rdynamic $(DAEMON_CFLAGS) -D_GNU_SOURCE -I../include
16
CFLAGS += -DAUTOFS_LIB_DIR=\"$(autofslibdir)\"
17
CFLAGS += -DAUTOFS_MAP_DIR=\"$(autofsmapdir)\"
18
CFLAGS += -DAUTOFS_CONF_DIR=\"$(autofsconfdir)\"
19
CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfifodir)\"
20
CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\"
21
CFLAGS += -DVERSION_STRING=\"$(version)\"
27
CFLAGS += $(XML_FLAGS)
34
automount: $(OBJS) $(AUTOFS_LIB)
35
$(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS)
39
rm -f *.o *.s *~ automount
42
install -d -m 755 $(INSTALLROOT)$(sbindir)
43
install -c automount -m 755 $(INSTALLROOT)$(sbindir)