1 # Makefile.in for slurpd
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2004 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
22 NT_OBJS = nt_svc.o ../../libraries/liblutil/slapdmsg.res
24 SRCS = admin.c args.c ch_malloc.c config.c \
25 fm.c globals.c ldap_op.c lock.c main.c re.c \
26 reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
28 OBJS = admin.o args.o ch_malloc.o config.o \
29 fm.o globals.o ldap_op.o lock.o main.o re.o \
30 reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
33 LDAP_INCDIR= ../../include
34 LDAP_LIBDIR= ../../libraries
36 BUILD_OPT = "--enable-slurpd"
37 BUILD_SRV = @BUILD_SLURPD@
39 all-local-srv: $(PROGRAMS)
41 # $(LTHREAD_LIBS) must be last!
43 XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
44 XXXLIBS = $(LTHREAD_LIBS)
47 $(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
50 $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
54 $(MKVERSION) -s -n Versionstr slurpd > $@
56 version.o: version.c $(OBJS) $(SLURPD_L)
58 install-local-srv: FORCE
59 -$(MKDIR) $(DESTDIR)$(libexecdir)
60 @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
62 for prg in $(PROGRAMS); do \
63 $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
64 $(DESTDIR)$(libexecdir); \