1 SRCS = init.c config.c fork.c search.c bind.c unbind.c add.c delete.c \
2 modify.c modrdn.c compare.c abandon.c result.c
3 OBJS = init.o config.o fork.o search.o bind.o unbind.o add.o delete.o \
4 modify.o modrdn.o compare.o abandon.o result.o
6 LDAP_INCDIR= ../../../include
7 LDAP_LIBDIR= ../../../libraries
9 BUILD_OPT = "--enable-shell"
10 BUILD_SRV = @BUILD_SHELL@
12 PROGRAMS = libback-shell.a
14 XINCPATH = -I.. -I$(srcdir)/..
15 XDEFS = @LTHREAD_DEFS@
18 $(MAKE) $(MFLAGS) libback-shell.a
20 libback-shell.a: version.o
21 $(AR) ruv $@ $(OBJS) version.o
25 version.c: $(OBJS) $(LDAP_LIBDEPEND)
27 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
28 t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
29 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
30 -e "s|%VERSION%|$${v}|" \
31 < $(srcdir)/Version.c > $@)