From f3543c2057fcb098e7edce0ab2f72bd39ce4f993 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 2 Jun 2020 00:49:11 +0200 Subject: [PATCH] cross-cc needed to generate dependencies --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2a10ca4..d6cc7f8 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ # along with OS/K. If not, see . # #=----------------------------------------------------------------------------=# -.PHONY: all test testnokvm testnosnd test32 debug gdb ddd gdbnokvm dddnokvm installonimage dust clean OS/K run +.PHONY: all test testnokvm testnosnd test32 debug gdb ddd gdbnokvm dddnokvm installonimage dust clean OS/K run update-cross-cc .DELETE_ON_ERROR: $(BINDIR)/kaleid .DEFAULT_GOAL := all @@ -254,7 +254,7 @@ $(KOBJDIR)/drivers/ata.o: $(KALEIDDIR)/drivers/ata.c $(KALEIDDIR)/drivers/ata.as ## DEPENDENCIES MAKEFILE ----------------------------------------------------- # -$(KOBJDIR)/%.d: %.c | $(KOBJDIR) +$(KOBJDIR)/%.d: %.c $(CROSS-CC-DIR)/bin/x86_64-elf-gcc | $(KOBJDIR) @mkdir -p $(shell dirname $@) @$(KCC) -MM -MT $(@:%.d=%.o) -MF $@ $< @echo ${CL2}[$@] ${CL}Dependencies generated.${CL3} @@ -373,3 +373,7 @@ clean: @rm -Rvf ./ProjectTree $(BUILDDIR)/*.log @rm -Rvf $(BINDIR) $(OBJDIR) @echo ${CL2}[$@] ${CL}Cleaned.${CL3} + +update-cross-cc: + @rm -rf cross-cc + @echo ${CL2}[$@] ${CL}Ready to update.${CL3}