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 1917759187Saliguori 2040293e58SbellardCFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS) 2140293e58SbellardLDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS) 223142255cSblueswir1 2396935aa4SmalcCPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP -MT $@ 244fb240a4SbellardCPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 254a244704SAnthony LiguoriCPPFLAGS += -U_FORTIFY_SOURCE 26766a487aSbellardLIBS= 271f50f8d1Sbellardifdef CONFIG_STATIC 2840293e58SbellardLDFLAGS += -static 291f50f8d1Sbellardendif 30cc8ae6deSpbrookifdef BUILD_DOCS 317a5ca864SbellardDOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 32cc8ae6deSpbrookelse 33cc8ae6deSpbrookDOCS= 34cc8ae6deSpbrookendif 357d13299dSbellard 36e5d355d1SaliguoriLIBS+=$(PTHREADLIBS) 37e5d355d1SaliguoriLIBS+=$(CLOCKLIBS) 3883f64091Sbellard 397e00eb9bSaliguoriifdef CONFIG_SOLARIS 407e00eb9bSaliguoriLIBS+=-lsocket -lnsl -lresolv 417e00eb9bSaliguoriendif 427e00eb9bSaliguori 4303ff3ca3Saliguoriifdef CONFIG_WIN32 4403ff3ca3SaliguoriLIBS+=-lwinmm -lws2_32 -liphlpapi 4503ff3ca3Saliguoriendif 4603ff3ca3Saliguori 47253d0942SAlexander Grafbuild-all: $(TOOLS) $(DOCS) roms recurse-all 48b9dea4fbSpbrook 4955d7e8f6Saurel32config-host.mak: configure 5055d7e8f6Saurel32ifneq ($(wildcard config-host.mak),) 5155d7e8f6Saurel32 @echo $@ is out-of-date, running configure 52052ff921Sblueswir1 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh 5355d7e8f6Saurel32endif 5455d7e8f6Saurel32 550087375eSPaul BrookSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) 56cec7d0b6SpbrookSUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) 57cec7d0b6Spbrook 5886e840eeSaurel32subdir-%: 590087375eSPaul Brook $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) 604aa42531Spbrook 61cec7d0b6Spbrook$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a 62cec7d0b6Spbrook$(filter %-user,$(SUBDIR_RULES)): libqemu_user.a 63cec7d0b6Spbrook 64cec7d0b6Spbrookrecurse-all: $(SUBDIR_RULES) 654aa42531Spbrook 66faf07963Spbrook####################################################################### 67319f08eaSJuan Quintela# block-obj-y is code used by both qemu system emulation and qemu-img 68faf07963Spbrook 69319f08eaSJuan Quintelablock-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o 70*1a65ba76SJuan Quintelablock-obj-y += nbd.o block.o aio.o aes.o 71*1a65ba76SJuan Quintela 72*1a65ba76SJuan Quintelablock-nested-y += cow.o qcow.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o 73*1a65ba76SJuan Quintelablock-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o 74*1a65ba76SJuan Quintelablock-nested-y += parallels.o nbd.o 75*1a65ba76SJuan Quintela 7603ff3ca3Saliguori 7703ff3ca3Saliguoriifdef CONFIG_WIN32 78*1a65ba76SJuan Quintelablock-nested-y += raw-win32.o 7903ff3ca3Saliguorielse 803c529d93Saliguoriifdef CONFIG_AIO 81319f08eaSJuan Quintelablock-obj-y += posix-aio-compat.o 823c529d93Saliguoriendif 83*1a65ba76SJuan Quintelablock-nested-y += raw-posix.o 8403ff3ca3Saliguoriendif 8503ff3ca3Saliguori 86*1a65ba76SJuan Quintelablock-nested-$(CONFIG_CURL) += curl.o 87*1a65ba76SJuan Quintela 88*1a65ba76SJuan Quintelablock-obj-y += $(addprefix block/, $(block-nested-y)) 89769ce76dSAlexander Graf 904fb240a4Sbellard###################################################################### 912e2ea909Sbellard# libqemu_common.a: Target independent part of system emulation. The 924fb240a4Sbellard# long term path is to suppress *all* target specific code in case of 934fb240a4Sbellard# system emulation, i.e. a single QEMU executable should support all 944fb240a4Sbellard# CPUs and machines. 9547cea614Sbellard 966ef859b3SJuan Quintelaobj-y = $(block-obj-y) 976ef859b3SJuan Quintelaobj-y += readline.o console.o 98cd01b4a3Saliguori 996ef859b3SJuan Quintelaobj-y += irq.o ptimer.o 1006ef859b3SJuan Quintelaobj-y += i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o 1016ef859b3SJuan Quintelaobj-y += ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o 1026ef859b3SJuan Quintelaobj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.o 1036ef859b3SJuan Quintelaobj-y += scsi-disk.o cdrom.o 1046ef859b3SJuan Quintelaobj-y += scsi-generic.o 1056ef859b3SJuan Quintelaobj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o 1066ef859b3SJuan Quintelaobj-y += usb-serial.o usb-net.o 1076ef859b3SJuan Quintelaobj-y += sd.o ssi-sd.o 1086ef859b3SJuan 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 1096ef859b3SJuan Quintelaobj-y += bt-hci-csr.o 1106ef859b3SJuan Quintelaobj-y += buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o 1116ef859b3SJuan Quintelaobj-y += qemu-char.o aio.o net-checksum.o savevm.o cache-utils.o 1126ef859b3SJuan Quintelaobj-y += msmouse.o ps2.o 113ee6847d1SGerd Hoffmannobj-y += qdev.o qdev-properties.o ssi.o 11487ecb68bSpbrook 1150e22fd2fSJuan Quintelaobj-$(CONFIG_BRLAPI) += baum.o 1160e22fd2fSJuan Quintela 1172e4d9fb1Saurel32ifdef CONFIG_BRLAPI 1182e4d9fb1Saurel32LIBS+=-lbrlapi 1192e4d9fb1Saurel32endif 1202e4d9fb1Saurel32 1214fb240a4Sbellardifdef CONFIG_WIN32 1226ef859b3SJuan Quintelaobj-y += tap-win32.o 123559b90fbSaliguorielse 1246ef859b3SJuan Quintelaobj-y += migration-exec.o 1254fb240a4Sbellardendif 1264fb240a4Sbellard 1274fb240a4Sbellardifdef CONFIG_COREAUDIO 128c6a5a71aSAnthony LiguoriAUDIO_PT = y 1294fb240a4Sbellardendif 1304fb240a4Sbellardifdef CONFIG_FMOD 1314fb240a4Sbellardaudio/audio.o audio/fmodaudio.o: CPPFLAGS := -I$(CONFIG_FMOD_INC) $(CPPFLAGS) 1324fb240a4Sbellardendif 133ca9cc28cSbalrogifdef CONFIG_ESD 134c6a5a71aSAnthony LiguoriAUDIO_PT = y 135c6a5a71aSAnthony LiguoriAUDIO_PT_INT = y 136ca9cc28cSbalrogendif 137b8e59f18Smalcifdef CONFIG_PA 138c6a5a71aSAnthony LiguoriAUDIO_PT = y 139c6a5a71aSAnthony LiguoriAUDIO_PT_INT = y 140b8e59f18Smalcendif 141ca9cc28cSbalrogifdef AUDIO_PT 142ca9cc28cSbalrogLDFLAGS += -pthread 143ca9cc28cSbalrogendif 1440e22fd2fSJuan Quintela 1450e22fd2fSJuan Quintelaaudio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o 1460e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_SDL) += sdlaudio.o 1470e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_OSS) += ossaudio.o 1480e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_COREAUDIO) += coreaudio.o 1490e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ALSA) += alsaaudio.o 1500e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_DSOUND) += dsoundaudio.o 1510e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_FMOD) += fmodaudio.o 1520e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_ESD) += esdaudio.o 1530e22fd2fSJuan Quintelaaudio-obj-$(CONFIG_PA) += paaudio.o 1540e22fd2fSJuan Quintelaaudio-obj-$(AUDIO_PT_INT) += audio_pt_int.o 155eda959bdSJuan Quintelaaudio-obj-y += wavcapture.o 1566ef859b3SJuan Quintelaobj-y += $(addprefix audio/, $(audio-obj-y)) 1574fb240a4Sbellard 1586ef859b3SJuan Quintelaobj-y += keymaps.o 1590e22fd2fSJuan Quintelaobj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o 1600e22fd2fSJuan Quintelaobj-$(CONFIG_CURSES) += curses.o 1616ef859b3SJuan Quintelaobj-y += vnc.o acl.o d3des.o 1620e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o 1630e22fd2fSJuan Quintelaobj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o 1640e22fd2fSJuan Quintelaobj-$(CONFIG_COCOA) += cocoa.o 1650e22fd2fSJuan Quintelaobj-$(CONFIG_IOTHREAD) += qemu-thread.o 166e5d355d1Saliguori 1674fb240a4Sbellardifdef CONFIG_SLIRP 1684fb240a4SbellardCPPFLAGS+=-I$(SRC_PATH)/slirp 1690e22fd2fSJuan Quintelaendif 1700e22fd2fSJuan Quintela 171f835ed1cSJuan Quintelaslirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o 172f835ed1cSJuan Quintelaslirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o 173f835ed1cSJuan Quintelaslirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o 1740e22fd2fSJuan Quintelaobj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y)) 1754fb240a4Sbellard 1768a16d273SthsLIBS+=$(VDE_LIBS) 1778a16d273Sths 1782567f579SBlue Swirl# xen backend driver support 1790e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o 1800e22fd2fSJuan Quintelaobj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o 1812567f579SBlue Swirl 182769ce76dSAlexander GrafLIBS+=$(CURL_LIBS) 183769ce76dSAlexander Graf 1844fb240a4Sbellardcocoa.o: cocoa.m 1854fb240a4Sbellard 1860483755aSaliguorikeymaps.o: keymaps.c keymaps.h 1870483755aSaliguori 188c18a2c36SStefano Stabellinisdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h 189c18a2c36SStefano Stabellini 190c18a2c36SStefano Stabellinisdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h 191807544e2Saliguori 19222d091b3SBlue Swirlsdl.o audio/sdlaudio.o sdl_zoom.o baum.o: CFLAGS += $(SDL_CFLAGS) 1934fb240a4Sbellard 19476655d6dSaliguoriacl.o: acl.h acl.c 19576655d6dSaliguori 1962f9606b3Saliguorivnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h 1975fb6c7a8Saliguori 19876655d6dSaliguorivnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h 199807544e2Saliguori 200807544e2Saliguorivnc.o: CFLAGS += $(CONFIG_VNC_TLS_CFLAGS) 2014fb240a4Sbellard 2025fb6c7a8Saliguorivnc-tls.o: vnc-tls.c vnc.h 2035fb6c7a8Saliguori 2045fb6c7a8Saliguorivnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h 2055fb6c7a8Saliguori 2062f9606b3Saliguorivnc-auth-sasl.o: vnc-auth-sasl.c vnc.h 2072f9606b3Saliguori 2080483755aSaliguoricurses.o: curses.c keymaps.h curses_keys.h 2094d3b6f6eSbalrog 210807544e2Saliguoribt-host.o: CFLAGS += $(CONFIG_BLUEZ_CFLAGS) 2114fb240a4Sbellard 2126ef859b3SJuan Quintelalibqemu_common.a: $(obj-y) 2134fb240a4Sbellard 214cec7d0b6Spbrook####################################################################### 215e11b1dceSJuan Quintela# user-obj-y is code used by qemu userspace emulation 216e11b1dceSJuan Quintelauser-obj-y = cutils.o cache-utils.o 217cec7d0b6Spbrook 218e11b1dceSJuan Quintelalibqemu_user.a: $(user-obj-y) 219cec7d0b6Spbrook 2204fb240a4Sbellard###################################################################### 2214fb240a4Sbellard 222153859beSStuart Bradyqemu-img.o: qemu-img-cmds.h 223153859beSStuart Brady 224319f08eaSJuan Quintelaqemu-img$(EXESUF): qemu-img.o qemu-tool.o tool-osdep.o $(block-obj-y) 2254fb240a4Sbellard 226319f08eaSJuan Quintelaqemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o tool-osdep.o $(block-obj-y) 2273aa892d7Saliguori 228319f08eaSJuan Quintelaqemu-io$(EXESUF): qemu-io.o qemu-tool.o tool-osdep.o cmd.o $(block-obj-y) 2290a8e1acdSaliguori 2300a8e1acdSaliguoriqemu-img$(EXESUF) qemu-nbd$(EXESUF) qemu-io$(EXESUF): LIBS += -lz 2317a5ca864Sbellard 232153859beSStuart Bradyqemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx 233153859beSStuart Brady $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@") 234153859beSStuart Brady 23531e31b8aSbellardclean: 2362d80ae89Sbellard# avoid old build problems by removing potentially incorrect old files 2372d80ae89Sbellard 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 23886e840eeSaurel32 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ 239019d6b8fSAnthony Liguori rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d 24007b44ce9SBlue Swirl rm -f qemu-img-cmds.h 2417d3505c5Sbellard $(MAKE) -C tests clean 242253d0942SAlexander Graf for d in $(TARGET_DIRS) $(ROMS) libhw32 libhw64; do \ 2437d3505c5Sbellard $(MAKE) -C $$d $@ || exit 1 ; \ 244626df76aSbellard done 24531e31b8aSbellard 2467d13299dSbellarddistclean: clean 247153859beSStuart Brady rm -f config-host.mak config-host.h $(DOCS) qemu-options.texi qemu-img-cmds.texi 2480cb3fb1eSpbrook rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} 2491ad2134fSPaul Brook for d in $(TARGET_DIRS) libhw32 libhw64; do \ 250bc1b050dSbellard rm -rf $$d || exit 1 ; \ 25176bc6838Sbellard done 2527d13299dSbellard 253fed4a9adSbellardKEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ 254fed4a9adSbellardar de en-us fi fr-be hr it lv nl pl ru th \ 255fed4a9adSbellardcommon de-ch es fo fr-ca hu ja mk nl-be pt sl tr 256fed4a9adSbellard 25777755340Sthsifdef INSTALL_BLOBS 25877755340SthsBLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ 259e5d01b06Saurel32video.x openbios-sparc32 openbios-sparc64 openbios-ppc \ 260e5d01b06Saurel32pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \ 261253d0942SAlexander Grafbamboo.dtb petalogix-s3adsp1800.dtb \ 262253d0942SAlexander Grafmultiboot.bin 26377755340Sthselse 26477755340SthsBLOBS= 26577755340Sthsendif 26677755340Sths 267253d0942SAlexander Grafroms: 268253d0942SAlexander Graf for d in $(ROMS); do \ 269253d0942SAlexander Graf $(MAKE) -C $$d || exit 1 ; \ 270253d0942SAlexander Graf done 271253d0942SAlexander Graf 27238954dcaSpbrookinstall-doc: $(DOCS) 27358f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(docdir)" 27458f8aeadSaliguori $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" 27538954dcaSpbrookifndef CONFIG_WIN32 27658f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" 27758f8aeadSaliguori $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" 27858f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" 27958f8aeadSaliguori $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8" 28038954dcaSpbrookendif 28138954dcaSpbrook 28238954dcaSpbrookinstall: all $(if $(BUILD_DOCS),install-doc) 28358f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(bindir)" 284932a79dfSthsifneq ($(TOOLS),) 28558f8aeadSaliguori $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" 286932a79dfSthsendif 28777755340Sthsifneq ($(BLOBS),) 28858f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(datadir)" 28977755340Sths set -e; for x in $(BLOBS); do \ 29058f8aeadSaliguori $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ 291ad064840Spbrook done 29277755340Sthsendif 29358f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps" 29418be8d77Sblueswir1 set -e; for x in $(KEYMAPS); do \ 29579fd42aaSAnthony Liguori $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ 296ad064840Spbrook done 297626df76aSbellard for d in $(TARGET_DIRS); do \ 2987d3505c5Sbellard $(MAKE) -C $$d $@ || exit 1 ; \ 299626df76aSbellard done 300612384d7Sbellard 301367e86e8Sbellard# various test targets 3029b0b8203Sbellardtest speed: all 3037d3505c5Sbellard $(MAKE) -C tests $@ 30431e31b8aSbellard 305367e86e8SbellardTAGS: 306ae95ade0SJuan Quintela etags *.[ch] tests/*.[ch] block/*.[ch] hw/*.[ch] 30731e31b8aSbellard 3086688bc6dSbellardcscope: 3096688bc6dSbellard rm -f ./cscope.* 310ede46085Saurel32 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files 3116688bc6dSbellard cscope -b 3126688bc6dSbellard 3133ef693a0Sbellard# documentation 3141f673135Sbellard%.html: %.texi 3150d00e563Saliguori $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@") 3163ef693a0Sbellard 317f3548328Sbellard%.info: %.texi 3180d00e563Saliguori $(call quiet-command,makeinfo -I . $< -o $@," GEN $@") 319f3548328Sbellard 320f3548328Sbellard%.dvi: %.texi 3210d00e563Saliguori $(call quiet-command,texi2dvi -I . $<," GEN $@") 3225824d651Sblueswir1 3235824d651Sblueswir1qemu-options.texi: $(SRC_PATH)/qemu-options.hx 3240d00e563Saliguori $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") 325f3548328Sbellard 3262313086aSBlue Swirlqemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx 3272313086aSBlue Swirl $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") 3282313086aSBlue Swirl 329153859beSStuart Bradyqemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx 330153859beSStuart Brady $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") 331153859beSStuart Brady 3322313086aSBlue Swirlqemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi 3330d00e563Saliguori $(call quiet-command, \ 3340d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \ 3350d00e563Saliguori pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ 3360d00e563Saliguori " GEN $@") 3375a67135aSbellard 338153859beSStuart Bradyqemu-img.1: qemu-img.texi qemu-img-cmds.texi 3390d00e563Saliguori $(call quiet-command, \ 3400d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \ 3410d00e563Saliguori pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ 3420d00e563Saliguori " GEN $@") 343acd935efSbellard 3447a5ca864Sbellardqemu-nbd.8: qemu-nbd.texi 3450d00e563Saliguori $(call quiet-command, \ 3460d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \ 3470d00e563Saliguori pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ 3480d00e563Saliguori " GEN $@") 3497a5ca864Sbellard 3500cb3fb1eSpbrookinfo: qemu-doc.info qemu-tech.info 3510cb3fb1eSpbrook 3520cb3fb1eSpbrookdvi: qemu-doc.dvi qemu-tech.dvi 3530cb3fb1eSpbrook 3540cb3fb1eSpbrookhtml: qemu-doc.html qemu-tech.html 3550cb3fb1eSpbrook 356153859beSStuart 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 357818220f5Saliguori 358df5cf721SthsVERSION ?= $(shell cat VERSION) 359df5cf721SthsFILE = qemu-$(VERSION) 360586314f2Sbellard 3611e43adfcSbellard# tar release (use 'make -k tar' on a checkouted tree) 362586314f2Sbellardtar: 363586314f2Sbellard rm -rf /tmp/$(FILE) 3641e43adfcSbellard cp -r . /tmp/$(FILE) 36599c6c082Saurel32 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn 366586314f2Sbellard rm -rf /tmp/$(FILE) 367586314f2Sbellard 36876b62fd0Sbellard# generate a binary distribution 369d691f669Sbellardtarbin: 37018be8d77Sblueswir1 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \ 37143095f31Sbellard $(bindir)/qemu \ 37243095f31Sbellard $(bindir)/qemu-system-x86_64 \ 37340e8a53bSaurel32 $(bindir)/qemu-system-arm \ 37440e8a53bSaurel32 $(bindir)/qemu-system-cris \ 37540e8a53bSaurel32 $(bindir)/qemu-system-m68k \ 37693856aacSbellard $(bindir)/qemu-system-mips \ 37738260998Spbrook $(bindir)/qemu-system-mipsel \ 378fbe4f65bSths $(bindir)/qemu-system-mips64 \ 379fbe4f65bSths $(bindir)/qemu-system-mips64el \ 38040e8a53bSaurel32 $(bindir)/qemu-system-ppc \ 38140e8a53bSaurel32 $(bindir)/qemu-system-ppcemb \ 38240e8a53bSaurel32 $(bindir)/qemu-system-ppc64 \ 383ff1aaf65Sths $(bindir)/qemu-system-sh4 \ 38485ffbdfcSths $(bindir)/qemu-system-sh4eb \ 38540e8a53bSaurel32 $(bindir)/qemu-system-sparc \ 3867efa4387Sbellard $(bindir)/qemu-i386 \ 387f0403c03Sbellard $(bindir)/qemu-x86_64 \ 38840e8a53bSaurel32 $(bindir)/qemu-alpha \ 3897efa4387Sbellard $(bindir)/qemu-arm \ 390ea31eb5bSbellard $(bindir)/qemu-armeb \ 39140e8a53bSaurel32 $(bindir)/qemu-cris \ 39240e8a53bSaurel32 $(bindir)/qemu-m68k \ 39340e8a53bSaurel32 $(bindir)/qemu-mips \ 39440e8a53bSaurel32 $(bindir)/qemu-mipsel \ 3957efa4387Sbellard $(bindir)/qemu-ppc \ 396d4082e95Sj_mayer $(bindir)/qemu-ppc64 \ 397f0403c03Sbellard $(bindir)/qemu-ppc64abi32 \ 398ff1aaf65Sths $(bindir)/qemu-sh4 \ 39985ffbdfcSths $(bindir)/qemu-sh4eb \ 40040e8a53bSaurel32 $(bindir)/qemu-sparc \ 40140e8a53bSaurel32 $(bindir)/qemu-sparc64 \ 40240e8a53bSaurel32 $(bindir)/qemu-sparc32plus \ 403b932cabaSbellard $(bindir)/qemu-img \ 4047a5ca864Sbellard $(bindir)/qemu-nbd \ 4057efa4387Sbellard $(datadir)/bios.bin \ 4067efa4387Sbellard $(datadir)/vgabios.bin \ 407de9258a8Sbellard $(datadir)/vgabios-cirrus.bin \ 408637f6cd7Sbellard $(datadir)/ppc_rom.bin \ 409d5295253Sbellard $(datadir)/video.x \ 4100986ac3bSbellard $(datadir)/openbios-sparc32 \ 411938255d2Sblueswir1 $(datadir)/openbios-sparc64 \ 412e5d01b06Saurel32 $(datadir)/openbios-ppc \ 41319c80e50Sbellard $(datadir)/pxe-ne2k_pci.bin \ 41419c80e50Sbellard $(datadir)/pxe-rtl8139.bin \ 41519c80e50Sbellard $(datadir)/pxe-pcnet.bin \ 4162991990bSaliguori $(datadir)/pxe-e1000.bin \ 4171f50f8d1Sbellard $(docdir)/qemu-doc.html \ 4181f50f8d1Sbellard $(docdir)/qemu-tech.html \ 41940e8a53bSaurel32 $(mandir)/man1/qemu.1 \ 42040e8a53bSaurel32 $(mandir)/man1/qemu-img.1 \ 4217a5ca864Sbellard $(mandir)/man8/qemu-nbd.8 422d691f669Sbellard 4234fb240a4Sbellard# Include automatically generated dependency files 424019d6b8fSAnthony Liguori-include $(wildcard *.d audio/*.d slirp/*.d block/*.d) 425