openldap/servers/slurpd/Makefile.in
1998-10-25 01:41:42 +00:00

39 lines
1019 B
Makefile

##
## Makefile.in for slurpd
##
PROGRAMS = slurpd
SRCS = admin.c args.c ch_malloc.c config.c detach.c \
fm.c globals.c ldap_op.c lock.c main.c re.c \
reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
tsleep.c
OBJS = admin.o args.o ch_malloc.o config.o detach.o \
fm.o globals.o ldap_op.o lock.o main.o re.o \
reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
tsleep.o
LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries
BUILD_OPT = "--enable-slurpd"
BUILD_SRV = @BUILD_SLURPD@
all-local: slurpd
XLIBS = @SLURPD_LIBS@ -llthread @LTHREAD_LIBS@
slurpd: version.o
$(CC) $(LDFLAGS) -o $@ $(OBJS) version.o $(LIBS)
version.c: $(OBJS) $(LDAP_LIBDEPEND)
$(RM) $@
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
-e "s|%VERSION%|$${v}|" \
< $(srcdir)/Version.c > $@)
install-local: FORCE
@-$(MKDIR) -p $(libexecdir)
$(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(libexecdir)