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 25766a487aSbellardLIBS= 261f50f8d1Sbellardifdef CONFIG_STATIC 2740293e58SbellardLDFLAGS += -static 281f50f8d1Sbellardendif 29cc8ae6deSpbrookifdef BUILD_DOCS 307a5ca864SbellardDOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 31cc8ae6deSpbrookelse 32cc8ae6deSpbrookDOCS= 33cc8ae6deSpbrookendif 347d13299dSbellard 35e5d355d1SaliguoriLIBS+=$(PTHREADLIBS) 36e5d355d1SaliguoriLIBS+=$(CLOCKLIBS) 3783f64091Sbellard 387e00eb9bSaliguoriifdef CONFIG_SOLARIS 397e00eb9bSaliguoriLIBS+=-lsocket -lnsl -lresolv 407e00eb9bSaliguoriendif 417e00eb9bSaliguori 4203ff3ca3Saliguoriifdef CONFIG_WIN32 4303ff3ca3SaliguoriLIBS+=-lwinmm -lws2_32 -liphlpapi 4403ff3ca3Saliguoriendif 4503ff3ca3Saliguori 461ad2134fSPaul Brookbuild-all: $(TOOLS) $(DOCS) recurse-all 47b9dea4fbSpbrook 4855d7e8f6Saurel32config-host.mak: configure 4955d7e8f6Saurel32ifneq ($(wildcard config-host.mak),) 5055d7e8f6Saurel32 @echo $@ is out-of-date, running configure 51052ff921Sblueswir1 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh 5255d7e8f6Saurel32endif 5355d7e8f6Saurel32 540087375eSPaul BrookSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) 55cec7d0b6SpbrookSUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) 56cec7d0b6Spbrook 5786e840eeSaurel32subdir-%: 580087375eSPaul Brook $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) 594aa42531Spbrook 60cec7d0b6Spbrook$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a 61cec7d0b6Spbrook$(filter %-user,$(SUBDIR_RULES)): libqemu_user.a 62cec7d0b6Spbrook 63cec7d0b6Spbrookrecurse-all: $(SUBDIR_RULES) 644aa42531Spbrook 65faf07963Spbrook####################################################################### 66faf07963Spbrook# BLOCK_OBJS is code used by both qemu system emulation and qemu-img 67faf07963Spbrook 68d3f24367SKevin WolfBLOCK_OBJS=cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o 69019d6b8fSAnthony LiguoriBLOCK_OBJS+=block/cow.o block/qcow.o aes.o block/vmdk.o block/cloop.o 70019d6b8fSAnthony LiguoriBLOCK_OBJS+=block/dmg.o block/bochs.o block/vpc.o block/vvfat.o 71019d6b8fSAnthony LiguoriBLOCK_OBJS+=block/qcow2.o block/parallels.o block/nbd.o 72a76bab49SaliguoriBLOCK_OBJS+=nbd.o block.o aio.o 7303ff3ca3Saliguori 7403ff3ca3Saliguoriifdef CONFIG_WIN32 75019d6b8fSAnthony LiguoriBLOCK_OBJS += block/raw-win32.o 7603ff3ca3Saliguorielse 773c529d93Saliguoriifdef CONFIG_AIO 783c529d93SaliguoriBLOCK_OBJS += posix-aio-compat.o 793c529d93Saliguoriendif 80019d6b8fSAnthony LiguoriBLOCK_OBJS += block/raw-posix.o 8103ff3ca3Saliguoriendif 8203ff3ca3Saliguori 83769ce76dSAlexander Grafifdef CONFIG_CURL 84769ce76dSAlexander GrafBLOCK_OBJS += block/curl.o 85769ce76dSAlexander Grafendif 86769ce76dSAlexander Graf 874fb240a4Sbellard###################################################################### 882e2ea909Sbellard# libqemu_common.a: Target independent part of system emulation. The 894fb240a4Sbellard# long term path is to suppress *all* target specific code in case of 904fb240a4Sbellard# system emulation, i.e. a single QEMU executable should support all 914fb240a4Sbellard# CPUs and machines. 9247cea614Sbellard 93cd01b4a3SaliguoriOBJS=$(BLOCK_OBJS) 94faf07963SpbrookOBJS+=readline.o console.o 95cd01b4a3Saliguori 96e9c28334Sblueswir1OBJS+=irq.o ptimer.o 9787ecb68bSpbrookOBJS+=i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o 987e7c5e4cSbalrogOBJS+=ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o 99e9c28334Sblueswir1OBJS+=tmp105.o lm832x.o eeprom93xx.o tsc2005.o 10087ecb68bSpbrookOBJS+=scsi-disk.o cdrom.o 101985a03b0SthsOBJS+=scsi-generic.o 10268063649Sblueswir1OBJS+=usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o 1036c9f886cSbalrogOBJS+=usb-serial.o usb-net.o 104775616c3SpbrookOBJS+=sd.o ssi-sd.o 105e6a6d5abSbalrogOBJS+=bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o 106e9c28334Sblueswir1OBJS+=bt-hci-csr.o 107559b90fbSaliguoriOBJS+=buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o 108902b3d5cSmalcOBJS+=qemu-char.o aio.o net-checksum.o savevm.o cache-utils.o 109e9c28334Sblueswir1OBJS+=msmouse.o ps2.o 11090d37239SPaul BrookOBJS+=qdev.o ssi.o 11187ecb68bSpbrook 1122e4d9fb1Saurel32ifdef CONFIG_BRLAPI 1132e4d9fb1Saurel32OBJS+= baum.o 1142e4d9fb1Saurel32LIBS+=-lbrlapi 1152e4d9fb1Saurel32endif 1162e4d9fb1Saurel32 1174fb240a4Sbellardifdef CONFIG_WIN32 1184fb240a4SbellardOBJS+=tap-win32.o 119559b90fbSaliguorielse 120559b90fbSaliguoriOBJS+=migration-exec.o 1214fb240a4Sbellardendif 1224fb240a4Sbellard 1234fb240a4SbellardAUDIO_OBJS = audio.o noaudio.o wavaudio.o mixeng.o 1244fb240a4Sbellardifdef CONFIG_SDL 1254fb240a4SbellardAUDIO_OBJS += sdlaudio.o 1264fb240a4Sbellardendif 1274fb240a4Sbellardifdef CONFIG_OSS 1284fb240a4SbellardAUDIO_OBJS += ossaudio.o 1294fb240a4Sbellardendif 1304fb240a4Sbellardifdef CONFIG_COREAUDIO 1314fb240a4SbellardAUDIO_OBJS += coreaudio.o 132ca9cc28cSbalrogAUDIO_PT = yes 1334fb240a4Sbellardendif 1344fb240a4Sbellardifdef CONFIG_ALSA 1354fb240a4SbellardAUDIO_OBJS += alsaaudio.o 1364fb240a4Sbellardendif 1374fb240a4Sbellardifdef CONFIG_DSOUND 1384fb240a4SbellardAUDIO_OBJS += dsoundaudio.o 1394fb240a4Sbellardendif 1404fb240a4Sbellardifdef CONFIG_FMOD 1414fb240a4SbellardAUDIO_OBJS += fmodaudio.o 1424fb240a4Sbellardaudio/audio.o audio/fmodaudio.o: CPPFLAGS := -I$(CONFIG_FMOD_INC) $(CPPFLAGS) 1434fb240a4Sbellardendif 144ca9cc28cSbalrogifdef CONFIG_ESD 145ca9cc28cSbalrogAUDIO_PT = yes 146ca9cc28cSbalrogAUDIO_PT_INT = yes 147ca9cc28cSbalrogAUDIO_OBJS += esdaudio.o 148ca9cc28cSbalrogendif 149b8e59f18Smalcifdef CONFIG_PA 150b8e59f18SmalcAUDIO_PT = yes 151b8e59f18SmalcAUDIO_PT_INT = yes 152b8e59f18SmalcAUDIO_OBJS += paaudio.o 153b8e59f18Smalcendif 154ca9cc28cSbalrogifdef AUDIO_PT 155ca9cc28cSbalrogLDFLAGS += -pthread 156ca9cc28cSbalrogendif 157ca9cc28cSbalrogifdef AUDIO_PT_INT 158ca9cc28cSbalrogAUDIO_OBJS += audio_pt_int.o 159ca9cc28cSbalrogendif 1604fb240a4SbellardAUDIO_OBJS+= wavcapture.o 1614fb240a4SbellardOBJS+=$(addprefix audio/, $(AUDIO_OBJS)) 1624fb240a4Sbellard 1630483755aSaliguoriOBJS+=keymaps.o 1644fb240a4Sbellardifdef CONFIG_SDL 1654fb240a4SbellardOBJS+=sdl.o x_keymap.o 1664fb240a4Sbellardendif 1674d3b6f6eSbalrogifdef CONFIG_CURSES 1684d3b6f6eSbalrogOBJS+=curses.o 1694d3b6f6eSbalrogendif 17076655d6dSaliguoriOBJS+=vnc.o acl.o d3des.o 1715fb6c7a8Saliguoriifdef CONFIG_VNC_TLS 1725fb6c7a8SaliguoriOBJS+=vnc-tls.o vnc-auth-vencrypt.o 1735fb6c7a8Saliguoriendif 1742f9606b3Saliguoriifdef CONFIG_VNC_SASL 1752f9606b3SaliguoriOBJS+=vnc-auth-sasl.o 1762f9606b3Saliguoriendif 1774fb240a4Sbellard 1784fb240a4Sbellardifdef CONFIG_COCOA 1794fb240a4SbellardOBJS+=cocoa.o 1804fb240a4Sbellardendif 1814fb240a4Sbellard 182e5d355d1Saliguoriifdef CONFIG_IOTHREAD 183e5d355d1SaliguoriOBJS+=qemu-thread.o 184e5d355d1Saliguoriendif 185e5d355d1Saliguori 1864fb240a4Sbellardifdef CONFIG_SLIRP 1874fb240a4SbellardCPPFLAGS+=-I$(SRC_PATH)/slirp 1884fb240a4SbellardSLIRP_OBJS=cksum.o if.o ip_icmp.o ip_input.o ip_output.o \ 1894fb240a4Sbellardslirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o \ 1904fb240a4Sbellardtcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o 1914fb240a4SbellardOBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) 1924fb240a4Sbellardendif 1934fb240a4Sbellard 1948a16d273SthsLIBS+=$(VDE_LIBS) 1958a16d273Sths 1962567f579SBlue Swirl# xen backend driver support 1972567f579SBlue SwirlXEN_OBJS := xen_backend.o xen_devconfig.o 1982567f579SBlue SwirlXEN_OBJS += xen_console.o xenfb.o xen_disk.o xen_nic.o 1992567f579SBlue Swirlifdef CONFIG_XEN 2002567f579SBlue Swirl OBJS += $(XEN_OBJS) 2012567f579SBlue Swirlendif 2022567f579SBlue Swirl 203769ce76dSAlexander GrafLIBS+=$(CURL_LIBS) 204769ce76dSAlexander Graf 2054fb240a4Sbellardcocoa.o: cocoa.m 2064fb240a4Sbellard 2070483755aSaliguorikeymaps.o: keymaps.c keymaps.h 2080483755aSaliguori 2090483755aSaliguorisdl.o: sdl.c keymaps.h sdl_keysym.h 210807544e2Saliguori 211807544e2Saliguorisdl.o audio/sdlaudio.o: CFLAGS += $(SDL_CFLAGS) 2124fb240a4Sbellard 21376655d6dSaliguoriacl.o: acl.h acl.c 21476655d6dSaliguori 2152f9606b3Saliguorivnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h 2165fb6c7a8Saliguori 21776655d6dSaliguorivnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h 218807544e2Saliguori 219807544e2Saliguorivnc.o: CFLAGS += $(CONFIG_VNC_TLS_CFLAGS) 2204fb240a4Sbellard 2215fb6c7a8Saliguorivnc-tls.o: vnc-tls.c vnc.h 2225fb6c7a8Saliguori 2235fb6c7a8Saliguorivnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h 2245fb6c7a8Saliguori 2252f9606b3Saliguorivnc-auth-sasl.o: vnc-auth-sasl.c vnc.h 2262f9606b3Saliguori 2270483755aSaliguoricurses.o: curses.c keymaps.h curses_keys.h 2284d3b6f6eSbalrog 229807544e2Saliguoribt-host.o: CFLAGS += $(CONFIG_BLUEZ_CFLAGS) 2304fb240a4Sbellard 2314fb240a4Sbellardlibqemu_common.a: $(OBJS) 2324fb240a4Sbellard 233cec7d0b6Spbrook####################################################################### 234cec7d0b6Spbrook# USER_OBJS is code used by qemu userspace emulation 235902b3d5cSmalcUSER_OBJS=cutils.o cache-utils.o 236cec7d0b6Spbrook 237cec7d0b6Spbrooklibqemu_user.a: $(USER_OBJS) 238cec7d0b6Spbrook 2394fb240a4Sbellard###################################################################### 2404fb240a4Sbellard 24188ca2a59SPaul Brookqemu-img$(EXESUF): qemu-img.o qemu-tool.o tool-osdep.o $(BLOCK_OBJS) 2424fb240a4Sbellard 24388ca2a59SPaul Brookqemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o tool-osdep.o $(BLOCK_OBJS) 2443aa892d7Saliguori 24588ca2a59SPaul Brookqemu-io$(EXESUF): qemu-io.o qemu-tool.o tool-osdep.o cmd.o $(BLOCK_OBJS) 2460a8e1acdSaliguori 2470a8e1acdSaliguoriqemu-img$(EXESUF) qemu-nbd$(EXESUF) qemu-io$(EXESUF): LIBS += -lz 2487a5ca864Sbellard 24931e31b8aSbellardclean: 2502d80ae89Sbellard# avoid old build problems by removing potentially incorrect old files 2512d80ae89Sbellard 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 25286e840eeSaurel32 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ 253019d6b8fSAnthony Liguori rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d 2547d3505c5Sbellard $(MAKE) -C tests clean 2551ad2134fSPaul Brook for d in $(TARGET_DIRS) libhw32 libhw64; do \ 2567d3505c5Sbellard $(MAKE) -C $$d $@ || exit 1 ; \ 257626df76aSbellard done 25831e31b8aSbellard 2597d13299dSbellarddistclean: clean 260016c62c8Saliguori rm -f config-host.mak config-host.h $(DOCS) qemu-options.texi 2610cb3fb1eSpbrook rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} 2621ad2134fSPaul Brook for d in $(TARGET_DIRS) libhw32 libhw64; do \ 263bc1b050dSbellard rm -rf $$d || exit 1 ; \ 26476bc6838Sbellard done 2657d13299dSbellard 266fed4a9adSbellardKEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ 267fed4a9adSbellardar de en-us fi fr-be hr it lv nl pl ru th \ 268fed4a9adSbellardcommon de-ch es fo fr-ca hu ja mk nl-be pt sl tr 269fed4a9adSbellard 27077755340Sthsifdef INSTALL_BLOBS 27177755340SthsBLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ 272e5d01b06Saurel32video.x openbios-sparc32 openbios-sparc64 openbios-ppc \ 273e5d01b06Saurel32pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \ 274e5d01b06Saurel32bamboo.dtb 27577755340Sthselse 27677755340SthsBLOBS= 27777755340Sthsendif 27877755340Sths 27938954dcaSpbrookinstall-doc: $(DOCS) 28058f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(docdir)" 28158f8aeadSaliguori $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" 28238954dcaSpbrookifndef CONFIG_WIN32 28358f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" 28458f8aeadSaliguori $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" 28558f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" 28658f8aeadSaliguori $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8" 28738954dcaSpbrookendif 28838954dcaSpbrook 28938954dcaSpbrookinstall: all $(if $(BUILD_DOCS),install-doc) 29058f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(bindir)" 291932a79dfSthsifneq ($(TOOLS),) 29258f8aeadSaliguori $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" 293932a79dfSthsendif 29477755340Sthsifneq ($(BLOBS),) 29558f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(datadir)" 29677755340Sths set -e; for x in $(BLOBS); do \ 29758f8aeadSaliguori $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ 298ad064840Spbrook done 29977755340Sthsendif 30011d9f695Sbellardifndef CONFIG_WIN32 30158f8aeadSaliguori $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps" 30218be8d77Sblueswir1 set -e; for x in $(KEYMAPS); do \ 303*79fd42aaSAnthony Liguori $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ 304ad064840Spbrook done 30511d9f695Sbellardendif 306626df76aSbellard for d in $(TARGET_DIRS); do \ 3077d3505c5Sbellard $(MAKE) -C $$d $@ || exit 1 ; \ 308626df76aSbellard done 309612384d7Sbellard 310367e86e8Sbellard# various test targets 3119b0b8203Sbellardtest speed: all 3127d3505c5Sbellard $(MAKE) -C tests $@ 31331e31b8aSbellard 314367e86e8SbellardTAGS: 315b9adb4a6Sbellard etags *.[ch] tests/*.[ch] 31631e31b8aSbellard 3176688bc6dSbellardcscope: 3186688bc6dSbellard rm -f ./cscope.* 319ede46085Saurel32 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files 3206688bc6dSbellard cscope -b 3216688bc6dSbellard 3223ef693a0Sbellard# documentation 3231f673135Sbellard%.html: %.texi 3240d00e563Saliguori $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@") 3253ef693a0Sbellard 326f3548328Sbellard%.info: %.texi 3270d00e563Saliguori $(call quiet-command,makeinfo -I . $< -o $@," GEN $@") 328f3548328Sbellard 329f3548328Sbellard%.dvi: %.texi 3300d00e563Saliguori $(call quiet-command,texi2dvi -I . $<," GEN $@") 3315824d651Sblueswir1 3325824d651Sblueswir1qemu-options.texi: $(SRC_PATH)/qemu-options.hx 3330d00e563Saliguori $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") 334f3548328Sbellard 3357545668bSblueswir1qemu.1: qemu-doc.texi qemu-options.texi 3360d00e563Saliguori $(call quiet-command, \ 3370d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \ 3380d00e563Saliguori pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ 3390d00e563Saliguori " GEN $@") 3405a67135aSbellard 341acd935efSbellardqemu-img.1: qemu-img.texi 3420d00e563Saliguori $(call quiet-command, \ 3430d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \ 3440d00e563Saliguori pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ 3450d00e563Saliguori " GEN $@") 346acd935efSbellard 3477a5ca864Sbellardqemu-nbd.8: qemu-nbd.texi 3480d00e563Saliguori $(call quiet-command, \ 3490d00e563Saliguori perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \ 3500d00e563Saliguori pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ 3510d00e563Saliguori " GEN $@") 3527a5ca864Sbellard 3530cb3fb1eSpbrookinfo: qemu-doc.info qemu-tech.info 3540cb3fb1eSpbrook 3550cb3fb1eSpbrookdvi: qemu-doc.dvi qemu-tech.dvi 3560cb3fb1eSpbrook 3570cb3fb1eSpbrookhtml: qemu-doc.html qemu-tech.html 3580cb3fb1eSpbrook 3595824d651Sblueswir1qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi 360818220f5Saliguori 361df5cf721SthsVERSION ?= $(shell cat VERSION) 362df5cf721SthsFILE = qemu-$(VERSION) 363586314f2Sbellard 3641e43adfcSbellard# tar release (use 'make -k tar' on a checkouted tree) 365586314f2Sbellardtar: 366586314f2Sbellard rm -rf /tmp/$(FILE) 3671e43adfcSbellard cp -r . /tmp/$(FILE) 36899c6c082Saurel32 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn 369586314f2Sbellard rm -rf /tmp/$(FILE) 370586314f2Sbellard 37176b62fd0Sbellard# generate a binary distribution 372d691f669Sbellardtarbin: 37318be8d77Sblueswir1 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \ 37443095f31Sbellard $(bindir)/qemu \ 37543095f31Sbellard $(bindir)/qemu-system-x86_64 \ 37640e8a53bSaurel32 $(bindir)/qemu-system-arm \ 37740e8a53bSaurel32 $(bindir)/qemu-system-cris \ 37840e8a53bSaurel32 $(bindir)/qemu-system-m68k \ 37993856aacSbellard $(bindir)/qemu-system-mips \ 38038260998Spbrook $(bindir)/qemu-system-mipsel \ 381fbe4f65bSths $(bindir)/qemu-system-mips64 \ 382fbe4f65bSths $(bindir)/qemu-system-mips64el \ 38340e8a53bSaurel32 $(bindir)/qemu-system-ppc \ 38440e8a53bSaurel32 $(bindir)/qemu-system-ppcemb \ 38540e8a53bSaurel32 $(bindir)/qemu-system-ppc64 \ 386ff1aaf65Sths $(bindir)/qemu-system-sh4 \ 38785ffbdfcSths $(bindir)/qemu-system-sh4eb \ 38840e8a53bSaurel32 $(bindir)/qemu-system-sparc \ 3897efa4387Sbellard $(bindir)/qemu-i386 \ 390f0403c03Sbellard $(bindir)/qemu-x86_64 \ 39140e8a53bSaurel32 $(bindir)/qemu-alpha \ 3927efa4387Sbellard $(bindir)/qemu-arm \ 393ea31eb5bSbellard $(bindir)/qemu-armeb \ 39440e8a53bSaurel32 $(bindir)/qemu-cris \ 39540e8a53bSaurel32 $(bindir)/qemu-m68k \ 39640e8a53bSaurel32 $(bindir)/qemu-mips \ 39740e8a53bSaurel32 $(bindir)/qemu-mipsel \ 3987efa4387Sbellard $(bindir)/qemu-ppc \ 399d4082e95Sj_mayer $(bindir)/qemu-ppc64 \ 400f0403c03Sbellard $(bindir)/qemu-ppc64abi32 \ 401ff1aaf65Sths $(bindir)/qemu-sh4 \ 40285ffbdfcSths $(bindir)/qemu-sh4eb \ 40340e8a53bSaurel32 $(bindir)/qemu-sparc \ 40440e8a53bSaurel32 $(bindir)/qemu-sparc64 \ 40540e8a53bSaurel32 $(bindir)/qemu-sparc32plus \ 406b932cabaSbellard $(bindir)/qemu-img \ 4077a5ca864Sbellard $(bindir)/qemu-nbd \ 4087efa4387Sbellard $(datadir)/bios.bin \ 4097efa4387Sbellard $(datadir)/vgabios.bin \ 410de9258a8Sbellard $(datadir)/vgabios-cirrus.bin \ 411637f6cd7Sbellard $(datadir)/ppc_rom.bin \ 412d5295253Sbellard $(datadir)/video.x \ 4130986ac3bSbellard $(datadir)/openbios-sparc32 \ 414938255d2Sblueswir1 $(datadir)/openbios-sparc64 \ 415e5d01b06Saurel32 $(datadir)/openbios-ppc \ 41619c80e50Sbellard $(datadir)/pxe-ne2k_pci.bin \ 41719c80e50Sbellard $(datadir)/pxe-rtl8139.bin \ 41819c80e50Sbellard $(datadir)/pxe-pcnet.bin \ 4192991990bSaliguori $(datadir)/pxe-e1000.bin \ 4201f50f8d1Sbellard $(docdir)/qemu-doc.html \ 4211f50f8d1Sbellard $(docdir)/qemu-tech.html \ 42240e8a53bSaurel32 $(mandir)/man1/qemu.1 \ 42340e8a53bSaurel32 $(mandir)/man1/qemu-img.1 \ 4247a5ca864Sbellard $(mandir)/man8/qemu-nbd.8 425d691f669Sbellard 4264fb240a4Sbellard# Include automatically generated dependency files 427019d6b8fSAnthony Liguori-include $(wildcard *.d audio/*.d slirp/*.d block/*.d) 428