X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2FMakefile.in;h=9ce402c03a05f29cb6c1d4f610e0d3d544da8745;hb=59d4b38a7c9247d13bbff43c73c253929e348fdf;hp=f14cc2507e9be8f93cc69856b82f9804add6e543;hpb=334768c1bbb867f5a5a31d78f20152de5526c2ba;p=openldap
diff --git a/servers/slurpd/Makefile.in b/servers/slurpd/Makefile.in
index f14cc2507e..9ce402c03a 100644
--- a/servers/slurpd/Makefile.in
+++ b/servers/slurpd/Makefile.in
@@ -1,20 +1,34 @@
+# Makefile.in for slurpd
+# $OpenLDAP$
+## This work is part of OpenLDAP Software .
##
-## Makefile.in for slurpd
+## Copyright 1998-2007 The OpenLDAP Foundation.
+## All rights reserved.
##
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted only as authorized by the OpenLDAP
+## Public License.
+##
+## A copy of this license is available in the file LICENSE in the
+## top-level directory of the distribution or, alternatively, at
+## .
PROGRAMS = slurpd
XPROGRAMS = sslurpd
XSRCS = version.c
+NT_SRCS = nt_svc.c
+NT_OBJS = nt_svc.o ../../libraries/liblutil/slapdmsg.res
+
SRCS = admin.c args.c ch_malloc.c config.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
+ $(@PLAT@_SRCS)
OBJS = admin.o args.o ch_malloc.o config.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
+ $(@PLAT@_OBJS)
LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries
@@ -22,11 +36,12 @@ LDAP_LIBDIR= ../../libraries
BUILD_OPT = "--enable-slurpd"
BUILD_SRV = @BUILD_SLURPD@
-all-local-srv: slurpd
+all-local-srv: $(PROGRAMS)
# $(LTHREAD_LIBS) must be last!
-XLIBS = $(SLURPD_LIBS) $(LDAP_LIBS)
-XXLIBS = $(KRB_LIBS) $(LDAP_LIBLTHREAD)
+XLIBS = $(SLURPD_L)
+XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
+XXXLIBS = $(LTHREAD_LIBS)
slurpd: version.o
$(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
@@ -34,14 +49,19 @@ slurpd: version.o
sslurpd: version.o
$(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
-version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
- $(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 > $@)
+version.c: Makefile
+ @-$(RM) $@
+ $(MKVERSION) -s -n Versionstr slurpd > $@
+
+version.o: version.c $(OBJS) $(SLURPD_L)
install-local-srv: FORCE
- @-$(MKDIR) $(libexecdir)
- $(LTINSTALL) $(INSTALLFLAGS) -m 755 slurpd $(libexecdir)
+ -$(MKDIR) $(DESTDIR)$(libexecdir)
+ @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
+ @( \
+ for prg in $(PROGRAMS); do \
+ $(LTINSTALL) $(INSTALLFLAGS) $(STRIP) -m 755 $$prg$(EXEEXT) \
+ $(DESTDIR)$(libexecdir); \
+ done \
+ )
+