xref: /openbmc/qemu/Makefile (revision 25be210f)
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
8e5efe7f5SJuan Quintelaconfig-host.mak: configure
9e5efe7f5SJuan Quintela	@echo $@ is out-of-date, running configure
10e5efe7f5SJuan Quintela	@sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
1155d7e8f6Saurel32else
1255d7e8f6Saurel32config-host.mak:
1355d7e8f6Saurel32	@echo "Please call configure before running make!"
1455d7e8f6Saurel32	@exit 1
1555d7e8f6Saurel32endif
16766a487aSbellard
17d9ace8b3SJuan Quintela# Don't try to regenerate Makefile or configure
18d9ace8b3SJuan Quintela# We don't generate any of them
19d9ace8b3SJuan QuintelaMakefile: ;
20d9ace8b3SJuan Quintelaconfigure: ;
21d9ace8b3SJuan Quintela
22818220f5Saliguori.PHONY: all clean cscope distclean dvi html info install install-doc \
239c927650SJuan Quintela	recurse-all speed tar tarbin test build-all
240cb3fb1eSpbrook
258c462f8fSpbrookVPATH=$(SRC_PATH):$(SRC_PATH)/hw
268c462f8fSpbrook
273e2e0e6bSJuan QuintelaLIBS+=-lz $(LIBS_TOOLS)
2867c0f08dSJuan Quintela
29cc8ae6deSpbrookifdef BUILD_DOCS
307a5ca864SbellardDOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8
31cc8ae6deSpbrookelse
32cc8ae6deSpbrookDOCS=
33cc8ae6deSpbrookendif
347d13299dSbellard
351215c6e7SJuan QuintelaSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
361215c6e7SJuan Quintela
371215c6e7SJuan Quintelabuild-all: config-host.h
381215c6e7SJuan Quintela	$(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) $(TOOLS) $(DOCS) recurse-all,)
39b9dea4fbSpbrook
401215c6e7SJuan Quintelaconfig-host.h: config-host.h-timestamp
411215c6e7SJuan Quintelaconfig-host.h-timestamp: config-host.mak
421215c6e7SJuan Quintela
43cec7d0b6SpbrookSUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
44cec7d0b6Spbrook
451215c6e7SJuan Quintelasubdir-%: config-host.h
460087375eSPaul Brook	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
474aa42531Spbrook
48cec7d0b6Spbrook$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
49c05ac895SPaul Brook
50add16157SBlue Swirl$(filter %-user,$(SUBDIR_RULES)): libuser.a
51add16157SBlue Swirl
52add16157SBlue Swirllibuser.a:
53add16157SBlue Swirl	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libuser V="$(V)" TARGET_DIR="$*/" all,)
54add16157SBlue Swirl
55c05ac895SPaul BrookROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
56c05ac895SPaul Brookromsubdir-%:
57c05ac895SPaul Brook	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
58c05ac895SPaul Brook
59c05ac895SPaul BrookALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
60c05ac895SPaul Brook
61c05ac895SPaul Brookrecurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
624aa42531Spbrook
63faf07963Spbrook#######################################################################
64319f08eaSJuan Quintela# block-obj-y is code used by both qemu system emulation and qemu-img
65faf07963Spbrook
66319f08eaSJuan Quintelablock-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
67a25a0ef5SAnthony Liguoriblock-obj-y += nbd.o block.o aio.o aes.o osdep.o
684dd75c70SChristoph Hellwigblock-obj-$(CONFIG_POSIX) += posix-aio-compat.o
695c6c3a6cSChristoph Hellwigblock-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
701a65ba76SJuan Quintela
719aebd98aSStefan Weilblock-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
721a65ba76SJuan Quintelablock-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o
731a65ba76SJuan Quintelablock-nested-y += parallels.o nbd.o
74eeb6d45bSJuan Quintelablock-nested-$(CONFIG_WIN32) += raw-win32.o
75eeb6d45bSJuan Quintelablock-nested-$(CONFIG_POSIX) += raw-posix.o
761a65ba76SJuan Quintelablock-nested-$(CONFIG_CURL) += curl.o
771a65ba76SJuan Quintela
781a65ba76SJuan Quintelablock-obj-y +=  $(addprefix block/, $(block-nested-y))
79769ce76dSAlexander Graf
804fb240a4Sbellard######################################################################
812e2ea909Sbellard# libqemu_common.a: Target independent part of system emulation. The
824fb240a4Sbellard# long term path is to suppress *all* target specific code in case of
834fb240a4Sbellard# system emulation, i.e. a single QEMU executable should support all
844fb240a4Sbellard# CPUs and machines.
8547cea614Sbellard
866ef859b3SJuan Quintelaobj-y = $(block-obj-y)
8734005a00SKirill A. Shutemovobj-y += readline.o console.o
88cd01b4a3Saliguori
89c2b023b6SBlue Swirlobj-y += tcg-runtime.o host-utils.o
90afcea8cbSBlue Swirlobj-y += irq.o ptimer.o ioport.o
916ef859b3SJuan Quintelaobj-y += i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o
926ef859b3SJuan Quintelaobj-y += ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o
936ef859b3SJuan Quintelaobj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.o
946ef859b3SJuan Quintelaobj-y += scsi-disk.o cdrom.o
95d52affa7SGerd Hoffmannobj-y += scsi-generic.o scsi-bus.o
966ef859b3SJuan Quintelaobj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
97806b6024SGerd Hoffmannobj-y += usb-serial.o usb-net.o usb-bus.o
986ef859b3SJuan Quintelaobj-y += sd.o ssi-sd.o
996ef859b3SJuan 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
1006ef859b3SJuan Quintelaobj-y += bt-hci-csr.o
1016ef859b3SJuan Quintelaobj-y += buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o
1023b47612bSJuan Quintelaobj-y += qemu-char.o aio.o net-checksum.o savevm.o
1036ef859b3SJuan Quintelaobj-y += msmouse.o ps2.o
104ee6847d1SGerd Hoffmannobj-y += qdev.o qdev-properties.o ssi.o
105a333cd71SBlue Swirlobj-y += qint.o qstring.o qdict.o qemu-config.o
10687ecb68bSpbrook
1070e22fd2fSJuan Quintelaobj-$(CONFIG_BRLAPI) += baum.o
108eeb6d45bSJuan Quintelaobj-$(CONFIG_WIN32) += tap-win32.o
1095ac1fad3SPaolo Bonziniobj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
1104fb240a4Sbellard
11198b068a9SJuan Quintelaaudio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
1120e22fd2fSJuan Quintela
1130e22fd2fSJuan Quintelaaudio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
1140e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_SDL) += sdlaudio.o
1150e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_OSS) += ossaudio.o
1160e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
1170e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ALSA) += alsaaudio.o
1180e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
1190e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_FMOD) += fmodaudio.o
1200e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ESD) += esdaudio.o
1210e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_PA) += paaudio.o
12267f86e8eSJuan Quintelaaudio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
123eda959bdSJuan Quintelaaudio-obj-y += wavcapture.o
1246ef859b3SJuan Quintelaobj-y += $(addprefix audio/, $(audio-obj-y))
1254fb240a4Sbellard
1266ef859b3SJuan Quintelaobj-y += keymaps.o
1270e22fd2fSJuan Quintelaobj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
1280e22fd2fSJuan Quintelaobj-$(CONFIG_CURSES) += curses.o
1296ef859b3SJuan Quintelaobj-y += vnc.o acl.o d3des.o
1300e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
1310e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
1320e22fd2fSJuan Quintelaobj-$(CONFIG_COCOA) += cocoa.o
1330e22fd2fSJuan Quintelaobj-$(CONFIG_IOTHREAD) += qemu-thread.o
134e5d355d1Saliguori
135f835ed1cSJuan Quintelaslirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
136f835ed1cSJuan Quintelaslirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
137f835ed1cSJuan Quintelaslirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o
1380e22fd2fSJuan Quintelaobj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
1394fb240a4Sbellard
1402567f579SBlue Swirl# xen backend driver support
1410e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o
1420e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o
1432567f579SBlue Swirl
144a558ee17SJuan QuintelaQEMU_CFLAGS+=$(CURL_CFLAGS)
145769ce76dSAlexander Graf
1464fb240a4Sbellardcocoa.o: cocoa.m
1474fb240a4Sbellard
1480483755aSaliguorikeymaps.o: keymaps.c keymaps.h
1490483755aSaliguori
150c18a2c36SStefano Stabellinisdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
151c18a2c36SStefano Stabellini
152c18a2c36SStefano Stabellinisdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
153807544e2Saliguori
154a558ee17SJuan Quintelasdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
1554fb240a4Sbellard
15676655d6dSaliguoriacl.o: acl.h acl.c
15776655d6dSaliguori
1582f9606b3Saliguorivnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
1595fb6c7a8Saliguori
16076655d6dSaliguorivnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
161807544e2Saliguori
162a558ee17SJuan Quintelavnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
1634fb240a4Sbellard
1645fb6c7a8Saliguorivnc-tls.o: vnc-tls.c vnc.h
1655fb6c7a8Saliguori
1665fb6c7a8Saliguorivnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
1675fb6c7a8Saliguori
1682f9606b3Saliguorivnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
1692f9606b3Saliguori
1700483755aSaliguoricurses.o: curses.c keymaps.h curses_keys.h
1714d3b6f6eSbalrog
172a558ee17SJuan Quintelabt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
1734fb240a4Sbellard
1746ef859b3SJuan Quintelalibqemu_common.a: $(obj-y)
1754fb240a4Sbellard
1764fb240a4Sbellard######################################################################
1774fb240a4Sbellard
178153859beSStuart Bradyqemu-img.o: qemu-img-cmds.h
179153859beSStuart Brady
180a25a0ef5SAnthony Liguoriqemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y)
1814fb240a4Sbellard
182a25a0ef5SAnthony Liguoriqemu-nbd$(EXESUF):  qemu-nbd.o qemu-tool.o $(block-obj-y)
1833aa892d7Saliguori
184a25a0ef5SAnthony Liguoriqemu-io$(EXESUF):  qemu-io.o qemu-tool.o cmd.o $(block-obj-y)
1850a8e1acdSaliguori
186153859beSStuart Bradyqemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
187153859beSStuart Brady	$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $@")
188153859beSStuart Brady
18933837ba6SLuiz Capitulinocheck-qint: check-qint.o qint.o qemu-malloc.o
1905de65a07SLuiz Capitulinocheck-qstring: check-qstring.o qstring.o qemu-malloc.o
1917b8c51adSLuiz Capitulinocheck-qdict: check-qdict.o qdict.o qint.o qstring.o qemu-malloc.o
19233837ba6SLuiz Capitulino
19331e31b8aSbellardclean:
1942d80ae89Sbellard# avoid old build problems by removing potentially incorrect old files
195*25be210fSJuan 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
19686e840eeSaurel32	rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
197019d6b8fSAnthony Liguori	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d
19807b44ce9SBlue Swirl	rm -f qemu-img-cmds.h
1997d3505c5Sbellard	$(MAKE) -C tests clean
200add16157SBlue Swirl	for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \
2017d3505c5Sbellard	$(MAKE) -C $$d $@ || exit 1 ; \
202626df76aSbellard        done
20331e31b8aSbellard
2047d13299dSbellarddistclean: clean
2051215c6e7SJuan Quintela	rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi
2060cb3fb1eSpbrook	rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
207add16157SBlue Swirl	for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \
208bc1b050dSbellard	rm -rf $$d || exit 1 ; \
20976bc6838Sbellard        done
2107d13299dSbellard
211fed4a9adSbellardKEYMAPS=da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv \
212fed4a9adSbellardar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \
213fed4a9adSbellardcommon  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr
214fed4a9adSbellard
21577755340Sthsifdef INSTALL_BLOBS
21677755340SthsBLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
217e5d01b06Saurel32video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
218e5d01b06Saurel32pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \
219253d0942SAlexander Grafbamboo.dtb petalogix-s3adsp1800.dtb \
220253d0942SAlexander Grafmultiboot.bin
22177755340Sthselse
22277755340SthsBLOBS=
22377755340Sthsendif
22477755340Sths
22538954dcaSpbrookinstall-doc: $(DOCS)
22658f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(docdir)"
22758f8aeadSaliguori	$(INSTALL_DATA) qemu-doc.html  qemu-tech.html "$(DESTDIR)$(docdir)"
22896d409ebSJuan Quintelaifdef CONFIG_POSIX
22958f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
23058f8aeadSaliguori	$(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
23158f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
23258f8aeadSaliguori	$(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
23338954dcaSpbrookendif
23438954dcaSpbrook
23538954dcaSpbrookinstall: all $(if $(BUILD_DOCS),install-doc)
23658f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
237932a79dfSthsifneq ($(TOOLS),)
23858f8aeadSaliguori	$(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
239932a79dfSthsendif
24077755340Sthsifneq ($(BLOBS),)
24158f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(datadir)"
24277755340Sths	set -e; for x in $(BLOBS); do \
24358f8aeadSaliguori		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
244ad064840Spbrook	done
24577755340Sthsendif
24658f8aeadSaliguori	$(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
24718be8d77Sblueswir1	set -e; for x in $(KEYMAPS); do \
24879fd42aaSAnthony Liguori		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
249ad064840Spbrook	done
250626df76aSbellard	for d in $(TARGET_DIRS); do \
2517d3505c5Sbellard	$(MAKE) -C $$d $@ || exit 1 ; \
252626df76aSbellard        done
253612384d7Sbellard
254367e86e8Sbellard# various test targets
2559b0b8203Sbellardtest speed: all
2567d3505c5Sbellard	$(MAKE) -C tests $@
25731e31b8aSbellard
25821d4e8e3SAlexandre Bique.PHONY: TAGS
259367e86e8SbellardTAGS:
26021d4e8e3SAlexandre Bique	find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
26131e31b8aSbellard
2626688bc6dSbellardcscope:
2636688bc6dSbellard	rm -f ./cscope.*
264ede46085Saurel32	find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
2656688bc6dSbellard	cscope -b
2666688bc6dSbellard
2673ef693a0Sbellard# documentation
2681f673135Sbellard%.html: %.texi
2690d00e563Saliguori	$(call quiet-command,texi2html -I=. -monolithic -number $<,"  GEN   $@")
2703ef693a0Sbellard
271f3548328Sbellard%.info: %.texi
2720d00e563Saliguori	$(call quiet-command,makeinfo -I . $< -o $@,"  GEN   $@")
273f3548328Sbellard
274f3548328Sbellard%.dvi: %.texi
2750d00e563Saliguori	$(call quiet-command,texi2dvi -I . $<,"  GEN   $@")
2765824d651Sblueswir1
2775824d651Sblueswir1qemu-options.texi: $(SRC_PATH)/qemu-options.hx
2780d00e563Saliguori	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
279f3548328Sbellard
2802313086aSBlue Swirlqemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
2812313086aSBlue Swirl	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
2822313086aSBlue Swirl
283153859beSStuart Bradyqemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
284153859beSStuart Brady	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
285153859beSStuart Brady
2862313086aSBlue Swirlqemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
2870d00e563Saliguori	$(call quiet-command, \
2880d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
2890d00e563Saliguori	  pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
2900d00e563Saliguori	  "  GEN   $@")
2915a67135aSbellard
292153859beSStuart Bradyqemu-img.1: qemu-img.texi qemu-img-cmds.texi
2930d00e563Saliguori	$(call quiet-command, \
2940d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
2950d00e563Saliguori	  pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
2960d00e563Saliguori	  "  GEN   $@")
297acd935efSbellard
2987a5ca864Sbellardqemu-nbd.8: qemu-nbd.texi
2990d00e563Saliguori	$(call quiet-command, \
3000d00e563Saliguori	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
3010d00e563Saliguori	  pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
3020d00e563Saliguori	  "  GEN   $@")
3037a5ca864Sbellard
3040cb3fb1eSpbrookinfo: qemu-doc.info qemu-tech.info
3050cb3fb1eSpbrook
3060cb3fb1eSpbrookdvi: qemu-doc.dvi qemu-tech.dvi
3070cb3fb1eSpbrook
3080cb3fb1eSpbrookhtml: qemu-doc.html qemu-tech.html
3090cb3fb1eSpbrook
310153859beSStuart 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
311818220f5Saliguori
312df5cf721SthsVERSION ?= $(shell cat VERSION)
313df5cf721SthsFILE = qemu-$(VERSION)
314586314f2Sbellard
3151e43adfcSbellard# tar release (use 'make -k tar' on a checkouted tree)
316586314f2Sbellardtar:
317586314f2Sbellard	rm -rf /tmp/$(FILE)
3181e43adfcSbellard	cp -r . /tmp/$(FILE)
31999c6c082Saurel32	cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
320586314f2Sbellard	rm -rf /tmp/$(FILE)
321586314f2Sbellard
32276b62fd0Sbellard# generate a binary distribution
323d691f669Sbellardtarbin:
32418be8d77Sblueswir1	cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
32543095f31Sbellard	$(bindir)/qemu \
32643095f31Sbellard	$(bindir)/qemu-system-x86_64 \
32740e8a53bSaurel32	$(bindir)/qemu-system-arm \
32840e8a53bSaurel32	$(bindir)/qemu-system-cris \
32940e8a53bSaurel32	$(bindir)/qemu-system-m68k \
330bc6291a1SEdgar E. Iglesias	$(bindir)/qemu-system-microblaze \
33193856aacSbellard	$(bindir)/qemu-system-mips \
33238260998Spbrook	$(bindir)/qemu-system-mipsel \
333fbe4f65bSths	$(bindir)/qemu-system-mips64 \
334fbe4f65bSths	$(bindir)/qemu-system-mips64el \
33540e8a53bSaurel32	$(bindir)/qemu-system-ppc \
33640e8a53bSaurel32	$(bindir)/qemu-system-ppcemb \
33740e8a53bSaurel32	$(bindir)/qemu-system-ppc64 \
338ff1aaf65Sths	$(bindir)/qemu-system-sh4 \
33985ffbdfcSths	$(bindir)/qemu-system-sh4eb \
34040e8a53bSaurel32	$(bindir)/qemu-system-sparc \
3417efa4387Sbellard	$(bindir)/qemu-i386 \
342f0403c03Sbellard	$(bindir)/qemu-x86_64 \
34340e8a53bSaurel32	$(bindir)/qemu-alpha \
3447efa4387Sbellard	$(bindir)/qemu-arm \
345ea31eb5bSbellard	$(bindir)/qemu-armeb \
34640e8a53bSaurel32	$(bindir)/qemu-cris \
34740e8a53bSaurel32	$(bindir)/qemu-m68k \
348bc6291a1SEdgar E. Iglesias	$(bindir)/qemu-microblaze \
34940e8a53bSaurel32	$(bindir)/qemu-mips \
35040e8a53bSaurel32	$(bindir)/qemu-mipsel \
3517efa4387Sbellard	$(bindir)/qemu-ppc \
352d4082e95Sj_mayer	$(bindir)/qemu-ppc64 \
353f0403c03Sbellard	$(bindir)/qemu-ppc64abi32 \
354ff1aaf65Sths	$(bindir)/qemu-sh4 \
35585ffbdfcSths	$(bindir)/qemu-sh4eb \
35640e8a53bSaurel32	$(bindir)/qemu-sparc \
35740e8a53bSaurel32	$(bindir)/qemu-sparc64 \
35840e8a53bSaurel32	$(bindir)/qemu-sparc32plus \
359b932cabaSbellard	$(bindir)/qemu-img \
3607a5ca864Sbellard	$(bindir)/qemu-nbd \
3617efa4387Sbellard	$(datadir)/bios.bin \
3627efa4387Sbellard	$(datadir)/vgabios.bin \
363de9258a8Sbellard	$(datadir)/vgabios-cirrus.bin \
364637f6cd7Sbellard	$(datadir)/ppc_rom.bin \
365d5295253Sbellard	$(datadir)/video.x \
3660986ac3bSbellard	$(datadir)/openbios-sparc32 \
367938255d2Sblueswir1	$(datadir)/openbios-sparc64 \
368e5d01b06Saurel32	$(datadir)/openbios-ppc \
36919c80e50Sbellard	$(datadir)/pxe-ne2k_pci.bin \
37019c80e50Sbellard	$(datadir)/pxe-rtl8139.bin \
37119c80e50Sbellard	$(datadir)/pxe-pcnet.bin \
3722991990bSaliguori	$(datadir)/pxe-e1000.bin \
3731f50f8d1Sbellard	$(docdir)/qemu-doc.html \
3741f50f8d1Sbellard	$(docdir)/qemu-tech.html \
37540e8a53bSaurel32	$(mandir)/man1/qemu.1 \
37640e8a53bSaurel32	$(mandir)/man1/qemu-img.1 \
3777a5ca864Sbellard	$(mandir)/man8/qemu-nbd.8
378d691f669Sbellard
3794fb240a4Sbellard# Include automatically generated dependency files
380019d6b8fSAnthony Liguori-include $(wildcard *.d audio/*.d slirp/*.d block/*.d)
381