]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/Makefile.in
syncinfo_free must be able to free multiple syncinfos
[openldap] / servers / slurpd / Makefile.in
index 6a1137eb161685499d4f128b2d58cc80b47a2a5b..9ce402c03a05f29cb6c1d4f610e0d3d544da8745 100644 (file)
@@ -1,23 +1,34 @@
+# Makefile.in for slurpd
 # $OpenLDAP$
-## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
-## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## 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
+## <http://www.OpenLDAP.org/license.html>.
 
-UNIX_PRGS = slurpd
-
-PROGRAMS = $(@PLAT@_PRGS)
+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
+               reject.c replica.c replog.c ri.c rq.c sanity.c st.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
+               reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
+               $(@PLAT@_OBJS)
 
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries
@@ -28,9 +39,8 @@ BUILD_SRV = @BUILD_SLURPD@
 all-local-srv:         $(PROGRAMS)
 
 # $(LTHREAD_LIBS) must be last!
-XLIBS = -lldif -lldap_r -llber -llutil
-XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) \
-       $(LDIF_LIBS) $(LUTIL_LIBS)
+XLIBS = $(SLURPD_L)
+XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
 XXXLIBS = $(LTHREAD_LIBS)
 
 slurpd:        version.o
@@ -39,15 +49,18 @@ slurpd:     version.o
 sslurpd:       version.o
        $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
 
-version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
+version.c: Makefile
        @-$(RM) $@
-       $(MKVERSION) slurpd > $@
+       $(MKVERSION) -s -n Versionstr slurpd > $@
+
+version.o: version.c $(OBJS) $(SLURPD_L)
 
 install-local-srv: FORCE
        -$(MKDIR) $(DESTDIR)$(libexecdir)
+       @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
        @(                                                              \
            for prg in $(PROGRAMS); do                                  \
-               $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT)   \
+               $(LTINSTALL) $(INSTALLFLAGS) $(STRIP) -m 755 $$prg$(EXEEXT)     \
                    $(DESTDIR)$(libexecdir);                            \
            done                                                        \
        )