diff --git a/litex/soc/software/bios/Makefile b/litex/soc/software/bios/Makefile index 114851472..e00e4a706 100644 --- a/litex/soc/software/bios/Makefile +++ b/litex/soc/software/bios/Makefile @@ -22,8 +22,8 @@ bios.elf: $(BIOS_DIRECTORY)/linker.ld $(OBJECTS) -lnet -lbase-nofloat -lcompiler_rt chmod -x $@ -main.o: $(BIOS_DIRECTORY)/main.c - $(compile) +# pull in dependency info for *existing* .o files +-include $(OBJECTS:.o=.d) %.o: $(BIOS_DIRECTORY)/%.c $(compile)