From: Tim 'mithro' Ansell Date: Mon, 19 Dec 2016 13:29:13 +0000 (+0100) Subject: Fix Makefile dependency inclusion for other software. X-Git-Tag: 24jan2021_ls180~1918^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=284c94f1d38f174f92812168fb09c20cd9846640;p=litex.git Fix Makefile dependency inclusion for other software. --- diff --git a/litex/soc/software/libbase/Makefile b/litex/soc/software/libbase/Makefile index be6d6a7a..dee4a5c4 100644 --- a/litex/soc/software/libbase/Makefile +++ b/litex/soc/software/libbase/Makefile @@ -11,6 +11,9 @@ libbase.a: $(OBJECTS) vsnprintf.o libbase-nofloat.a: $(OBJECTS) vsnprintf-nofloat.o $(AR) crs libbase-nofloat.a $(OBJECTS) vsnprintf-nofloat.o +# pull in dependency info for *existing* .o files +-include $(OBJECTS:.o=.d) + vsnprintf-nofloat.o: $(LIBBASE_DIRECTORY)/vsnprintf.c $(call compile,-DNO_FLOAT) diff --git a/litex/soc/software/libcompiler_rt/Makefile b/litex/soc/software/libcompiler_rt/Makefile index 5db5c007..58d83e30 100644 --- a/litex/soc/software/libcompiler_rt/Makefile +++ b/litex/soc/software/libcompiler_rt/Makefile @@ -17,6 +17,9 @@ libcompiler_rt.a: $(OBJECTS) $(CC) -c $(CFLAGS) $(1) $(SOC_DIRECTORY)/software/libcompiler_rt/mulsi3.c -o mulsi3.o $(AR) crs libcompiler_rt.a $(OBJECTS) +# pull in dependency info for *existing* .o files +-include $(OBJECTS:.o=.d) + mulsi3.o: $(SOC_DIRECTORY)/software/libcompiler_rt/mulsi3.c $(compile) diff --git a/litex/soc/software/libnet/Makefile b/litex/soc/software/libnet/Makefile index 48a70bc7..188e48d6 100644 --- a/litex/soc/software/libnet/Makefile +++ b/litex/soc/software/libnet/Makefile @@ -8,6 +8,9 @@ all: libnet.a libnet.a: $(OBJECTS) $(AR) crs libnet.a $(OBJECTS) +# pull in dependency info for *existing* .o files +-include $(OBJECTS:.o=.d) + %.o: $(LIBNET_DIRECTORY)/%.c $(compile)