]> git.proxmox.com Git - mirror_qemu.git/blobdiff - Makefile.user
Rename target_phys_addr_t to hwaddr
[mirror_qemu.git] / Makefile.user
index c6ac50940a9db41162ce9e9c66163b28d4d2d159..9302d33245a495bdb70e1d20da598d7803923d42 100644 (file)
@@ -6,13 +6,11 @@ include $(SRC_PATH)/rules.mak
 
 .PHONY: all
 
-# Do not take %.o from $(SRC_PATH), only %.c and %.h
-# All %.o for user targets should be built with -fpie, when
-# configured with --enable-user-pie, so we don't want to
-# take %.o from $(SRC_PATH), since they built without -fpie
-vpath %.c %.h $(SRC_PATH)
+$(call set-vpath, $(SRC_PATH))
 
 QEMU_CFLAGS+=-I..
+QEMU_CFLAGS += -I$(SRC_PATH)/include
+QEMU_CFLAGS += -DCONFIG_USER_ONLY
 
 include $(SRC_PATH)/Makefile.objs
 
@@ -21,7 +19,6 @@ all: $(user-obj-y)
        @true
 
 clean:
-       rm -f *.o *.d *.a *~
-
-# Include automatically generated dependency files
--include $(wildcard *.d */*.d)
+       for d in . trace; do \
+       rm -f $$d/*.o $$d/*.d $$d/*.a $$d/*~; \
+       done