summaryrefslogtreecommitdiffstats
path: root/pc-bios/s390-ccw/Makefile
diff options
context:
space:
mode:
authorThomas Huth2020-06-30 16:17:30 +0200
committerThomas Huth2020-07-02 10:00:58 +0200
commit1c9f655066d1defbe083ef06723be919cdfc13dc (patch)
tree3c9b9b873c00bb498b385750d87a97f55be34176 /pc-bios/s390-ccw/Makefile
parentpc-bios: s390x: Make u32 ptr check explicit (diff)
downloadqemu-1c9f655066d1defbe083ef06723be919cdfc13dc.tar.gz
qemu-1c9f655066d1defbe083ef06723be919cdfc13dc.tar.xz
qemu-1c9f655066d1defbe083ef06723be919cdfc13dc.zip
pc-bios/s390-ccw: Generate and include dependency files in the Makefile
The Makefile of the s390-ccw bios does not handle dependencies of the *.c files from the headers yet, so that you often have to run a "make clean" to get the build right when one of the headers has been changed. Let's make sure that we generate and include dependency files for all *.c files now to avoid this problem in the future. Acked-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20200630142955.7662-1-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'pc-bios/s390-ccw/Makefile')
-rw-r--r--pc-bios/s390-ccw/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile
index a048b6b077..50bc880272 100644
--- a/pc-bios/s390-ccw/Makefile
+++ b/pc-bios/s390-ccw/Makefile
@@ -38,5 +38,8 @@ s390-netboot.img:
@echo "s390-netboot.img not built since roms/SLOF/ is not available."
endif
+ALL_OBJS = $(sort $(OBJECTS) $(NETOBJS) $(LIBCOBJS) $(LIBNETOBJS))
+-include $(ALL_OBJS:%.o=%.d)
+
clean:
rm -f *.o *.d *.img *.elf *~ *.a