Unbreak out-of-tree builds
[qemu-kvm/fedora.git] / Makefile.hw
blob87675fde96e43e8125d160f27d667fbb23c4c10f
1 # Makefile for qemu target independent devices.
3 include config.mak
4 include ../config-host.mak
5 include $(SRC_PATH)/rules.mak
7 .PHONY: all
9 VPATH=$(SRC_PATH):$(SRC_PATH)/hw
11 CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS)
12 LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
14 CPPFLAGS += -I. -I.. -I$(SRC_PATH) -MMD -MP -MT $@
15 CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
16 CPPFLAGS+=-I$(SRC_PATH)/fpu
18 OBJS=
19 OBJS+= virtio.o virtio-pci.o
20 OBJS+= fw_cfg.o
21 OBJS+= watchdog.o
22 OBJS+= nand.o ecc.o
24 OBJS+= m48t59.o
26 OBJS+= dma-helpers.o sysbus.o
28 all: $(HWLIB)
30 $(HWLIB): $(OBJS)
32 clean:
33         rm -f *.o *.d *.a *~
35 # Include automatically generated dependency files
36 -include $(wildcard *.d */*.d)