xref: /openbmc/qemu/Makefile (revision add16157)
10cb3fb1eSpbrook# Makefile for QEMU.
20cb3fb1eSpbrook
355d7e8f6Saurel32ifneq ($(wildcard config-host.mak),)
41ad2134fSPaul Brook# Put the all: rule here so that config-host.mak can contain dependencies.
51ad2134fSPaul Brookall: build-all
6ad064840Spbrookinclude config-host.mak
717759187Saliguoriinclude $(SRC_PATH)/rules.mak
855d7e8f6Saurel32else
955d7e8f6Saurel32config-host.mak:
1055d7e8f6Saurel32	@echo "Please call configure before running make!"
1155d7e8f6Saurel32	@exit 1
1255d7e8f6Saurel32endif
13766a487aSbellard
14818220f5Saliguori.PHONY: all clean cscope distclean dvi html info install install-doc \
15818220f5Saliguori	recurse-all speed tar tarbin test
160cb3fb1eSpbrook
178c462f8fSpbrookVPATH=$(SRC_PATH):$(SRC_PATH)/hw
188c462f8fSpbrook
193e2e0e6bSJuan QuintelaLIBS+=-lz $(LIBS_TOOLS)
2067c0f08dSJuan Quintela
21cc8ae6deSpbrookifdef BUILD_DOCS
227a5ca864SbellardDOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8
23cc8ae6deSpbrookelse
24cc8ae6deSpbrookDOCS=
25cc8ae6deSpbrookendif
267d13299dSbellard
27c05ac895SPaul Brookbuild-all: $(TOOLS) $(DOCS) recurse-all
28b9dea4fbSpbrook
2955d7e8f6Saurel32config-host.mak: configure
3055d7e8f6Saurel32ifneq ($(wildcard config-host.mak),)
3155d7e8f6Saurel32	@echo $@ is out-of-date, running configure
32052ff921Sblueswir1	@sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
3355d7e8f6Saurel32endif
3455d7e8f6Saurel32
350087375eSPaul BrookSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
36cec7d0b6SpbrookSUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
37cec7d0b6Spbrook
3886e840eeSaurel32subdir-%:
390087375eSPaul Brook	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
404aa42531Spbrook
41cec7d0b6Spbrook$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
42c05ac895SPaul Brook
43*add16157SBlue Swirl$(filter %-user,$(SUBDIR_RULES)): libuser.a
44*add16157SBlue Swirl
45*add16157SBlue Swirllibuser.a:
46*add16157SBlue Swirl	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libuser V="$(V)" TARGET_DIR="$*/" all,)
47*add16157SBlue Swirl
48c05ac895SPaul BrookROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
49c05ac895SPaul Brookromsubdir-%:
50c05ac895SPaul Brook	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
51c05ac895SPaul Brook
52c05ac895SPaul BrookALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
53c05ac895SPaul Brook
54c05ac895SPaul Brookrecurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
554aa42531Spbrook
56faf07963Spbrook#######################################################################
57319f08eaSJuan Quintela# block-obj-y is code used by both qemu system emulation and qemu-img
58faf07963Spbrook
59319f08eaSJuan Quintelablock-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
60a25a0ef5SAnthony Liguoriblock-obj-y += nbd.o block.o aio.o aes.o osdep.o
614dd75c70SChristoph Hellwigblock-obj-$(CONFIG_POSIX) += posix-aio-compat.o
625c6c3a6cSChristoph Hellwigblock-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
631a65ba76SJuan Quintela
649aebd98aSStefan Weilblock-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
651a65ba76SJuan Quintelablock-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o
661a65ba76SJuan Quintelablock-nested-y += parallels.o nbd.o
67eeb6d45bSJuan Quintelablock-nested-$(CONFIG_WIN32) += raw-win32.o
68eeb6d45bSJuan Quintelablock-nested-$(CONFIG_POSIX) += raw-posix.o
691a65ba76SJuan Quintelablock-nested-$(CONFIG_CURL) += curl.o
701a65ba76SJuan Quintela
711a65ba76SJuan Quintelablock-obj-y +=  $(addprefix block/, $(block-nested-y))
72769ce76dSAlexander Graf
734fb240a4Sbellard######################################################################
742e2ea909Sbellard# libqemu_common.a: Target independent part of system emulation. The
754fb240a4Sbellard# long term path is to suppress *all* target specific code in case of
764fb240a4Sbellard# system emulation, i.e. a single QEMU executable should support all
774fb240a4Sbellard# CPUs and machines.
7847cea614Sbellard
796ef859b3SJuan Quintelaobj-y = $(block-obj-y)
8034005a00SKirill A. Shutemovobj-y += readline.o console.o
81cd01b4a3Saliguori
82c2b023b6SBlue Swirlobj-y += tcg-runtime.o host-utils.o
83afcea8cbSBlue Swirlobj-y += irq.o ptimer.o ioport.o
846ef859b3SJuan Quintelaobj-y += i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o
856ef859b3SJuan Quintelaobj-y += ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o
866ef859b3SJuan Quintelaobj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.o
876ef859b3SJuan Quintelaobj-y += scsi-disk.o cdrom.o
88d52affa7SGerd Hoffmannobj-y += scsi-generic.o scsi-bus.o
896ef859b3SJuan Quintelaobj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
90806b6024SGerd Hoffmannobj-y += usb-serial.o usb-net.o usb-bus.o
916ef859b3SJuan Quintelaobj-y += sd.o ssi-sd.o
926ef859b3SJuan Quintelaobj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
936ef859b3SJuan Quintelaobj-y += bt-hci-csr.o
946ef859b3SJuan Quintelaobj-y += buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o
953b47612bSJuan Quintelaobj-y += qemu-char.o aio.o net-checksum.o savevm.o
966ef859b3SJuan Quintelaobj-y += msmouse.o ps2.o
97ee6847d1SGerd Hoffmannobj-y += qdev.o qdev-properties.o ssi.o
98a333cd71SBlue Swirlobj-y += qint.o qstring.o qdict.o qemu-config.o
9987ecb68bSpbrook
1000e22fd2fSJuan Quintelaobj-$(CONFIG_BRLAPI) += baum.o
101eeb6d45bSJuan Quintelaobj-$(CONFIG_WIN32) += tap-win32.o
1025ac1fad3SPaolo Bonziniobj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
1034fb240a4Sbellard
10498b068a9SJuan Quintelaaudio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
1050e22fd2fSJuan Quintela
1060e22fd2fSJuan Quintelaaudio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
1070e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_SDL) += sdlaudio.o
1080e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_OSS) += ossaudio.o
1090e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
1100e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ALSA) += alsaaudio.o
1110e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
1120e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_FMOD) += fmodaudio.o
1130e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ESD) += esdaudio.o
1140e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_PA) += paaudio.o
11567f86e8eSJuan Quintelaaudio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
116eda959bdSJuan Quintelaaudio-obj-y += wavcapture.o
1176ef859b3SJuan Quintelaobj-y += $(addprefix audio/, $(audio-obj-y))
1184fb240a4Sbellard
1196ef859b3SJuan Quintelaobj-y += keymaps.o
1200e22fd2fSJuan Quintelaobj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
1210e22fd2fSJuan Quintelaobj-$(CONFIG_CURSES) += curses.o
1226ef859b3SJuan Quintelaobj-y += vnc.o acl.o d3des.o
1230e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
1240e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
1250e22fd2fSJuan Quintelaobj-$(CONFIG_COCOA) += cocoa.o
1260e22fd2fSJuan Quintelaobj-$(CONFIG_IOTHREAD) += qemu-thread.o
127e5d355d1Saliguori
128f835ed1cSJuan Quintelaslirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
129f835ed1cSJuan Quintelaslirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
130f835ed1cSJuan Quintelaslirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o
1310e22fd2fSJuan Quintelaobj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
1324fb240a4Sbellard
1332567f579SBlue Swirl# xen backend driver support
1340e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o
1350e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o
1362567f579SBlue Swirl
137a558ee17SJuan QuintelaQEMU_CFLAGS+=$(CURL_CFLAGS)
138769ce76dSAlexander Graf
1394fb240a4Sbellardcocoa.o: cocoa.m
1404fb240a4Sbellard
1410483755aSaliguorikeymaps.o: keymaps.c keymaps.h
1420483755aSaliguori
143c18a2c36SStefano Stabellinisdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
144c18a2c36SStefano Stabellini
145c18a2c36SStefano Stabellinisdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
146807544e2Saliguori
147a558ee17SJuan Quintelasdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
1484fb240a4Sbellard
14976655d6dSaliguoriacl.o: acl.h acl.c
15076655d6dSaliguori
1512f9606b3Saliguorivnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
1525fb6c7a8Saliguori
15376655d6dSaliguorivnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
154807544e2Saliguori
155a558ee17SJuan Quintelavnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
1564fb240a4Sbellard
1575fb6c7a8Saliguorivnc-tls.o: vnc-tls.c vnc.h
1585fb6c7a8Saliguori
1595fb6c7a8Saliguorivnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
1605fb6c7a8Saliguori
1612f9606b3Saliguorivnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
1622f9606b3Saliguori
1630483755aSaliguoricurses.o: curses.c keymaps.h curses_keys.h
1644d3b6f6eSbalrog
165a558ee17SJuan Quintelabt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
1664fb240a4Sbellard
1676ef859b3SJuan Quintelalibqemu_common.a: $(obj-y)
1684fb240a4Sbellard
1694fb240a4Sbellard######################################################################
1704fb240a4Sbellard
171153859beSStuart Bradyqemu-img.o: qemu-img-cmds.h
172153859beSStuart Brady
173a25a0ef5SAnthony Liguoriqemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y)
1744fb240a4Sbellard
175a25a0ef5SAnthony Liguoriqemu-nbd$(EXESUF):  qemu-nbd.o qemu-tool.o $(block-obj-y)
1763aa892d7Saliguori
177a25a0ef5SAnthony Liguoriqemu-io$(EXESUF):  qemu-io.o qemu-tool.o cmd.o $(block-obj-y)
1780a8e1acdSaliguori
179153859beSStuart Bradyqemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
180153859beSStuart Brady	$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $@")
181153859beSStuart Brady
18233837ba6SLuiz Capitulinocheck-qint: check-qint.o qint.o qemu-malloc.o
1835de65a07SLuiz Capitulinocheck-qstring: check-qstring.o qstring.o qemu-malloc.o
1847b8c51adSLuiz Capitulinocheck-qdict: check-qdict.o qdict.o qint.o qstring.o qemu-malloc.o
18533837ba6SLuiz Capitulino
18631e31b8aSbellardclean:
1872d80ae89Sbellard# avoid old build problems by removing potentially incorrect old files
1882d80ae89Sbellard	rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
18986e840eeSaurel32	rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
190019d6b8fSAnthony Liguori	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d
19107b44ce9SBlue Swirl	rm -f qemu-img-cmds.h
1927d3505c5Sbellard	$(MAKE) -C tests clean
193*add16157SBlue Swirl	for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \
1947d3505c5Sbellard	$(MAKE) -C $$d $@ || exit 1 ; \
195626df76aSbellard        done
19631e31b8aSbellard
1977d13299dSbellarddistclean: clean
1984bf6b55bSJuan Quintela	rm -f config-host.mak config-host.h config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi
1990cb3fb1eSpbrook	rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
200*add16157SBlue Swirl	for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \
201bc1b050dSbellard	rm -rf $$d || exit 1 ; \
20276bc6838Sbellard        done
2037d13299dSbellard
204fed4a9adSbellardKEYMAPS=da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv \
205fed4a9adSbellardar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \
206fed4a9adSbellardcommon  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr
207fed4a9adSbellard
20877755340Sthsifdef INSTALL_BLOBS
20977755340SthsBLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
210e5d01b06Saurel32video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
211e5d01b06Saurel32pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \
212253d0942SAlexander Grafbamboo.dtb petalogix-s3adsp1800.dtb \
213253d0942SAlexander Grafmultiboot.bin
21477755340Sthselse
21577755340SthsBLOBS=
21677755340Sthsendif
21777755340Sths
21838954dcaSpbrookinstall-doc: $(DOCS)
21958f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(docdir)"
22058f8aeadSaliguori	$(INSTALL_DATA) qemu-doc.html  qemu-tech.html "$(DESTDIR)$(docdir)"
22196d409ebSJuan Quintelaifdef CONFIG_POSIX
22258f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
22358f8aeadSaliguori	$(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
22458f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
22558f8aeadSaliguori	$(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
22638954dcaSpbrookendif
22738954dcaSpbrook
22838954dcaSpbrookinstall: all $(if $(BUILD_DOCS),install-doc)
22958f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
230932a79dfSthsifneq ($(TOOLS),)
23158f8aeadSaliguori	$(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
232932a79dfSthsendif
23377755340Sthsifneq ($(BLOBS),)
23458f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(datadir)"
23577755340Sths	set -e; for x in $(BLOBS); do \
23658f8aeadSaliguori		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
237ad064840Spbrook	done
23877755340Sthsendif
23958f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
24018be8d77Sblueswir1	set -e; for x in $(KEYMAPS); do \
24179fd42aaSAnthony Liguori		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
242ad064840Spbrook	done
243626df76aSbellard	for d in $(TARGET_DIRS); do \
2447d3505c5Sbellard	$(MAKE) -C $$d $@ || exit 1 ; \
245626df76aSbellard        done
246612384d7Sbellard
247367e86e8Sbellard# various test targets
2489b0b8203Sbellardtest speed: all
2497d3505c5Sbellard	$(MAKE) -C tests $@
25031e31b8aSbellard
25121d4e8e3SAlexandre Bique.PHONY: TAGS
252367e86e8SbellardTAGS:
25321d4e8e3SAlexandre Bique	find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
25431e31b8aSbellard
2556688bc6dSbellardcscope:
2566688bc6dSbellard	rm -f ./cscope.*
257ede46085Saurel32	find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
2586688bc6dSbellard	cscope -b
2596688bc6dSbellard
2603ef693a0Sbellard# documentation
2611f673135Sbellard%.html: %.texi
2620d00e563Saliguori	$(call quiet-command,texi2html -I=. -monolithic -number $<,"  GEN   $@")
2633ef693a0Sbellard
264f3548328Sbellard%.info: %.texi
2650d00e563Saliguori	$(call quiet-command,makeinfo -I . $< -o $@,"  GEN   $@")
266f3548328Sbellard
267f3548328Sbellard%.dvi: %.texi
2680d00e563Saliguori	$(call quiet-command,texi2dvi -I . $<,"  GEN   $@")
2695824d651Sblueswir1
2705824d651Sblueswir1qemu-options.texi: $(SRC_PATH)/qemu-options.hx
2710d00e563Saliguori	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
272f3548328Sbellard
2732313086aSBlue Swirlqemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
2742313086aSBlue Swirl	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
2752313086aSBlue Swirl
276153859beSStuart Bradyqemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
277153859beSStuart Brady	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
278153859beSStuart Brady
2792313086aSBlue Swirlqemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
2800d00e563Saliguori	$(call quiet-command, \
2810d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
2820d00e563Saliguori	  pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
2830d00e563Saliguori	  "  GEN   $@")
2845a67135aSbellard
285153859beSStuart Bradyqemu-img.1: qemu-img.texi qemu-img-cmds.texi
2860d00e563Saliguori	$(call quiet-command, \
2870d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
2880d00e563Saliguori	  pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
2890d00e563Saliguori	  "  GEN   $@")
290acd935efSbellard
2917a5ca864Sbellardqemu-nbd.8: qemu-nbd.texi
2920d00e563Saliguori	$(call quiet-command, \
2930d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
2940d00e563Saliguori	  pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
2950d00e563Saliguori	  "  GEN   $@")
2967a5ca864Sbellard
2970cb3fb1eSpbrookinfo: qemu-doc.info qemu-tech.info
2980cb3fb1eSpbrook
2990cb3fb1eSpbrookdvi: qemu-doc.dvi qemu-tech.dvi
3000cb3fb1eSpbrook
3010cb3fb1eSpbrookhtml: qemu-doc.html qemu-tech.html
3020cb3fb1eSpbrook
303153859beSStuart Bradyqemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-monitor.texi qemu-img-cmds.texi
304818220f5Saliguori
305df5cf721SthsVERSION ?= $(shell cat VERSION)
306df5cf721SthsFILE = qemu-$(VERSION)
307586314f2Sbellard
3081e43adfcSbellard# tar release (use 'make -k tar' on a checkouted tree)
309586314f2Sbellardtar:
310586314f2Sbellard	rm -rf /tmp/$(FILE)
3111e43adfcSbellard	cp -r . /tmp/$(FILE)
31299c6c082Saurel32	cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
313586314f2Sbellard	rm -rf /tmp/$(FILE)
314586314f2Sbellard
31576b62fd0Sbellard# generate a binary distribution
316d691f669Sbellardtarbin:
31718be8d77Sblueswir1	cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
31843095f31Sbellard	$(bindir)/qemu \
31943095f31Sbellard	$(bindir)/qemu-system-x86_64 \
32040e8a53bSaurel32	$(bindir)/qemu-system-arm \
32140e8a53bSaurel32	$(bindir)/qemu-system-cris \
32240e8a53bSaurel32	$(bindir)/qemu-system-m68k \
32393856aacSbellard	$(bindir)/qemu-system-mips \
32438260998Spbrook	$(bindir)/qemu-system-mipsel \
325fbe4f65bSths	$(bindir)/qemu-system-mips64 \
326fbe4f65bSths	$(bindir)/qemu-system-mips64el \
32740e8a53bSaurel32	$(bindir)/qemu-system-ppc \
32840e8a53bSaurel32	$(bindir)/qemu-system-ppcemb \
32940e8a53bSaurel32	$(bindir)/qemu-system-ppc64 \
330ff1aaf65Sths	$(bindir)/qemu-system-sh4 \
33185ffbdfcSths	$(bindir)/qemu-system-sh4eb \
33240e8a53bSaurel32	$(bindir)/qemu-system-sparc \
3337efa4387Sbellard	$(bindir)/qemu-i386 \
334f0403c03Sbellard	$(bindir)/qemu-x86_64 \
33540e8a53bSaurel32	$(bindir)/qemu-alpha \
3367efa4387Sbellard	$(bindir)/qemu-arm \
337ea31eb5bSbellard	$(bindir)/qemu-armeb \
33840e8a53bSaurel32	$(bindir)/qemu-cris \
33940e8a53bSaurel32	$(bindir)/qemu-m68k \
34040e8a53bSaurel32	$(bindir)/qemu-mips \
34140e8a53bSaurel32	$(bindir)/qemu-mipsel \
3427efa4387Sbellard	$(bindir)/qemu-ppc \
343d4082e95Sj_mayer	$(bindir)/qemu-ppc64 \
344f0403c03Sbellard	$(bindir)/qemu-ppc64abi32 \
345ff1aaf65Sths	$(bindir)/qemu-sh4 \
34685ffbdfcSths	$(bindir)/qemu-sh4eb \
34740e8a53bSaurel32	$(bindir)/qemu-sparc \
34840e8a53bSaurel32	$(bindir)/qemu-sparc64 \
34940e8a53bSaurel32	$(bindir)/qemu-sparc32plus \
350b932cabaSbellard	$(bindir)/qemu-img \
3517a5ca864Sbellard	$(bindir)/qemu-nbd \
3527efa4387Sbellard	$(datadir)/bios.bin \
3537efa4387Sbellard	$(datadir)/vgabios.bin \
354de9258a8Sbellard	$(datadir)/vgabios-cirrus.bin \
355637f6cd7Sbellard	$(datadir)/ppc_rom.bin \
356d5295253Sbellard	$(datadir)/video.x \
3570986ac3bSbellard	$(datadir)/openbios-sparc32 \
358938255d2Sblueswir1	$(datadir)/openbios-sparc64 \
359e5d01b06Saurel32	$(datadir)/openbios-ppc \
36019c80e50Sbellard	$(datadir)/pxe-ne2k_pci.bin \
36119c80e50Sbellard	$(datadir)/pxe-rtl8139.bin \
36219c80e50Sbellard	$(datadir)/pxe-pcnet.bin \
3632991990bSaliguori	$(datadir)/pxe-e1000.bin \
3641f50f8d1Sbellard	$(docdir)/qemu-doc.html \
3651f50f8d1Sbellard	$(docdir)/qemu-tech.html \
36640e8a53bSaurel32	$(mandir)/man1/qemu.1 \
36740e8a53bSaurel32	$(mandir)/man1/qemu-img.1 \
3687a5ca864Sbellard	$(mandir)/man8/qemu-nbd.8
369d691f669Sbellard
3704fb240a4Sbellard# Include automatically generated dependency files
371019d6b8fSAnthony Liguori-include $(wildcard *.d audio/*.d slirp/*.d block/*.d)
372