]> git.sur5r.net Git - openldap/commitdiff
Minor changes to support parallel make.
authorHoward Chu <hyc@openldap.org>
Sat, 24 Jul 1999 09:21:34 +0000 (09:21 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 24 Jul 1999 09:21:34 +0000 (09:21 +0000)
servers/slapd/Makefile.in

index 2e0aa857827306750759eb289e4c7aeba7dc48e7..86ea826f9004e64044eabe5059ca9fc23a4ecf99 100644 (file)
@@ -36,29 +36,27 @@ XXXLIBS = $(LTHREAD_LIBS)
 BUILD_OPT = "--enable-slapd"
 BUILD_SRV = @BUILD_SLAPD@
 
-all-local-srv: FORCE
-       $(MAKE) $(MFLAGS) backendslib
-       $(MAKE) $(MFLAGS) slapd
-       (cd tools; $(MAKE) $(MFLAGS) all)
-       $(MAKE) $(MFLAGS) all-cffiles
+BACKENDS=back-*
 
-slapd: version.o
+all-local-srv: slapd all-cffiles tools
+
+tools: libbackends.a
+
+slapd: version.o libbackends.a
        $(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
 
-sslapd: version.o
+sslapd: version.o libbackends.a
        $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
 
-backendslib:   FORCE
-       @for i in back-*; do \
-               if [ -d $$i ]; then \
-                       echo " "; echo "  cd $$i; $(MAKE) $(MFLAGS) all"; \
-                       ( cd $$i; $(MAKE) $(MFLAGS) all ); \
-               fi; \
-       done; \
-       echo " "; \
-       $(MAKE) $(MFLAGS) libbackends.a
+$(BACKENDS) tools:     FORCE
+       @ if [ -d $@ ]; then \
+               echo " "; echo "  cd $@; $(MAKE) $(MFLAGS) all"; \
+               cd $@; $(MAKE) $(MFLAGS) all ; \
+       fi
 
-libbackends.a: .backend
+.backend:
+
+libbackends.a: .backend $(BACKENDS)
        @$(RM) -r tmp
        @$(MKDIR) tmp
        @-for i in back-*/*.a; do \
@@ -150,15 +148,3 @@ install-conf: FORCE
 install-tools: FORCE
        @-$(MKDIR) $(sbindir)
        (cd tools; $(MAKE) $(MFLAGS) install)
-
-
-
-
-
-
-
-
-
-
-
-