mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Fix explicit backend dependencies. Wildcard was unreliable.
This commit is contained in:
parent
adfd6865fe
commit
638f37743b
@ -2,7 +2,7 @@
|
||||
## Makefile.in for slapd
|
||||
##
|
||||
PROGRAMS=slapd
|
||||
XPROGRAMS=sslapd libbackends.a
|
||||
XPROGRAMS=sslapd libbackends.a .backend
|
||||
XSRCS=version.c
|
||||
SRCS = main.c daemon.c connection.c search.c filter.c add.c charray.c \
|
||||
attr.c entry.c config.c backend.c result.c operation.c \
|
||||
@ -39,7 +39,7 @@ XXXLIBS = $(LTHREAD_LIBS) $(MODULES_LIBS)
|
||||
BUILD_OPT = "--enable-slapd"
|
||||
BUILD_SRV = @BUILD_SLAPD@
|
||||
|
||||
all-local-srv: all-cffiles
|
||||
all-local-srv: backendslib all-cffiles
|
||||
|
||||
slapd: libbackends.a version.o
|
||||
$(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
|
||||
@ -48,10 +48,7 @@ slapd: libbackends.a version.o
|
||||
sslapd: version.o
|
||||
$(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
|
||||
|
||||
# dummy equivalent of FORCE when wildcard fails
|
||||
back-*/libback*.a:
|
||||
|
||||
libbackends.a: back-*/libback*.a
|
||||
backendslib: FORCE
|
||||
@for i in back-*; do \
|
||||
if [ -d $$i ]; then \
|
||||
echo " "; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
|
||||
@ -59,6 +56,10 @@ libbackends.a: back-*/libback*.a
|
||||
fi; \
|
||||
done; \
|
||||
echo " "
|
||||
|
||||
.backend:
|
||||
|
||||
libbackends.a: .backend
|
||||
@$(RM) -r tmp
|
||||
@$(MKDIR) tmp
|
||||
@-for i in back-*/*.a; do \
|
||||
|
@ -22,3 +22,8 @@ XINCPATH = -I.. -I$(srcdir)/..
|
||||
XDEFS = $(MODULES_CPPFLAGS)
|
||||
XLDFLAGS = $(MODULES_LDFLAGS)
|
||||
|
||||
all-local-lib: ../.backend
|
||||
|
||||
../.backend: lib$(LIBBASE).a
|
||||
@touch $@
|
||||
|
||||
|
@ -16,3 +16,8 @@ XINCPATH = -I.. -I$(srcdir)/..
|
||||
XDEFS = $(MODULES_CPPFLAGS)
|
||||
XLDFLAGS = $(MODULES_LDFLAGS)
|
||||
|
||||
all-local-lib: ../.backend
|
||||
|
||||
../.backend: lib$(LIBBASE).a
|
||||
@touch $@
|
||||
|
||||
|
@ -20,3 +20,8 @@ XINCPATH = -I.. -I$(srcdir)/..
|
||||
XDEFS = $(MODULES_CPPFLAGS)
|
||||
XLDFLAGS = $(MODULES_LDFLAGS)
|
||||
|
||||
all-local-lib: ../.backend
|
||||
|
||||
../.backend: lib$(LIBBASE).a
|
||||
@touch $@
|
||||
|
||||
|
@ -14,3 +14,8 @@ XINCPATH = -I.. -I$(srcdir)/..
|
||||
XDEFS = $(MODULES_CPPFLAGS)
|
||||
XLDFLAGS = $(MODULES_LDFLAGS)
|
||||
|
||||
all-local-lib: ../.backend
|
||||
|
||||
../.backend: lib$(LIBBASE).a
|
||||
@touch $@
|
||||
|
||||
|
@ -27,3 +27,8 @@ XINCPATH = -I.. -I$(srcdir)/..
|
||||
XDEFS = $(PERL_CPPFLAGS) $(MODULES_CPPFLAGS)
|
||||
XLDFLAGS = $(MODULES_LDFLAGS)
|
||||
|
||||
all-local-lib: ../.backend
|
||||
|
||||
../.backend: lib$(LIBBASE).a
|
||||
@touch $@
|
||||
|
||||
|
@ -16,3 +16,8 @@ XINCPATH = -I.. -I$(srcdir)/..
|
||||
XDEFS = $(MODULES_CPPFLAGS)
|
||||
XLDFLAGS = $(MODULES_LDFLAGS)
|
||||
|
||||
all-local-lib: ../.backend
|
||||
|
||||
../.backend: lib$(LIBBASE).a
|
||||
@touch $@
|
||||
|
||||
|
@ -29,3 +29,8 @@ XDEFS = $(MODULES_CPPFLAGS)
|
||||
XLDFLAGS = $(MODULES_LDFLAGS)
|
||||
XINCPATH = -I.. -I$(srcdir)/..
|
||||
|
||||
all-local-lib: ../.backend
|
||||
|
||||
../.backend: lib$(LIBBASE).a
|
||||
@touch $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user