mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 20:03:37 +08:00
fc8c5b8c41
In *-*-user/ build dirs CONFIG_USER_ONLY is defined via config-target.h. In libuser/ it is not defined. Add it via QEMU_CFLAGS. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
28 lines
540 B
Makefile
28 lines
540 B
Makefile
# Makefile for qemu target independent user files.
|
|
|
|
include ../config-host.mak
|
|
include $(SRC_PATH)/rules.mak
|
|
-include config.mak
|
|
|
|
.PHONY: all
|
|
|
|
$(call set-vpath, $(SRC_PATH))
|
|
|
|
QEMU_CFLAGS+=-I..
|
|
QEMU_CFLAGS += -I$(SRC_PATH)/include
|
|
QEMU_CFLAGS += -DCONFIG_USER_ONLY
|
|
|
|
include $(SRC_PATH)/Makefile.objs
|
|
|
|
all: $(user-obj-y)
|
|
# Dummy command so that make thinks it has done something
|
|
@true
|
|
|
|
clean:
|
|
for d in . trace; do \
|
|
rm -f $$d/*.o $$d/*.d $$d/*.a $$d/*~; \
|
|
done
|
|
|
|
# Include automatically generated dependency files
|
|
-include $(wildcard *.d)
|