summaryrefslogtreecommitdiff
path: root/Makefile.hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-05-29 11:49:34 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-06-07 09:21:17 +0200
commitc353f261946ddbd814b333ae2440712b486977fd (patch)
treeb280e3712059404d5383e714ad99d8bba6ffaf3f /Makefile.hw
parentbe1029ec30d2eee9e0eb56190d1ed2ed9a400bdf (diff)
downloadqemu-c353f261946ddbd814b333ae2440712b486977fd.tar.gz
build: move per-target hw/ objects to nested Makefile.objs
This completes the move to nested Makefiles for virtio and a few other files that were not part of obj-TARGET-y, but still were compiled separately for each target. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Makefile.hw')
-rw-r--r--Makefile.hw5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.hw b/Makefile.hw
index 155a0c3432..2bcbaffb4f 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -19,7 +19,8 @@ all: $(hw-obj-y)
@true
clean:
- rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ */*/*.d
+ rm -f $(addsuffix /*.o, $(dir $(sort $(hw-obj-y))))
+ rm -f $(addsuffix /*.d, $(dir $(sort $(hw-obj-y))))
# Include automatically generated dependency files
--include $(wildcard *.d */*.d */*/*.d)
+-include $(patsubst %.o, %.d, $(hw-obj-y))