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 \
install-tools: FORCE
@-$(MKDIR) $(sbindir)
(cd tools; $(MAKE) $(MFLAGS) install)
-
-
-
-
-
-
-
-
-
-
-
-