@@ -325,7 +325,7 @@ define compile.u
@$(disp_compile.u) ; $(cmd_compile.u)
@$(disp_t_strip)
endef
-cmd_hcompile.u = $(HOSTCC) $(filter-out $(PHONY),$^) $(DEPS-$(notdir $@)) -o $@ $(BUILD_LDFLAGS) $(BUILD_LDFLAGS-$(notdir $(^D))) $(BUILD_LDFLAGS-$(notdir $@)) $(BUILD_CFLAGS) $(BUILD_CFLAGS-$(notdir $(^D))) $(BUILD_CFLAGS-$(notdir $@))
+cmd_hcompile.u = $(HOSTCC) $(filter %.c %.o,$(filter-out $(PHONY),$^)) $(DEPS-$(notdir $@)) -o $@ $(BUILD_LDFLAGS) $(BUILD_LDFLAGS-$(notdir $(^D))) $(BUILD_LDFLAGS-$(notdir $@)) $(BUILD_CFLAGS) $(BUILD_CFLAGS-$(notdir $(^D))) $(BUILD_CFLAGS-$(notdir $@))
cmd_hcompile.o = $(HOSTCC) $(filter-out $(PHONY),$<) $(DEPS-$(notdir $@)) -c -o $@ $(BUILD_CFLAGS) $(BUILD_CFLAGS-$(notdir $(^D))) $(BUILD_CFLAGS-$(notdir $@))
define link.so
@@ -150,19 +150,19 @@ endif
endif
$(locale_DIR)/gen_collate.c: $(DEPH-gen_collate)
-$(locale_OUT)/gen_collate : $(locale_DIR)/gen_collate.c
+$(locale_OUT)/gen_collate : $(locale_DIR)/gen_collate.c $(DEPH-gen_collate)
$(hcompile.u)
$(locale_DIR)/gen_ldc.c: $(DEPH-gen_ldc)
-$(locale_OUT)/gen_ldc : $(locale_DIR)/gen_ldc.c
+$(locale_OUT)/gen_ldc : $(locale_DIR)/gen_ldc.c $(DEPH-gen_ldc)
$(hcompile.u)
$(locale_DIR)/gen_locale.c: $(DEPH-gen_locale)
-$(locale_OUT)/gen_locale : $(locale_DIR)/gen_locale.c
+$(locale_OUT)/gen_locale : $(locale_DIR)/gen_locale.c $(DEPH-gen_locale)
$(hcompile.u)
$(locale_DIR)/gen_wc8bit.c: $(DEPH-gen_wc8bit)
-$(locale_OUT)/gen_wc8bit : $(locale_DIR)/gen_wc8bit.c
+$(locale_OUT)/gen_wc8bit : $(locale_DIR)/gen_wc8bit.c $(DEPH-gen_wc8bit)
$(hcompile.u)
$(locale_DIR)/gen_wctype.c: $(DEPH-gen_wctype)
-$(locale_OUT)/gen_wctype : $(locale_DIR)/gen_wctype.c
+$(locale_OUT)/gen_wctype : $(locale_DIR)/gen_wctype.c $(DEPH-gen_wctype)
$(hcompile.u)
ifneq ($(V),)