|
Packit |
8480eb |
#
|
|
Packit |
8480eb |
# Makefile for autofs
|
|
Packit |
8480eb |
#
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
-include ../Makefile.conf
|
|
Packit |
8480eb |
include ../Makefile.rules
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
SRCS = automount.c indirect.c direct.c spawn.c module.c mount.c \
|
|
Packit |
8480eb |
lookup.c state.c flag.c
|
|
Packit |
8480eb |
OBJS = automount.o indirect.o direct.o spawn.o module.o mount.o \
|
|
Packit |
8480eb |
lookup.o state.o flag.o
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
version := $(shell cat ../.version)
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
CFLAGS += -rdynamic $(DAEMON_CFLAGS) -D_GNU_SOURCE -I../include
|
|
Packit |
8480eb |
CFLAGS += -DAUTOFS_LIB_DIR=\"$(autofslibdir)\"
|
|
Packit |
8480eb |
CFLAGS += -DAUTOFS_MAP_DIR=\"$(autofsmapdir)\"
|
|
Packit |
8480eb |
CFLAGS += -DAUTOFS_CONF_DIR=\"$(autofsconfdir)\"
|
|
Packit |
8480eb |
CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfifodir)\"
|
|
Packit |
8480eb |
CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\"
|
|
Packit |
8480eb |
CFLAGS += -DVERSION_STRING=\"$(version)\"
|
|
Packit |
8480eb |
LDFLAGS += -rdynamic
|
|
Packit |
8480eb |
LIBS += -ldl -lpthread
|
|
Packit |
8480eb |
|
|
Packit Service |
b3e495 |
ifeq ($(SYSTEMD), 1)
|
|
Packit Service |
b3e495 |
CFLAGS += -DWITH_SYSTEMD
|
|
Packit Service |
b3e495 |
LIBS += $(LIBSYSTEMD)
|
|
Packit Service |
b3e495 |
endif
|
|
Packit Service |
b3e495 |
|
|
Packit |
8480eb |
ifeq ($(LDAP), 1)
|
|
Packit |
8480eb |
CFLAGS += $(XML_FLAGS)
|
|
Packit |
8480eb |
LIBS += $(XML_LIBS)
|
|
Packit |
8480eb |
endif
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
all: automount
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
automount: $(OBJS) $(AUTOFS_LIB)
|
|
Packit |
8480eb |
$(CC) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(LDFLAGS) $(AUTOFS_LIB) $(LIBS)
|
|
Packit |
8480eb |
$(STRIP) automount
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
clean:
|
|
Packit |
8480eb |
rm -f *.o *.s *~ automount
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
install: all
|
|
Packit |
8480eb |
install -d -m 755 $(INSTALLROOT)$(sbindir)
|
|
Packit |
8480eb |
install -c automount -m 755 $(INSTALLROOT)$(sbindir)
|
|
Packit |
8480eb |
|
|
Packit |
8480eb |
|