mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
a558ee1776
Now we have to variables: QEMU_CFLAGS: flags without which we can't compile CFLAGS: "-g -O2" We can now run: make CFLAGS="-fbar" foo.o make CFLAGS="" foo.o make CFLAGS="-O3" foo.o And it all should work. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
39 lines
756 B
Makefile
39 lines
756 B
Makefile
# Makefile for qemu target independent devices.
|
|
|
|
include ../config-host.mak
|
|
include config.mak
|
|
include $(SRC_PATH)/rules.mak
|
|
|
|
.PHONY: all
|
|
|
|
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
|
|
|
|
QEMU_CFLAGS += -I. -I.. -I$(SRC_PATH) -MMD -MP -MT $@
|
|
QEMU_CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
|
QEMU_CFLAGS+=-I$(SRC_PATH)/fpu
|
|
|
|
obj-y =
|
|
obj-y += virtio.o virtio-pci.o
|
|
obj-y += fw_cfg.o
|
|
obj-y += watchdog.o
|
|
obj-y += nand.o ecc.o
|
|
|
|
obj-y += m48t59.o escc.o
|
|
|
|
# SCSI layer
|
|
obj-y += lsi53c895a.o esp.o
|
|
|
|
obj-y += dma-helpers.o sysbus.o qdev-addr.o
|
|
|
|
all: $(HWLIB)
|
|
# Dummy command so that make thinks it has done something
|
|
@true
|
|
|
|
$(HWLIB): $(obj-y)
|
|
|
|
clean:
|
|
rm -f *.o *.d *.a *~
|
|
|
|
# Include automatically generated dependency files
|
|
-include $(wildcard *.d */*.d)
|