summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-27 16:26:02 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-27 16:26:02 +0000
commitadd16157d72454347feb240007da4f90b9d9bae6 (patch)
treea0d5b9f7cf39650c772e6206d3259d133679faf1 /Makefile
parenta4b18c6ddbc9135f86f8b93806f7f5198ed90674 (diff)
downloadqemu-add16157d72454347feb240007da4f90b9d9bae6.tar.gz
Compile some user files only once for all targets
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 86b168b33b..d66826cba2 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,11 @@ subdir-%:
$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
+$(filter %-user,$(SUBDIR_RULES)): libuser.a
+
+libuser.a:
+ $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libuser V="$(V)" TARGET_DIR="$*/" all,)
+
ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
romsubdir-%:
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
@@ -185,14 +190,14 @@ clean:
rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d
rm -f qemu-img-cmds.h
$(MAKE) -C tests clean
- for d in $(ALL_SUBDIRS) libhw32 libhw64; do \
+ for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \
$(MAKE) -C $$d $@ || exit 1 ; \
done
distclean: clean
rm -f config-host.mak config-host.h config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi
rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
- for d in $(TARGET_DIRS) libhw32 libhw64; do \
+ for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \
rm -rf $$d || exit 1 ; \
done