openldap/servers/slurpd/Makefile.in

48 lines
1.2 KiB
Makefile
Raw Normal View History

1998-10-25 09:41:42 +08:00
##
## Makefile.in for slurpd
##
PROGRAMS = slurpd
XPROGRAMS = sslurpd
XSRCS = version.c
1998-11-05 09:56:41 +08:00
SRCS = admin.c args.c ch_malloc.c config.c \
1998-10-25 09:41:42 +08:00
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
1998-11-05 09:56:41 +08:00
OBJS = admin.o args.o ch_malloc.o config.o \
1998-10-25 09:41:42 +08:00
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@
1999-01-08 01:29:39 +08:00
all-local-srv: slurpd
1998-10-25 09:41:42 +08:00
# $(LTHREAD_LIBS) must be last!
XLIBS = $(SLURPD_LIBS) $(LDAP_LIBS)
XXLIBS = $(KRB_LIBS) $(LDAP_LIBLTHREAD)
1998-10-25 09:41:42 +08:00
slurpd: version.o
$(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
sslurpd: version.o
$(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
1998-10-25 09:41:42 +08:00
version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
1998-10-25 09:41:42 +08:00
$(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-srv: FORCE
@-$(MKDIR) $(libexecdir)
$(LTINSTALL) $(INSTALLFLAGS) -m 755 slurpd $(libexecdir)