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 1996935aa4SmalcCPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP -MT $@ 204fb240a4SbellardCPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 214a244704SAnthony LiguoriCPPFLAGS += -U_FORTIFY_SOURCE 22766a487aSbellardLIBS= 231f50f8d1Sbellardifdef CONFIG_STATIC 2440293e58SbellardLDFLAGS += -static 251f50f8d1Sbellardendif 26cc8ae6deSpbrookifdef BUILD_DOCS 277a5ca864SbellardDOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 28cc8ae6deSpbrookelse 29cc8ae6deSpbrookDOCS= 30cc8ae6deSpbrookendif 317d13299dSbellard 32e5d355d1SaliguoriLIBS+=$(PTHREADLIBS) 33e5d355d1SaliguoriLIBS+=$(CLOCKLIBS) 3483f64091Sbellard 357e00eb9bSaliguoriifdef CONFIG_SOLARIS 367e00eb9bSaliguoriLIBS+=-lsocket -lnsl -lresolv 377e00eb9bSaliguoriendif 387e00eb9bSaliguori 3903ff3ca3Saliguoriifdef CONFIG_WIN32 4003ff3ca3SaliguoriLIBS+=-lwinmm -lws2_32 -liphlpapi 4103ff3ca3Saliguoriendif 4203ff3ca3Saliguori 43253d0942SAlexander Grafbuild-all: $(TOOLS) $(DOCS) roms recurse-all 44b9dea4fbSpbrook 4555d7e8f6Saurel32config-host.mak: configure 4655d7e8f6Saurel32ifneq ($(wildcard config-host.mak),) 4755d7e8f6Saurel32 @echo $@ is out-of-date, running configure 48052ff921Sblueswir1 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh 4955d7e8f6Saurel32endif 5055d7e8f6Saurel32 510087375eSPaul BrookSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) 52cec7d0b6SpbrookSUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) 53cec7d0b6Spbrook 5486e840eeSaurel32subdir-%: 550087375eSPaul Brook $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) 564aa42531Spbrook 57cec7d0b6Spbrook$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a 58cec7d0b6Spbrook$(filter %-user,$(SUBDIR_RULES)): libqemu_user.a 59cec7d0b6Spbrook 60cec7d0b6Spbrookrecurse-all: $(SUBDIR_RULES) 614aa42531Spbrook 62faf07963Spbrook####################################################################### 63319f08eaSJuan Quintela# block-obj-y is code used by both qemu system emulation and qemu-img 64faf07963Spbrook 65319f08eaSJuan Quintelablock-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o 661a65ba76SJuan Quintelablock-obj-y += nbd.o block.o aio.o aes.o 671a65ba76SJuan Quintela 681a65ba76SJuan Quintelablock-nested-y += cow.o qcow.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o 691a65ba76SJuan Quintelablock-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o 701a65ba76SJuan Quintelablock-nested-y += parallels.o nbd.o 711a65ba76SJuan Quintela 7203ff3ca3Saliguori 7303ff3ca3Saliguoriifdef CONFIG_WIN32 741a65ba76SJuan Quintelablock-nested-y += raw-win32.o 7503ff3ca3Saliguorielse 763c529d93Saliguoriifdef CONFIG_AIO 77319f08eaSJuan Quintelablock-obj-y += posix-aio-compat.o 783c529d93Saliguoriendif 791a65ba76SJuan Quintelablock-nested-y += raw-posix.o 8003ff3ca3Saliguoriendif 8103ff3ca3Saliguori 821a65ba76SJuan Quintelablock-nested-$(CONFIG_CURL) += curl.o 831a65ba76SJuan Quintela 841a65ba76SJuan Quintelablock-obj-y += $(addprefix block/, $(block-nested-y)) 85769ce76dSAlexander Graf 864fb240a4Sbellard###################################################################### 872e2ea909Sbellard# libqemu_common.a: Target independent part of system emulation. The 884fb240a4Sbellard# long term path is to suppress *all* target specific code in case of 894fb240a4Sbellard# system emulation, i.e. a single QEMU executable should support all 904fb240a4Sbellard# CPUs and machines. 9147cea614Sbellard 926ef859b3SJuan Quintelaobj-y = $(block-obj-y) 936ef859b3SJuan Quintelaobj-y += readline.o console.o 94cd01b4a3Saliguori 956ef859b3SJuan Quintelaobj-y += irq.o ptimer.o 966ef859b3SJuan Quintelaobj-y += i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o 976ef859b3SJuan Quintelaobj-y += ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o 986ef859b3SJuan Quintelaobj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.o 996ef859b3SJuan Quintelaobj-y += scsi-disk.o cdrom.o 1006ef859b3SJuan Quintelaobj-y += scsi-generic.o 1016ef859b3SJuan Quintelaobj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o 1026ef859b3SJuan Quintelaobj-y += usb-serial.o usb-net.o 1036ef859b3SJuan Quintelaobj-y += sd.o ssi-sd.o 1046ef859b3SJuan 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 1056ef859b3SJuan Quintelaobj-y += bt-hci-csr.o 1066ef859b3SJuan Quintelaobj-y += buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o 1073b47612bSJuan Quintelaobj-y += qemu-char.o aio.o net-checksum.o savevm.o 1086ef859b3SJuan Quintelaobj-y += msmouse.o ps2.o 109ee6847d1SGerd Hoffmannobj-y += qdev.o qdev-properties.o ssi.o 11087ecb68bSpbrook 1110e22fd2fSJuan Quintelaobj-$(CONFIG_BRLAPI) += baum.o 1120e22fd2fSJuan Quintela 1132e4d9fb1Saurel32ifdef CONFIG_BRLAPI 1142e4d9fb1Saurel32LIBS+=-lbrlapi 1152e4d9fb1Saurel32endif 1162e4d9fb1Saurel32 1174fb240a4Sbellardifdef CONFIG_WIN32 1186ef859b3SJuan Quintelaobj-y += tap-win32.o 119559b90fbSaliguorielse 1206ef859b3SJuan Quintelaobj-y += migration-exec.o 1214fb240a4Sbellardendif 1224fb240a4Sbellard 1234fb240a4Sbellardifdef CONFIG_COREAUDIO 124c6a5a71aSAnthony LiguoriAUDIO_PT = y 1254fb240a4Sbellardendif 1264fb240a4Sbellardifdef CONFIG_FMOD 1274fb240a4Sbellardaudio/audio.o audio/fmodaudio.o: CPPFLAGS := -I$(CONFIG_FMOD_INC) $(CPPFLAGS) 1284fb240a4Sbellardendif 129ca9cc28cSbalrogifdef CONFIG_ESD 130c6a5a71aSAnthony LiguoriAUDIO_PT = y 131c6a5a71aSAnthony LiguoriAUDIO_PT_INT = y 132ca9cc28cSbalrogendif 133b8e59f18Smalcifdef CONFIG_PA 134c6a5a71aSAnthony LiguoriAUDIO_PT = y 135c6a5a71aSAnthony LiguoriAUDIO_PT_INT = y 136b8e59f18Smalcendif 137ca9cc28cSbalrogifdef AUDIO_PT 138ca9cc28cSbalrogLDFLAGS += -pthread 139ca9cc28cSbalrogendif 1400e22fd2fSJuan Quintela 1410e22fd2fSJuan Quintelaaudio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o 1420e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_SDL) += sdlaudio.o 1430e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_OSS) += ossaudio.o 1440e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_COREAUDIO) += coreaudio.o 1450e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ALSA) += alsaaudio.o 1460e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_DSOUND) += dsoundaudio.o 1470e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_FMOD) += fmodaudio.o 1480e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ESD) += esdaudio.o 1490e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_PA) += paaudio.o 1500e22fd2fSJuan Quintelaaudio-obj-$(AUDIO_PT_INT) += audio_pt_int.o 151eda959bdSJuan Quintelaaudio-obj-y += wavcapture.o 1526ef859b3SJuan Quintelaobj-y += $(addprefix audio/, $(audio-obj-y)) 1534fb240a4Sbellard 1546ef859b3SJuan Quintelaobj-y += keymaps.o 1550e22fd2fSJuan Quintelaobj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o 1560e22fd2fSJuan Quintelaobj-$(CONFIG_CURSES) += curses.o 1576ef859b3SJuan Quintelaobj-y += vnc.o acl.o d3des.o 1580e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o 1590e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o 1600e22fd2fSJuan Quintelaobj-$(CONFIG_COCOA) += cocoa.o 1610e22fd2fSJuan Quintelaobj-$(CONFIG_IOTHREAD) += qemu-thread.o 162e5d355d1Saliguori 1634fb240a4Sbellardifdef CONFIG_SLIRP 1644fb240a4SbellardCPPFLAGS+=-I$(SRC_PATH)/slirp 1650e22fd2fSJuan Quintelaendif 1660e22fd2fSJuan Quintela 167f835ed1cSJuan Quintelaslirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o 168f835ed1cSJuan Quintelaslirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o 169f835ed1cSJuan Quintelaslirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o 1700e22fd2fSJuan Quintelaobj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y)) 1714fb240a4Sbellard 1728a16d273SthsLIBS+=$(VDE_LIBS) 1738a16d273Sths 1742567f579SBlue Swirl# xen backend driver support 1750e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o 1760e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o 1772567f579SBlue Swirl 178769ce76dSAlexander GrafLIBS+=$(CURL_LIBS) 179769ce76dSAlexander Graf 1804fb240a4Sbellardcocoa.o: cocoa.m 1814fb240a4Sbellard 1820483755aSaliguorikeymaps.o: keymaps.c keymaps.h 1830483755aSaliguori 184c18a2c36SStefano Stabellinisdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h 185c18a2c36SStefano Stabellini 186c18a2c36SStefano Stabellinisdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h 187807544e2Saliguori 18822d091b3SBlue Swirlsdl.o audio/sdlaudio.o sdl_zoom.o baum.o: CFLAGS += $(SDL_CFLAGS) 1894fb240a4Sbellard 19076655d6dSaliguoriacl.o: acl.h acl.c 19176655d6dSaliguori 1922f9606b3Saliguorivnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h 1935fb6c7a8Saliguori 19476655d6dSaliguorivnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h 195807544e2Saliguori 196525061bfSJuan Quintelavnc.o: CFLAGS += $(VNC_TLS_CFLAGS) 1974fb240a4Sbellard 1985fb6c7a8Saliguorivnc-tls.o: vnc-tls.c vnc.h 1995fb6c7a8Saliguori 2005fb6c7a8Saliguorivnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h 2015fb6c7a8Saliguori 2022f9606b3Saliguorivnc-auth-sasl.o: vnc-auth-sasl.c vnc.h 2032f9606b3Saliguori 2040483755aSaliguoricurses.o: curses.c keymaps.h curses_keys.h 2054d3b6f6eSbalrog 206*ef7635ecSJuan Quintelabt-host.o: CFLAGS += $(BLUEZ_CFLAGS) 2074fb240a4Sbellard 2086ef859b3SJuan Quintelalibqemu_common.a: $(obj-y) 2094fb240a4Sbellard 210cec7d0b6Spbrook####################################################################### 211e11b1dceSJuan Quintela# user-obj-y is code used by qemu userspace emulation 212e11b1dceSJuan Quintelauser-obj-y = cutils.o cache-utils.o 213cec7d0b6Spbrook 214e11b1dceSJuan Quintelalibqemu_user.a: $(user-obj-y) 215cec7d0b6Spbrook 2164fb240a4Sbellard###################################################################### 2174fb240a4Sbellard 218153859beSStuart Bradyqemu-img.o: qemu-img-cmds.h 219153859beSStuart Brady 220319f08eaSJuan Quintelaqemu-img$(EXESUF): qemu-img.o qemu-tool.o tool-osdep.o $(block-obj-y) 2214fb240a4Sbellard 222319f08eaSJuan Quintelaqemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o tool-osdep.o $(block-obj-y) 2233aa892d7Saliguori 224319f08eaSJuan Quintelaqemu-io$(EXESUF): qemu-io.o qemu-tool.o tool-osdep.o cmd.o $(block-obj-y) 2250a8e1acdSaliguori 2260a8e1acdSaliguoriqemu-img$(EXESUF) qemu-nbd$(EXESUF) qemu-io$(EXESUF): LIBS += -lz 2277a5ca864Sbellard 228153859beSStuart Bradyqemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx 229153859beSStuart Brady $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@") 230153859beSStuart Brady 23131e31b8aSbellardclean: 2322d80ae89Sbellard# avoid old build problems by removing potentially incorrect old files 2332d80ae89Sbellard 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 23486e840eeSaurel32 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ 235019d6b8fSAnthony Liguori rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d 23607b44ce9SBlue Swirl rm -f qemu-img-cmds.h 2377d3505c5Sbellard $(MAKE) -C tests clean 238253d0942SAlexander Graf for d in $(TARGET_DIRS) $(ROMS) libhw32 libhw64; do \ 2397d3505c5Sbellard $(MAKE) -C $$d $@ || exit 1 ; \ 240626df76aSbellard done 24131e31b8aSbellard 2427d13299dSbellarddistclean: clean 243153859beSStuart Brady rm -f config-host.mak config-host.h $(DOCS) qemu-options.texi qemu-img-cmds.texi 2440cb3fb1eSpbrook rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} 2451ad2134fSPaul Brook for d in $(TARGET_DIRS) libhw32 libhw64; do \ 246bc1b050dSbellard rm -rf $$d || exit 1 ; \ 24776bc6838Sbellard done 2487d13299dSbellard 249fed4a9adSbellardKEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ 250fed4a9adSbellardar de en-us fi fr-be hr it lv nl pl ru th \ 251fed4a9adSbellardcommon de-ch es fo fr-ca hu ja mk nl-be pt sl tr 252fed4a9adSbellard 25377755340Sthsifdef INSTALL_BLOBS 25477755340SthsBLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ 255e5d01b06Saurel32video.x openbios-sparc32 openbios-sparc64 openbios-ppc \ 256e5d01b06Saurel32pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \ 257253d0942SAlexander Grafbamboo.dtb petalogix-s3adsp1800.dtb \ 258253d0942SAlexander Grafmultiboot.bin 25977755340Sthselse 26077755340SthsBLOBS= 26177755340Sthsendif 26277755340Sths 263253d0942SAlexander Grafroms: 264253d0942SAlexander Graf for d in $(ROMS); do \ 265253d0942SAlexander Graf $(MAKE) -C $$d || exit 1 ; \ 266253d0942SAlexander Graf done 267253d0942SAlexander Graf 26838954dcaSpbrookinstall-doc: $(DOCS) 26958f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(docdir)" 27058f8aeadSaliguori $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" 27138954dcaSpbrookifndef CONFIG_WIN32 27258f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" 27358f8aeadSaliguori $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" 27458f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" 27558f8aeadSaliguori $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8" 27638954dcaSpbrookendif 27738954dcaSpbrook 27838954dcaSpbrookinstall: all $(if $(BUILD_DOCS),install-doc) 27958f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(bindir)" 280932a79dfSthsifneq ($(TOOLS),) 28158f8aeadSaliguori $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" 282932a79dfSthsendif 28377755340Sthsifneq ($(BLOBS),) 28458f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(datadir)" 28577755340Sths set -e; for x in $(BLOBS); do \ 28658f8aeadSaliguori $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ 287ad064840Spbrook done 28877755340Sthsendif 28958f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps" 29018be8d77Sblueswir1 set -e; for x in $(KEYMAPS); do \ 29179fd42aaSAnthony Liguori $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ 292ad064840Spbrook done 293626df76aSbellard for d in $(TARGET_DIRS); do \ 2947d3505c5Sbellard $(MAKE) -C $$d $@ || exit 1 ; \ 295626df76aSbellard done 296612384d7Sbellard 297367e86e8Sbellard# various test targets 2989b0b8203Sbellardtest speed: all 2997d3505c5Sbellard $(MAKE) -C tests $@ 30031e31b8aSbellard 301367e86e8SbellardTAGS: 302ae95ade0SJuan Quintela etags *.[ch] tests/*.[ch] block/*.[ch] hw/*.[ch] 30331e31b8aSbellard 3046688bc6dSbellardcscope: 3056688bc6dSbellard rm -f ./cscope.* 306ede46085Saurel32 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files 3076688bc6dSbellard cscope -b 3086688bc6dSbellard 3093ef693a0Sbellard# documentation 3101f673135Sbellard%.html: %.texi 3110d00e563Saliguori $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@") 3123ef693a0Sbellard 313f3548328Sbellard%.info: %.texi 3140d00e563Saliguori $(call quiet-command,makeinfo -I . $< -o $@," GEN $@") 315f3548328Sbellard 316f3548328Sbellard%.dvi: %.texi 3170d00e563Saliguori $(call quiet-command,texi2dvi -I . $<," GEN $@") 3185824d651Sblueswir1 3195824d651Sblueswir1qemu-options.texi: $(SRC_PATH)/qemu-options.hx 3200d00e563Saliguori $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") 321f3548328Sbellard 3222313086aSBlue Swirlqemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx 3232313086aSBlue Swirl $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") 3242313086aSBlue Swirl 325153859beSStuart Bradyqemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx 326153859beSStuart Brady $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") 327153859beSStuart Brady 3282313086aSBlue Swirlqemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi 3290d00e563Saliguori $(call quiet-command, \ 3300d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \ 3310d00e563Saliguori pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ 3320d00e563Saliguori " GEN $@") 3335a67135aSbellard 334153859beSStuart Bradyqemu-img.1: qemu-img.texi qemu-img-cmds.texi 3350d00e563Saliguori $(call quiet-command, \ 3360d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \ 3370d00e563Saliguori pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ 3380d00e563Saliguori " GEN $@") 339acd935efSbellard 3407a5ca864Sbellardqemu-nbd.8: qemu-nbd.texi 3410d00e563Saliguori $(call quiet-command, \ 3420d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \ 3430d00e563Saliguori pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ 3440d00e563Saliguori " GEN $@") 3457a5ca864Sbellard 3460cb3fb1eSpbrookinfo: qemu-doc.info qemu-tech.info 3470cb3fb1eSpbrook 3480cb3fb1eSpbrookdvi: qemu-doc.dvi qemu-tech.dvi 3490cb3fb1eSpbrook 3500cb3fb1eSpbrookhtml: qemu-doc.html qemu-tech.html 3510cb3fb1eSpbrook 352153859beSStuart 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 353818220f5Saliguori 354df5cf721SthsVERSION ?= $(shell cat VERSION) 355df5cf721SthsFILE = qemu-$(VERSION) 356586314f2Sbellard 3571e43adfcSbellard# tar release (use 'make -k tar' on a checkouted tree) 358586314f2Sbellardtar: 359586314f2Sbellard rm -rf /tmp/$(FILE) 3601e43adfcSbellard cp -r . /tmp/$(FILE) 36199c6c082Saurel32 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn 362586314f2Sbellard rm -rf /tmp/$(FILE) 363586314f2Sbellard 36476b62fd0Sbellard# generate a binary distribution 365d691f669Sbellardtarbin: 36618be8d77Sblueswir1 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \ 36743095f31Sbellard $(bindir)/qemu \ 36843095f31Sbellard $(bindir)/qemu-system-x86_64 \ 36940e8a53bSaurel32 $(bindir)/qemu-system-arm \ 37040e8a53bSaurel32 $(bindir)/qemu-system-cris \ 37140e8a53bSaurel32 $(bindir)/qemu-system-m68k \ 37293856aacSbellard $(bindir)/qemu-system-mips \ 37338260998Spbrook $(bindir)/qemu-system-mipsel \ 374fbe4f65bSths $(bindir)/qemu-system-mips64 \ 375fbe4f65bSths $(bindir)/qemu-system-mips64el \ 37640e8a53bSaurel32 $(bindir)/qemu-system-ppc \ 37740e8a53bSaurel32 $(bindir)/qemu-system-ppcemb \ 37840e8a53bSaurel32 $(bindir)/qemu-system-ppc64 \ 379ff1aaf65Sths $(bindir)/qemu-system-sh4 \ 38085ffbdfcSths $(bindir)/qemu-system-sh4eb \ 38140e8a53bSaurel32 $(bindir)/qemu-system-sparc \ 3827efa4387Sbellard $(bindir)/qemu-i386 \ 383f0403c03Sbellard $(bindir)/qemu-x86_64 \ 38440e8a53bSaurel32 $(bindir)/qemu-alpha \ 3857efa4387Sbellard $(bindir)/qemu-arm \ 386ea31eb5bSbellard $(bindir)/qemu-armeb \ 38740e8a53bSaurel32 $(bindir)/qemu-cris \ 38840e8a53bSaurel32 $(bindir)/qemu-m68k \ 38940e8a53bSaurel32 $(bindir)/qemu-mips \ 39040e8a53bSaurel32 $(bindir)/qemu-mipsel \ 3917efa4387Sbellard $(bindir)/qemu-ppc \ 392d4082e95Sj_mayer $(bindir)/qemu-ppc64 \ 393f0403c03Sbellard $(bindir)/qemu-ppc64abi32 \ 394ff1aaf65Sths $(bindir)/qemu-sh4 \ 39585ffbdfcSths $(bindir)/qemu-sh4eb \ 39640e8a53bSaurel32 $(bindir)/qemu-sparc \ 39740e8a53bSaurel32 $(bindir)/qemu-sparc64 \ 39840e8a53bSaurel32 $(bindir)/qemu-sparc32plus \ 399b932cabaSbellard $(bindir)/qemu-img \ 4007a5ca864Sbellard $(bindir)/qemu-nbd \ 4017efa4387Sbellard $(datadir)/bios.bin \ 4027efa4387Sbellard $(datadir)/vgabios.bin \ 403de9258a8Sbellard $(datadir)/vgabios-cirrus.bin \ 404637f6cd7Sbellard $(datadir)/ppc_rom.bin \ 405d5295253Sbellard $(datadir)/video.x \ 4060986ac3bSbellard $(datadir)/openbios-sparc32 \ 407938255d2Sblueswir1 $(datadir)/openbios-sparc64 \ 408e5d01b06Saurel32 $(datadir)/openbios-ppc \ 40919c80e50Sbellard $(datadir)/pxe-ne2k_pci.bin \ 41019c80e50Sbellard $(datadir)/pxe-rtl8139.bin \ 41119c80e50Sbellard $(datadir)/pxe-pcnet.bin \ 4122991990bSaliguori $(datadir)/pxe-e1000.bin \ 4131f50f8d1Sbellard $(docdir)/qemu-doc.html \ 4141f50f8d1Sbellard $(docdir)/qemu-tech.html \ 41540e8a53bSaurel32 $(mandir)/man1/qemu.1 \ 41640e8a53bSaurel32 $(mandir)/man1/qemu-img.1 \ 4177a5ca864Sbellard $(mandir)/man8/qemu-nbd.8 418d691f669Sbellard 4194fb240a4Sbellard# Include automatically generated dependency files 420019d6b8fSAnthony Liguori-include $(wildcard *.d audio/*.d slirp/*.d block/*.d) 421