I had to get rid of the $(?F) construct, because did not work with includes
in subdirectories (like sorter has). I have replaced it by a direct reference
to the include list macro, which also allows to add the missing dependency
on autoconf.h.
API_LIBS+=libucw
API_INCLUDES+=$(o)/lib/.include-stamp
-# XXX: We do not have a dependency on autoconf.h, but it is generated by configure
-# before make ever starts, so this is safe.
-$(o)/lib/.include-stamp: $(addprefix $(s)/lib/,$(LIBUCW_INCLUDES))
- $(Q)$(s)/build/install-includes $(<D) run/include/lib $(?F)
+$(o)/lib/.include-stamp: $(addprefix $(s)/lib/,$(LIBUCW_INCLUDES)) obj/autoconf.h
+ $(Q)$(s)/build/install-includes $(<D) run/include/lib $(LIBUCW_INCLUDES)
$(Q)$(s)/build/install-includes obj run/include/lib autoconf.h
$(Q)touch $@
run/lib/pkgconfig/libucw.pc: $(o)/lib/libucw.pc
DIRS+=lib/sorter
LIBUCW_MODS+=$(addprefix sorter/, config govern sbuck array)
-#LIBUCW_INCLUDES+=$(addprefix sorter/, array.h common.h s-fixint.h \
-# s-internal.h s-multiway.h s-radix.h s-twoway.h sorter.h)
+LIBUCW_INCLUDES+=$(addprefix sorter/, array.h common.h s-fixint.h \
+ s-internal.h s-multiway.h s-radix.h s-twoway.h sorter.h)
ifdef CONFIG_DEBUG_TOOLS
PROGS+=$(o)/lib/sorter/sort-test