bios: Include dependency rebuild info.
authorTim 'mithro' Ansell <mithro@mithis.com>
Fri, 16 Dec 2016 17:02:28 +0000 (18:02 +0100)
committerTim 'mithro' Ansell <mithro@mithis.com>
Sat, 17 Dec 2016 13:14:14 +0000 (14:14 +0100)
litex/soc/software/bios/Makefile

index 114851472ac90a688d6b008636cdee1463a319e2..e00e4a70660b40b7cf551deb7115a47f21271c34 100644 (file)
@@ -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)