]> git.proxmox.com Git - qemu.git/blobdiff - Makefile.user
slirp: Fix restricted mode
[qemu.git] / Makefile.user
index 7daedeff6d89dc033caf491b3db47e03410838d2..024b7736b936b9a790716a2ebfeb26ac5cd8f554 100644 (file)
@@ -6,25 +6,16 @@ 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..
 
-obj-y =
-obj-y += envlist.o path.o
-obj-y += tcg-runtime.o host-utils.o
-obj-y += cutils.o cache-utils.o
+include $(SRC_PATH)/Makefile.objs
 
-all: libuser.a
+all: $(user-obj-y)
 # Dummy command so that make thinks it has done something
        @true
 
-libuser.a: $(obj-y)
-
 clean:
        rm -f *.o *.d *.a *~