2009-05-19 15:17:58 +00:00
|
|
|
# Makefile for qemu target independent devices.
|
|
|
|
|
|
|
|
include config.mak
|
|
|
|
include ../config-host.mak
|
|
|
|
include $(SRC_PATH)/rules.mak
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
|
|
|
|
|
|
|
|
CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS)
|
|
|
|
LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
|
|
|
|
|
2009-05-19 16:55:09 +00:00
|
|
|
CPPFLAGS += -I. -I.. -I$(SRC_PATH) -MMD -MP -MT $@
|
2009-05-19 15:17:58 +00:00
|
|
|
CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
|
|
|
CPPFLAGS+=-I$(SRC_PATH)/fpu
|
|
|
|
|
2009-06-24 22:07:59 +00:00
|
|
|
obj-y =
|
|
|
|
obj-y += virtio.o virtio-pci.o
|
|
|
|
obj-y += fw_cfg.o
|
|
|
|
obj-y += watchdog.o
|
|
|
|
obj-y += nand.o ecc.o
|
2009-05-19 15:17:58 +00:00
|
|
|
|
2009-06-24 22:07:59 +00:00
|
|
|
obj-y += m48t59.o escc.o
|
2009-05-21 15:54:36 +00:00
|
|
|
|
|
|
|
# SCSI layer
|
2009-06-24 22:07:59 +00:00
|
|
|
obj-y += lsi53c895a.o esp.o
|
2009-05-19 15:17:58 +00:00
|
|
|
|
2009-06-24 22:07:59 +00:00
|
|
|
obj-y += dma-helpers.o sysbus.o
|
2009-05-19 15:17:58 +00:00
|
|
|
|
|
|
|
all: $(HWLIB)
|
2009-05-25 17:54:53 +00:00
|
|
|
# Dummy command so that make thinks it has done something
|
|
|
|
@true
|
2009-05-19 15:17:58 +00:00
|
|
|
|
2009-06-24 22:07:59 +00:00
|
|
|
$(HWLIB): $(obj-y)
|
2009-05-19 15:17:58 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.d *.a *~
|
|
|
|
|
|
|
|
# Include automatically generated dependency files
|
|
|
|
-include $(wildcard *.d */*.d)
|