include $(s)/lib/getopt/Makefile
endif
- LIBUCW=$(o)/lib/libucw.$(LS)
+include $(s)/lib/sorter/Makefile
+
+ LIBUCW=$(o)/lib/libucw.pc
LIBUCW_MOD_PATHS=$(addprefix $(o)/lib/,$(LIBUCW_MODS))
$(o)/lib/libucw.a: $(addsuffix .o,$(LIBUCW_MOD_PATHS))
$(o)/lib/kmp-test.test: $(o)/lib/kmp-test
$(o)/lib/bbuf.test: $(o)/lib/bbuf-t
$(o)/lib/getopt.test: $(o)/lib/getopt-t
+$(o)/lib/fastbuf.test: $(o)/lib/fb-file-t $(o)/lib/fb-grow-t $(o)/lib/fb-pool-t
+
+ifdef CONFIG_UCW_THREADS
+TESTS+=$(addprefix $(o)/lib/,asio.test)
+$(o)/lib/asio.test: $(o)/lib/asio-t
+endif
- INCLUDES+=$(o)/lib/.include-stamp
+ API_LIBS+=libucw
+ API_INCLUDES+=$(o)/lib/.include-stamp
$(o)/lib/.include-stamp: $(addprefix $(s)/lib/,$(LIBUCW_INCLUDES))
- $(s)/build/install-includes $(s)/lib run/include/lib $(?F)
- $(s)/build/install-includes $(o)/lib run/include/lib autoconf.h
- touch $(o)/lib/.include-stamp
+ $(Q)$(s)/build/install-includes $(<D) run/include/lib $(?F)
+ # XXX: We do not have a dependency on autoconf.h, but it is generated by configure
+ # before make ever starts, so this is safe.
+ $(Q)$(s)/build/install-includes obj run/include/lib autoconf.h
+ $(Q)touch $@
+ run/lib/pkgconfig/libucw.pc: $(o)/lib/libucw.pc
ifdef CONFIG_UCW_PERL
include $(s)/lib/perl/Makefile
extras:: $(o)/lib/perl/Filelock/arch/auto/Sherlock/Filelock/Filelock.$(SOEXT)
$(o)/lib/perl/Filelock/arch/auto/Sherlock/Filelock/Filelock.$(SOEXT): $(o)/$(FILELOCK_DIR)/Filelock.xs $(o)/$(FILELOCK_DIR)/Filelock.pm $(o)/$(FILELOCK_DIR)/Makefile
- cd $(o)/$(FILELOCK_DIR) && $(MAKE) -f Makefile
- touch $@
- cp $@ run/$(DATADIR)/
+ $(M)MAKE $@
+ $(Q)cd $(o)/$(FILELOCK_DIR) && $(MAKE) -f Makefile $(MAKESILENT)
++ $(Q)touch $@
+ $(Q)cp $@ run/$(DATADIR)/
$(o)/$(FILELOCK_DIR)/Makefile: $(o)/$(FILELOCK_DIR)/Makefile.PL
- cd $(o)/$(FILELOCK_DIR) && perl Makefile.PL
+ $(M)PREPARE $@
+ $(Q)cd $(o)/$(FILELOCK_DIR) && perl Makefile.PL
$(o)/$(FILELOCK_DIR)/Filelock.xs: $(s)/$(FILELOCK_DIR)/Filelock.xs
- cp $^ $@
+ $(Q)cp $^ $@
$(o)/$(FILELOCK_DIR)/Makefile.PL: $(s)/$(FILELOCK_DIR)/Makefile.PL
- cp $^ $@
+ $(Q)cp $^ $@
extras:: $(o)/lib/perl/Ulimit/arch/auto/Sherlock/Ulimit/Ulimit.$(SOEXT)
$(o)/lib/perl/Ulimit/arch/auto/Sherlock/Ulimit/Ulimit.$(SOEXT): $(o)/$(ULIMIT_DIR)/Ulimit.xs $(o)/$(ULIMIT_DIR)/Ulimit.pm $(o)/$(ULIMIT_DIR)/Makefile
- cd $(o)/$(ULIMIT_DIR) && $(MAKE) -f Makefile
- touch $@
- cp $@ run/$(DATADIR)/
+ $(M)MAKE $@
+ $(Q)cd $(o)/$(ULIMIT_DIR) && $(MAKE) -f Makefile $(MAKESILENT)
++ $(Q)touch $@
+ $(Q)cp $@ run/$(DATADIR)/
$(o)/$(ULIMIT_DIR)/Makefile: $(o)/$(ULIMIT_DIR)/Makefile.PL
- cd $(o)/$(ULIMIT_DIR) && perl Makefile.PL
+ $(M)PREPARE $@
+ $(Q)cd $(o)/$(ULIMIT_DIR) && perl Makefile.PL
$(o)/$(ULIMIT_DIR)/Ulimit.xs: $(s)/$(ULIMIT_DIR)/Ulimit.xs
- cp $^ $@
+ $(Q)cp $^ $@
$(o)/$(ULIMIT_DIR)/Makefile.PL: $(s)/$(ULIMIT_DIR)/Makefile.PL
- cp $^ $@
+ $(Q)cp $^ $@