]> git.proxmox.com Git - qemu.git/blobdiff - Makefile.hw
xen: fix xen-mapcache build on non-Xen capable targets
[qemu.git] / Makefile.hw
index ba2d390515f9a4833cbf607204d73ab14e23f056..b9181ab122b2d73bc66d8762eea460f47d5931b1 100644 (file)
@@ -7,41 +7,18 @@ include $(SRC_PATH)/rules.mak
 
 .PHONY: all
 
-VPATH=$(SRC_PATH):$(SRC_PATH)/hw
+$(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
 
 QEMU_CFLAGS+=-I.. -I$(SRC_PATH)/fpu
 
-obj-y =
-obj-y += loader.o
-obj-y += virtio.o
-obj-y += fw_cfg.o
-obj-y += watchdog.o
-obj-y += nand.o ecc.o
+include $(SRC_PATH)/Makefile.objs
 
-obj-y += m48t59.o escc.o
-
-# PCI watchdog devices
-obj-y += wdt_i6300esb.o
-
-obj-y += msix.o
-
-# PCI network cards
-obj-y += ne2000.o
-
-# SCSI layer
-obj-y += lsi53c895a.o esp.o
-
-obj-y += dma-helpers.o sysbus.o isa-bus.o
-obj-$(CONFIG_QDEV_ADDR) += qdev-addr.o
-
-all: $(HWLIB)
+all: $(hw-obj-y)
 # Dummy command so that make thinks it has done something
        @true
 
-$(HWLIB): $(obj-y)
-
 clean:
-       rm -f *.o *.d *.a *~
+       rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~
 
 # Include automatically generated dependency files
 -include $(wildcard *.d */*.d)