xref: /openbmc/qemu/Makefile (revision b40292e7)
10cb3fb1eSpbrook# Makefile for QEMU.
20cb3fb1eSpbrook
3a992fe3dSPaul BrookGENERATED_HEADERS = config-host.h
4f527c579SJuan Quintela
555d7e8f6Saurel32ifneq ($(wildcard config-host.mak),)
61ad2134fSPaul Brook# Put the all: rule here so that config-host.mak can contain dependencies.
71ad2134fSPaul Brookall: build-all
8ad064840Spbrookinclude config-host.mak
917759187Saliguoriinclude $(SRC_PATH)/rules.mak
1059bc10eeSPaolo Bonziniconfig-host.mak: $(SRC_PATH)/configure
11e5efe7f5SJuan Quintela	@echo $@ is out-of-date, running configure
12e5efe7f5SJuan Quintela	@sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
1355d7e8f6Saurel32else
1455d7e8f6Saurel32config-host.mak:
1555d7e8f6Saurel32	@echo "Please call configure before running make!"
1655d7e8f6Saurel32	@exit 1
1755d7e8f6Saurel32endif
18766a487aSbellard
19d9ace8b3SJuan Quintela# Don't try to regenerate Makefile or configure
20d9ace8b3SJuan Quintela# We don't generate any of them
21d9ace8b3SJuan QuintelaMakefile: ;
22d9ace8b3SJuan Quintelaconfigure: ;
23d9ace8b3SJuan Quintela
24818220f5Saliguori.PHONY: all clean cscope distclean dvi html info install install-doc \
2520cc9997SStefan Weil	pdf recurse-all speed tar tarbin test build-all
260cb3fb1eSpbrook
27076d2471SPaolo Bonzini$(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
288c462f8fSpbrook
293e2e0e6bSJuan QuintelaLIBS+=-lz $(LIBS_TOOLS)
3067c0f08dSJuan Quintela
31cc8ae6deSpbrookifdef BUILD_DOCS
32*b40292e7SJan KiszkaDOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt
33cc8ae6deSpbrookelse
34cc8ae6deSpbrookDOCS=
35cc8ae6deSpbrookendif
367d13299dSbellard
371215c6e7SJuan QuintelaSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
381f3d3c8fSJuan QuintelaSUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
391f3d3c8fSJuan Quintela
401f3d3c8fSJuan Quintelaconfig-all-devices.mak: $(SUBDIR_DEVICES_MAK)
4101d86a85SStefan Weil	$(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@,"  GEN   $@")
421f3d3c8fSJuan Quintela
43a992fe3dSPaul Brook%/config-devices.mak: default-configs/%.mak
44a992fe3dSPaul Brook	$(call quiet-command,cat $< > $@.tmp, "  GEN   $@")
45a992fe3dSPaul Brook	@if test -f $@; then \
46012f0879SStefan Weil	  if cmp -s $@.old $@ || cmp -s $@ $@.tmp; then \
47012f0879SStefan Weil	    mv $@.tmp $@; \
48012f0879SStefan Weil	    cp -p $@ $@.old; \
49012f0879SStefan Weil	  else \
50012f0879SStefan Weil	    if test -f $@.old; then \
51012f0879SStefan Weil	      echo "WARNING: $@ (user modified) out of date.";\
52012f0879SStefan Weil	    else \
53a992fe3dSPaul Brook	      echo "WARNING: $@ out of date.";\
54012f0879SStefan Weil	    fi; \
5563e86b2eSStefan Weil	    echo "Run \"make defconfig\" to regenerate."; \
56a992fe3dSPaul Brook	    rm $@.tmp; \
57012f0879SStefan Weil	  fi; \
58a992fe3dSPaul Brook	 else \
59a992fe3dSPaul Brook	  mv $@.tmp $@; \
60012f0879SStefan Weil	  cp -p $@ $@.old; \
61a992fe3dSPaul Brook	 fi
62a992fe3dSPaul Brook
63a992fe3dSPaul Brookdefconfig:
64a992fe3dSPaul Brook	rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
65a992fe3dSPaul Brook
661f3d3c8fSJuan Quintela-include config-all-devices.mak
671215c6e7SJuan Quintela
68f527c579SJuan Quintelabuild-all: $(DOCS) $(TOOLS) recurse-all
69b9dea4fbSpbrook
701215c6e7SJuan Quintelaconfig-host.h: config-host.h-timestamp
711215c6e7SJuan Quintelaconfig-host.h-timestamp: config-host.mak
721215c6e7SJuan Quintela
73cec7d0b6SpbrookSUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
74cec7d0b6Spbrook
75f527c579SJuan Quintelasubdir-%: $(GENERATED_HEADERS)
760087375eSPaul Brook	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
774aa42531Spbrook
78b88bc808SStefan Weilifneq ($(wildcard config-host.mak),)
790e8c9214SAndreas Färberinclude $(SRC_PATH)/Makefile.objs
80b88bc808SStefan Weilendif
810e8c9214SAndreas Färber
820e8c9214SAndreas Färber$(common-obj-y): $(GENERATED_HEADERS)
834d904533SBlue Swirl$(filter %-softmmu,$(SUBDIR_RULES)): $(common-obj-y) subdir-libdis
84c05ac895SPaul Brook
854d904533SBlue Swirl$(filter %-user,$(SUBDIR_RULES)): $(GENERATED_HEADERS) subdir-libdis-user subdir-libuser
86add16157SBlue Swirl
87c05ac895SPaul BrookROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
88c05ac895SPaul Brookromsubdir-%:
89c05ac895SPaul Brook	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
90c05ac895SPaul Brook
91c05ac895SPaul BrookALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
92c05ac895SPaul Brook
93c05ac895SPaul Brookrecurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
944aa42531Spbrook
9598b068a9SJuan Quintelaaudio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
960e22fd2fSJuan Quintela
97a558ee17SJuan QuintelaQEMU_CFLAGS+=$(CURL_CFLAGS)
98769ce76dSAlexander Graf
994fb240a4Sbellardcocoa.o: cocoa.m
1004fb240a4Sbellard
1010483755aSaliguorikeymaps.o: keymaps.c keymaps.h
1020483755aSaliguori
103c18a2c36SStefano Stabellinisdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
104c18a2c36SStefano Stabellini
105c18a2c36SStefano Stabellinisdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
106807544e2Saliguori
107a558ee17SJuan Quintelasdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
1084fb240a4Sbellard
10976655d6dSaliguoriacl.o: acl.h acl.c
11076655d6dSaliguori
1112f9606b3Saliguorivnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
1125fb6c7a8Saliguori
11376655d6dSaliguorivnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
114807544e2Saliguori
115a558ee17SJuan Quintelavnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
1164fb240a4Sbellard
1175fb6c7a8Saliguorivnc-tls.o: vnc-tls.c vnc.h
1185fb6c7a8Saliguori
1195fb6c7a8Saliguorivnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
1205fb6c7a8Saliguori
1212f9606b3Saliguorivnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
1222f9606b3Saliguori
12370a4568fSCorentin Charyvnc-encoding-zlib.o: vnc.h
12470a4568fSCorentin Chary
12570a4568fSCorentin Charyvnc-encoding-hextile.o: vnc.h
12670a4568fSCorentin Chary
127380282b0SCorentin Charyvnc-encoding-tight.o: vnc.h vnc-encoding-tight.h
128380282b0SCorentin Chary
1290483755aSaliguoricurses.o: curses.c keymaps.h curses_keys.h
1304d3b6f6eSbalrog
131a558ee17SJuan Quintelabt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
1324fb240a4Sbellard
133e4d5639dSAmit Shahiov.o: iov.c iov.h
134e4d5639dSAmit Shah
1354fb240a4Sbellard######################################################################
1364fb240a4Sbellard
1373c089e15SJuan Quintelaqemu-img.o: qemu-img-cmds.h
1383c089e15SJuan Quintelaqemu-img.o qemu-tool.o qemu-nbd.o qemu-io.o: $(GENERATED_HEADERS)
139153859beSStuart Brady
140526f0ac1SMarkus Armbrusterqemu-img$(EXESUF): qemu-img.o qemu-tool.o qemu-error.o $(block-obj-y) $(qobject-obj-y)
1414fb240a4Sbellard
142526f0ac1SMarkus Armbrusterqemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o qemu-error.o $(block-obj-y) $(qobject-obj-y)
1433aa892d7Saliguori
144526f0ac1SMarkus Armbrusterqemu-io$(EXESUF): qemu-io.o cmd.o qemu-tool.o qemu-error.o $(block-obj-y) $(qobject-obj-y)
1450a8e1acdSaliguori
146153859beSStuart Bradyqemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
147153859beSStuart Brady	$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $@")
148153859beSStuart Brady
1494091da4bSJan Kiszkacheck-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o: $(GENERATED_HEADERS)
1504091da4bSJan Kiszka
15133837ba6SLuiz Capitulinocheck-qint: check-qint.o qint.o qemu-malloc.o
1525de65a07SLuiz Capitulinocheck-qstring: check-qstring.o qstring.o qemu-malloc.o
153acc3b033SMarkus Armbrustercheck-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qemu-malloc.o qlist.o
1543aa3dcffSLuiz Capitulinocheck-qlist: check-qlist.o qlist.o qint.o qemu-malloc.o
1559c9efb6bSAnthony Liguoricheck-qfloat: check-qfloat.o qfloat.o qemu-malloc.o
156422c46a8SAnthony Liguoricheck-qjson: check-qjson.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o qjson.o json-streamer.o json-lexer.o json-parser.o qemu-malloc.o
15733837ba6SLuiz Capitulino
15831e31b8aSbellardclean:
1592d80ae89Sbellard# avoid old build problems by removing potentially incorrect old files
16025be210fSJuan Quintela	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
16186e840eeSaurel32	rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
162e1144d00SMark McLoughlin	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d
16307b44ce9SBlue Swirl	rm -f qemu-img-cmds.h
1647d3505c5Sbellard	$(MAKE) -C tests clean
1654d904533SBlue Swirl	for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser libdis libdis-user; do \
166fc8e320eSMagnus Damm	if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
167626df76aSbellard        done
16831e31b8aSbellard
1697d13299dSbellarddistclean: clean
170fc8e320eSMagnus Damm	rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi
171a992fe3dSPaul Brook	rm -f config-all-devices.mak
172fc8e320eSMagnus Damm	rm -f roms/seabios/config.mak roms/vgabios/config.mak
17320cc9997SStefan Weil	rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pdf,pg,toc,tp,vr}
1744d904533SBlue Swirl	for d in $(TARGET_DIRS) libhw32 libhw64 libuser libdis libdis-user; do \
175bc1b050dSbellard	rm -rf $$d || exit 1 ; \
17676bc6838Sbellard        done
1777d13299dSbellard
178fed4a9adSbellardKEYMAPS=da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv \
179fed4a9adSbellardar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \
180fed4a9adSbellardcommon  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr
181fed4a9adSbellard
18277755340Sthsifdef INSTALL_BLOBS
18377755340SthsBLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
184e5d01b06Saurel32video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
1855309e5fbSStefan Weilgpxe-eepro100-80861209.rom \
1865309e5fbSStefan Weilgpxe-eepro100-80861229.rom \
1875309e5fbSStefan Weilpxe-e1000.bin \
18888e2b0a5SStefan Weilpxe-ne2k_pci.bin pxe-pcnet.bin \
18988e2b0a5SStefan Weilpxe-rtl8139.bin pxe-virtio.bin \
190253d0942SAlexander Grafbamboo.dtb petalogix-s3adsp1800.dtb \
191fe270d04SAlexander Grafmultiboot.bin linuxboot.bin \
192fe270d04SAlexander Grafs390-zipl.rom
19377755340Sthselse
19477755340SthsBLOBS=
19577755340Sthsendif
19677755340Sths
19738954dcaSpbrookinstall-doc: $(DOCS)
19858f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(docdir)"
19958f8aeadSaliguori	$(INSTALL_DATA) qemu-doc.html  qemu-tech.html "$(DESTDIR)$(docdir)"
20096d409ebSJuan Quintelaifdef CONFIG_POSIX
20158f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
20258f8aeadSaliguori	$(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
20358f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
20458f8aeadSaliguori	$(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
20538954dcaSpbrookendif
20638954dcaSpbrook
207b5ec5ce0Sjohn cooperinstall-sysconfig:
208990caaf1SAndre Przywara	$(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
209990caaf1SAndre Przywara	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
210b5ec5ce0Sjohn cooper
211b5ec5ce0Sjohn cooperinstall: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
21258f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
213932a79dfSthsifneq ($(TOOLS),)
21458f8aeadSaliguori	$(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
215932a79dfSthsendif
21677755340Sthsifneq ($(BLOBS),)
21758f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(datadir)"
21877755340Sths	set -e; for x in $(BLOBS); do \
21958f8aeadSaliguori		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
220ad064840Spbrook	done
22177755340Sthsendif
22258f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
22318be8d77Sblueswir1	set -e; for x in $(KEYMAPS); do \
22479fd42aaSAnthony Liguori		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
225ad064840Spbrook	done
226626df76aSbellard	for d in $(TARGET_DIRS); do \
2277d3505c5Sbellard	$(MAKE) -C $$d $@ || exit 1 ; \
228626df76aSbellard        done
229612384d7Sbellard
230367e86e8Sbellard# various test targets
2319b0b8203Sbellardtest speed: all
2327d3505c5Sbellard	$(MAKE) -C tests $@
23331e31b8aSbellard
23421d4e8e3SAlexandre Bique.PHONY: TAGS
235367e86e8SbellardTAGS:
23621d4e8e3SAlexandre Bique	find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
23731e31b8aSbellard
2386688bc6dSbellardcscope:
2396688bc6dSbellard	rm -f ./cscope.*
240ede46085Saurel32	find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
2416688bc6dSbellard	cscope -b
2426688bc6dSbellard
2433ef693a0Sbellard# documentation
24401668d98SStefan WeilMAKEINFO=makeinfo
24501668d98SStefan WeilMAKEINFOFLAGS=--no-headers --no-split --number-sections
24620cc9997SStefan WeilTEXIFLAG=$(if $(V),,--quiet)
24720cc9997SStefan Weil%.dvi: %.texi
24820cc9997SStefan Weil	$(call quiet-command,texi2dvi $(TEXIFLAG) -I . $<,"  GEN   $@")
24920cc9997SStefan Weil
2501f673135Sbellard%.html: %.texi
25101668d98SStefan Weil	$(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) --html $< -o $@, \
25201668d98SStefan Weil	"  GEN   $@")
2533ef693a0Sbellard
254f3548328Sbellard%.info: %.texi
25501668d98SStefan Weil	$(call quiet-command,$(MAKEINFO) $< -o $@,"  GEN   $@")
256f3548328Sbellard
25720cc9997SStefan Weil%.pdf: %.texi
25820cc9997SStefan Weil	$(call quiet-command,texi2pdf $(TEXIFLAG) -I . $<,"  GEN   $@")
2595824d651Sblueswir1
2605824d651Sblueswir1qemu-options.texi: $(SRC_PATH)/qemu-options.hx
2610d00e563Saliguori	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
262f3548328Sbellard
2632313086aSBlue Swirlqemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
2642313086aSBlue Swirl	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
2652313086aSBlue Swirl
266*b40292e7SJan KiszkaQMP/qmp-commands.txt: $(SRC_PATH)/qemu-monitor.hx
267*b40292e7SJan Kiszka	$(call quiet-command,sh $(SRC_PATH)/hxtool -q < $< > $@,"  GEN   $@")
268*b40292e7SJan Kiszka
269153859beSStuart Bradyqemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
270153859beSStuart Brady	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
271153859beSStuart Brady
2722313086aSBlue Swirlqemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
2730d00e563Saliguori	$(call quiet-command, \
2740d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
2750d00e563Saliguori	  pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
2760d00e563Saliguori	  "  GEN   $@")
2775a67135aSbellard
278153859beSStuart Bradyqemu-img.1: qemu-img.texi qemu-img-cmds.texi
2790d00e563Saliguori	$(call quiet-command, \
2800d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
2810d00e563Saliguori	  pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
2820d00e563Saliguori	  "  GEN   $@")
283acd935efSbellard
2847a5ca864Sbellardqemu-nbd.8: qemu-nbd.texi
2850d00e563Saliguori	$(call quiet-command, \
2860d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
2870d00e563Saliguori	  pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
2880d00e563Saliguori	  "  GEN   $@")
2897a5ca864Sbellard
2900cb3fb1eSpbrookdvi: qemu-doc.dvi qemu-tech.dvi
2910cb3fb1eSpbrookhtml: qemu-doc.html qemu-tech.html
29220cc9997SStefan Weilinfo: qemu-doc.info qemu-tech.info
29320cc9997SStefan Weilpdf: qemu-doc.pdf qemu-tech.pdf
2940cb3fb1eSpbrook
29520cc9997SStefan Weilqemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \
29620cc9997SStefan Weil	qemu-img.texi qemu-nbd.texi qemu-options.texi \
29720cc9997SStefan Weil	qemu-monitor.texi qemu-img-cmds.texi
298818220f5Saliguori
299df5cf721SthsVERSION ?= $(shell cat VERSION)
300df5cf721SthsFILE = qemu-$(VERSION)
301586314f2Sbellard
3021e43adfcSbellard# tar release (use 'make -k tar' on a checkouted tree)
303586314f2Sbellardtar:
304586314f2Sbellard	rm -rf /tmp/$(FILE)
3051e43adfcSbellard	cp -r . /tmp/$(FILE)
30699c6c082Saurel32	cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
307586314f2Sbellard	rm -rf /tmp/$(FILE)
308586314f2Sbellard
3094c0a6db0SStuart BradySYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
3104c0a6db0SStuart BradySYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
3114c0a6db0SStuart Brady             $(patsubst %-softmmu,qemu-system-%, \
3124c0a6db0SStuart Brady             $(SYSTEM_TARGETS)))
3134c0a6db0SStuart Brady
3144c0a6db0SStuart BradyUSER_TARGETS=$(filter %-user,$(TARGET_DIRS))
3154c0a6db0SStuart BradyUSER_PROGS=$(patsubst %-bsd-user,qemu-%, \
3164c0a6db0SStuart Brady           $(patsubst %-darwin-user,qemu-%, \
3174c0a6db0SStuart Brady           $(patsubst %-linux-user,qemu-%, \
3184c0a6db0SStuart Brady           $(USER_TARGETS))))
3194c0a6db0SStuart Brady
32076b62fd0Sbellard# generate a binary distribution
321d691f669Sbellardtarbin:
32218be8d77Sblueswir1	cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
3234c0a6db0SStuart Brady	$(patsubst %,$(bindir)/%, $(SYSTEM_PROGS)) \
3244c0a6db0SStuart Brady	$(patsubst %,$(bindir)/%, $(USER_PROGS)) \
325b932cabaSbellard	$(bindir)/qemu-img \
3267a5ca864Sbellard	$(bindir)/qemu-nbd \
3277efa4387Sbellard	$(datadir)/bios.bin \
3287efa4387Sbellard	$(datadir)/vgabios.bin \
329de9258a8Sbellard	$(datadir)/vgabios-cirrus.bin \
330637f6cd7Sbellard	$(datadir)/ppc_rom.bin \
331d5295253Sbellard	$(datadir)/video.x \
3320986ac3bSbellard	$(datadir)/openbios-sparc32 \
333938255d2Sblueswir1	$(datadir)/openbios-sparc64 \
334e5d01b06Saurel32	$(datadir)/openbios-ppc \
33519c80e50Sbellard	$(datadir)/pxe-ne2k_pci.bin \
33619c80e50Sbellard	$(datadir)/pxe-rtl8139.bin \
33719c80e50Sbellard	$(datadir)/pxe-pcnet.bin \
3382991990bSaliguori	$(datadir)/pxe-e1000.bin \
3391f50f8d1Sbellard	$(docdir)/qemu-doc.html \
3401f50f8d1Sbellard	$(docdir)/qemu-tech.html \
34140e8a53bSaurel32	$(mandir)/man1/qemu.1 \
34240e8a53bSaurel32	$(mandir)/man1/qemu-img.1 \
3437a5ca864Sbellard	$(mandir)/man8/qemu-nbd.8
344d691f669Sbellard
3454fb240a4Sbellard# Include automatically generated dependency files
346e1144d00SMark McLoughlin-include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)
347