blob: 57c354dde4b014d28340a4dc484ed8fe9a547e14 [file] [log] [blame]
pbrook0cb3fb12006-05-14 12:07:53 +00001# Makefile for QEMU.
2
Paul Brooka992fe32009-11-22 16:25:30 +00003GENERATED_HEADERS = config-host.h
Juan Quintelaf527c572009-11-05 17:19:57 +01004
aurel3255d7e8f2009-04-15 14:42:57 +00005ifneq ($(wildcard config-host.mak),)
Paul Brook1ad21342009-05-19 16:17:58 +01006# Put the all: rule here so that config-host.mak can contain dependencies.
7all: build-all
pbrookad064842006-04-16 12:41:07 +00008include config-host.mak
aliguori17759182009-01-21 18:12:52 +00009include $(SRC_PATH)/rules.mak
Paolo Bonzini59bc10e2010-01-04 11:02:28 +010010config-host.mak: $(SRC_PATH)/configure
Juan Quintelae5efe7f2009-10-07 02:40:59 +020011 @echo $@ is out-of-date, running configure
12 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
aurel3255d7e8f2009-04-15 14:42:57 +000013else
14config-host.mak:
15 @echo "Please call configure before running make!"
16 @exit 1
17endif
bellard766a4872003-02-18 23:35:48 +000018
Juan Quintelad9ace8b2009-10-06 21:11:15 +020019# Don't try to regenerate Makefile or configure
20# We don't generate any of them
21Makefile: ;
22configure: ;
23
aliguori818220f2008-09-24 01:13:40 +000024.PHONY: all clean cscope distclean dvi html info install install-doc \
Stefan Weil20cc9992010-01-29 23:16:50 +010025 pdf recurse-all speed tar tarbin test build-all
pbrook0cb3fb12006-05-14 12:07:53 +000026
Paolo Bonzini076d2472009-12-21 10:06:55 +010027$(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
pbrook8c462f82007-11-18 21:12:37 +000028
Juan Quintela3e2e0e62009-08-03 14:47:06 +020029LIBS+=-lz $(LIBS_TOOLS)
Juan Quintela67c0f082009-07-27 16:12:51 +020030
pbrookcc8ae6d2006-04-23 17:57:59 +000031ifdef BUILD_DOCS
bellard7a5ca862008-05-27 21:13:40 +000032DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8
pbrookcc8ae6d2006-04-23 17:57:59 +000033else
34DOCS=
35endif
bellard7d132992003-03-06 23:23:54 +000036
Juan Quintela1215c6e2009-10-07 02:40:58 +020037SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
Juan Quintela1f3d3c82009-10-07 02:41:02 +020038SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
39
40config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
Stefan Weil01d86a82009-11-19 20:19:56 +010041 $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@")
Juan Quintela1f3d3c82009-10-07 02:41:02 +020042
Paul Brooka992fe32009-11-22 16:25:30 +000043%/config-devices.mak: default-configs/%.mak
44 $(call quiet-command,cat $< > $@.tmp, " GEN $@")
Stefan Weil012f0872009-12-20 15:39:03 +010045 @if test -f $@; then \
46 if cmp -s $@.old $@ || cmp -s $@ $@.tmp; then \
47 mv $@.tmp $@; \
48 cp -p $@ $@.old; \
49 else \
50 if test -f $@.old; then \
51 echo "WARNING: $@ (user modified) out of date.";\
52 else \
53 echo "WARNING: $@ out of date.";\
54 fi; \
55 echo "Run \"make defconfig\" to regenerate."; \
56 rm $@.tmp; \
57 fi; \
Paul Brooka992fe32009-11-22 16:25:30 +000058 else \
Stefan Weil012f0872009-12-20 15:39:03 +010059 mv $@.tmp $@; \
60 cp -p $@ $@.old; \
Paul Brooka992fe32009-11-22 16:25:30 +000061 fi
62
63defconfig:
64 rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
65
Juan Quintela1f3d3c82009-10-07 02:41:02 +020066-include config-all-devices.mak
Juan Quintela1215c6e2009-10-07 02:40:58 +020067
Juan Quintelaf527c572009-11-05 17:19:57 +010068build-all: $(DOCS) $(TOOLS) recurse-all
pbrookb9dea4f2006-05-13 16:54:03 +000069
Juan Quintela1215c6e2009-10-07 02:40:58 +020070config-host.h: config-host.h-timestamp
71config-host.h-timestamp: config-host.mak
72
pbrookcec7d0b2008-05-28 16:44:57 +000073SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
74
Juan Quintelaf527c572009-11-05 17:19:57 +010075subdir-%: $(GENERATED_HEADERS)
Paul Brook00873752009-05-07 02:00:31 +010076 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
pbrook4aa42532006-05-13 13:55:08 +000077
Stefan Weilb88bc802010-01-14 18:11:43 +010078ifneq ($(wildcard config-host.mak),)
Andreas Färber0e8c9212010-01-06 20:24:05 +010079include $(SRC_PATH)/Makefile.objs
Stefan Weilb88bc802010-01-14 18:11:43 +010080endif
Andreas Färber0e8c9212010-01-06 20:24:05 +010081
82$(common-obj-y): $(GENERATED_HEADERS)
Blue Swirl4d904532010-03-21 08:28:47 +000083$(filter %-softmmu,$(SUBDIR_RULES)): $(common-obj-y) subdir-libdis
Paul Brookc05ac892009-07-31 13:18:32 +010084
Blue Swirl4d904532010-03-21 08:28:47 +000085$(filter %-user,$(SUBDIR_RULES)): $(GENERATED_HEADERS) subdir-libdis-user subdir-libuser
Blue Swirladd16152009-09-27 16:26:02 +000086
Paul Brookc05ac892009-07-31 13:18:32 +010087ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
88romsubdir-%:
89 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
90
91ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
92
93recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
bellard83f64092006-08-01 16:21:11 +000094
Juan Quintela98b068a2009-08-03 14:46:57 +020095audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
Juan Quintela0e22fd22009-06-25 00:08:09 +020096
Juan Quintelaa558ee12009-08-03 14:46:21 +020097QEMU_CFLAGS+=$(CURL_CFLAGS)
Alexander Graf769ce762009-05-11 17:41:42 +020098
bellard4fb240a2007-11-07 19:24:02 +000099cocoa.o: cocoa.m
bellard4fb240a2007-11-07 19:24:02 +0000100
aliguori04837552009-03-06 20:27:10 +0000101keymaps.o: keymaps.c keymaps.h
102
Stefano Stabellinic18a2c32009-06-24 11:58:25 +0100103sdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
104
105sdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
aliguori807544e2009-01-21 18:12:44 +0000106
Juan Quintelaa558ee12009-08-03 14:46:21 +0200107sdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
bellard4fb240a2007-11-07 19:24:02 +0000108
aliguori76655d62009-03-06 20:27:37 +0000109acl.o: acl.h acl.c
110
aliguori2f9606b2009-03-06 20:27:28 +0000111vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
aliguori5fb6c7a2009-03-06 20:27:23 +0000112
aliguori76655d62009-03-06 20:27:37 +0000113vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
aliguori807544e2009-01-21 18:12:44 +0000114
Juan Quintelaa558ee12009-08-03 14:46:21 +0200115vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
bellard4fb240a2007-11-07 19:24:02 +0000116
aliguori5fb6c7a2009-03-06 20:27:23 +0000117vnc-tls.o: vnc-tls.c vnc.h
118
119vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
120
aliguori2f9606b2009-03-06 20:27:28 +0000121vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
122
aliguori04837552009-03-06 20:27:10 +0000123curses.o: curses.c keymaps.h curses_keys.h
balrog4d3b6f62008-02-10 16:33:14 +0000124
Juan Quintelaa558ee12009-08-03 14:46:21 +0200125bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
bellard4fb240a2007-11-07 19:24:02 +0000126
bellard4fb240a2007-11-07 19:24:02 +0000127######################################################################
128
Juan Quintela3c089e12010-01-20 20:54:18 +0100129qemu-img.o: qemu-img-cmds.h
130qemu-img.o qemu-tool.o qemu-nbd.o qemu-io.o: $(GENERATED_HEADERS)
Stuart Brady153859b2009-06-07 00:42:17 +0100131
Juan Quintela3c089e12010-01-20 20:54:18 +0100132qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y) $(qobject-obj-y)
bellard4fb240a2007-11-07 19:24:02 +0000133
Juan Quintela3c089e12010-01-20 20:54:18 +0100134qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o $(block-obj-y) $(qobject-obj-y)
aliguori3aa892d2009-01-21 18:13:02 +0000135
Juan Quintela3c089e12010-01-20 20:54:18 +0100136qemu-io$(EXESUF): qemu-io.o qemu-tool.o cmd.o $(block-obj-y) $(qobject-obj-y)
aliguori0a8e1ac2009-04-05 18:41:23 +0000137
Stuart Brady153859b2009-06-07 00:42:17 +0100138qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
139 $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@")
140
Luiz Capitulino33837ba2009-08-28 15:27:29 -0300141check-qint: check-qint.o qint.o qemu-malloc.o
Luiz Capitulino5de65a02009-08-28 15:27:30 -0300142check-qstring: check-qstring.o qstring.o qemu-malloc.o
Markus Armbrusteracc3b032010-01-27 17:16:38 +0100143check-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qemu-malloc.o qlist.o
Luiz Capitulino3aa3dcf2009-10-07 13:41:49 -0300144check-qlist: check-qlist.o qlist.o qint.o qemu-malloc.o
Anthony Liguori9c9efb62009-11-11 10:36:51 -0600145check-qfloat: check-qfloat.o qfloat.o qemu-malloc.o
Anthony Liguori422c46a2009-11-11 10:39:47 -0600146check-qjson: check-qjson.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o qjson.o json-streamer.o json-lexer.o json-parser.o qemu-malloc.o
Luiz Capitulino33837ba2009-08-28 15:27:29 -0300147
bellard31e31b82003-02-18 22:55:36 +0000148clean:
bellard2d80ae82003-08-11 23:01:33 +0000149# avoid old build problems by removing potentially incorrect old files
Juan Quintela25be210f2009-10-07 02:41:00 +0200150 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
aurel3286e840e2008-12-07 15:21:23 +0000151 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
Mark McLoughline1144d02009-10-23 17:52:16 +0100152 rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d
Blue Swirl07b44ce2009-06-09 18:45:16 +0000153 rm -f qemu-img-cmds.h
bellard7d3505c2004-05-12 19:32:15 +0000154 $(MAKE) -C tests clean
Blue Swirl4d904532010-03-21 08:28:47 +0000155 for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser libdis libdis-user; do \
Magnus Dammfc8e3202009-11-13 18:51:05 +0900156 if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
bellard626df762003-08-10 21:39:31 +0000157 done
bellard31e31b82003-02-18 22:55:36 +0000158
bellard7d132992003-03-06 23:23:54 +0000159distclean: clean
Magnus Dammfc8e3202009-11-13 18:51:05 +0900160 rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi
Paul Brooka992fe32009-11-22 16:25:30 +0000161 rm -f config-all-devices.mak
Magnus Dammfc8e3202009-11-13 18:51:05 +0900162 rm -f roms/seabios/config.mak roms/vgabios/config.mak
Stefan Weil20cc9992010-01-29 23:16:50 +0100163 rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pdf,pg,toc,tp,vr}
Blue Swirl4d904532010-03-21 08:28:47 +0000164 for d in $(TARGET_DIRS) libhw32 libhw64 libuser libdis libdis-user; do \
bellardbc1b0502003-10-28 00:12:52 +0000165 rm -rf $$d || exit 1 ; \
bellard76bc6832003-08-10 23:41:46 +0000166 done
bellard7d132992003-03-06 23:23:54 +0000167
bellardfed4a9a2004-12-12 22:18:34 +0000168KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
169ar de en-us fi fr-be hr it lv nl pl ru th \
170common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
171
ths77755342008-11-27 15:45:16 +0000172ifdef INSTALL_BLOBS
173BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
aurel32e5d01b02009-01-09 11:01:31 +0000174video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
Stefan Weil5309e5f2010-03-04 14:44:41 -0600175gpxe-eepro100-80861209.rom \
176gpxe-eepro100-80861229.rom \
177pxe-e1000.bin \
Stefan Weil88e2b0a2009-11-02 19:59:06 +0100178pxe-ne2k_pci.bin pxe-pcnet.bin \
179pxe-rtl8139.bin pxe-virtio.bin \
Alexander Graf253d0942009-06-29 15:37:40 +0200180bamboo.dtb petalogix-s3adsp1800.dtb \
Alexander Grafcfc6d902009-11-12 21:53:15 +0100181multiboot.bin linuxboot.bin
ths77755342008-11-27 15:45:16 +0000182else
183BLOBS=
184endif
185
pbrook38954dc2006-04-30 23:54:18 +0000186install-doc: $(DOCS)
aliguori58f8aea2009-04-18 15:36:02 +0000187 $(INSTALL_DIR) "$(DESTDIR)$(docdir)"
188 $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
Juan Quintela96d409e2009-08-03 14:47:00 +0200189ifdef CONFIG_POSIX
aliguori58f8aea2009-04-18 15:36:02 +0000190 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
191 $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
192 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
193 $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
pbrook38954dc2006-04-30 23:54:18 +0000194endif
195
john cooperb5ec5ce2010-02-20 11:14:59 -0600196install-sysconfig:
Andre Przywara990caaf2010-03-08 15:43:41 +0100197 $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
198 $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
john cooperb5ec5ce2010-02-20 11:14:59 -0600199
200install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
aliguori58f8aea2009-04-18 15:36:02 +0000201 $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
ths932a79d2007-10-20 18:29:34 +0000202ifneq ($(TOOLS),)
aliguori58f8aea2009-04-18 15:36:02 +0000203 $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
ths932a79d2007-10-20 18:29:34 +0000204endif
ths77755342008-11-27 15:45:16 +0000205ifneq ($(BLOBS),)
aliguori58f8aea2009-04-18 15:36:02 +0000206 $(INSTALL_DIR) "$(DESTDIR)$(datadir)"
ths77755342008-11-27 15:45:16 +0000207 set -e; for x in $(BLOBS); do \
aliguori58f8aea2009-04-18 15:36:02 +0000208 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
pbrookad064842006-04-16 12:41:07 +0000209 done
ths77755342008-11-27 15:45:16 +0000210endif
aliguori58f8aea2009-04-18 15:36:02 +0000211 $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
blueswir118be8d72008-03-05 18:16:09 +0000212 set -e; for x in $(KEYMAPS); do \
Anthony Liguori79fd42a2009-05-28 03:11:42 -0500213 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
pbrookad064842006-04-16 12:41:07 +0000214 done
bellard626df762003-08-10 21:39:31 +0000215 for d in $(TARGET_DIRS); do \
bellard7d3505c2004-05-12 19:32:15 +0000216 $(MAKE) -C $$d $@ || exit 1 ; \
bellard626df762003-08-10 21:39:31 +0000217 done
bellard612384d2003-03-22 17:31:19 +0000218
bellard367e86e2003-03-01 17:13:26 +0000219# various test targets
bellard9b0b8202007-11-14 10:34:57 +0000220test speed: all
bellard7d3505c2004-05-12 19:32:15 +0000221 $(MAKE) -C tests $@
bellard31e31b82003-02-18 22:55:36 +0000222
Alexandre Bique21d4e8e2009-08-07 15:43:11 +0100223.PHONY: TAGS
ths5fafdf22007-09-16 21:08:06 +0000224TAGS:
Alexandre Bique21d4e8e2009-08-07 15:43:11 +0100225 find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
bellard31e31b82003-02-18 22:55:36 +0000226
bellard6688bc62005-08-21 09:23:39 +0000227cscope:
228 rm -f ./cscope.*
aurel32ede46082008-10-01 21:46:58 +0000229 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
bellard6688bc62005-08-21 09:23:39 +0000230 cscope -b
231
bellard3ef693a2003-03-23 20:17:16 +0000232# documentation
Stefan Weil01668d92010-03-04 22:21:02 +0100233MAKEINFO=makeinfo
234MAKEINFOFLAGS=--no-headers --no-split --number-sections
Stefan Weil20cc9992010-01-29 23:16:50 +0100235TEXIFLAG=$(if $(V),,--quiet)
236%.dvi: %.texi
237 $(call quiet-command,texi2dvi $(TEXIFLAG) -I . $<," GEN $@")
238
bellard1f673132004-04-04 15:21:17 +0000239%.html: %.texi
Stefan Weil01668d92010-03-04 22:21:02 +0100240 $(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) --html $< -o $@, \
241 " GEN $@")
bellard3ef693a2003-03-23 20:17:16 +0000242
bellardf3548322006-04-30 22:51:54 +0000243%.info: %.texi
Stefan Weil01668d92010-03-04 22:21:02 +0100244 $(call quiet-command,$(MAKEINFO) $< -o $@," GEN $@")
bellardf3548322006-04-30 22:51:54 +0000245
Stefan Weil20cc9992010-01-29 23:16:50 +0100246%.pdf: %.texi
247 $(call quiet-command,texi2pdf $(TEXIFLAG) -I . $<," GEN $@")
blueswir15824d652009-03-28 06:44:27 +0000248
249qemu-options.texi: $(SRC_PATH)/qemu-options.hx
aliguori0d00e562009-04-05 17:40:46 +0000250 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
bellardf3548322006-04-30 22:51:54 +0000251
Blue Swirl23130862009-06-06 08:22:04 +0000252qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
253 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
254
Stuart Brady153859b2009-06-07 00:42:17 +0100255qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
256 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
257
Blue Swirl23130862009-06-06 08:22:04 +0000258qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
aliguori0d00e562009-04-05 17:40:46 +0000259 $(call quiet-command, \
260 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
261 pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
262 " GEN $@")
bellard5a671352003-10-01 00:13:48 +0000263
Stuart Brady153859b2009-06-07 00:42:17 +0100264qemu-img.1: qemu-img.texi qemu-img-cmds.texi
aliguori0d00e562009-04-05 17:40:46 +0000265 $(call quiet-command, \
266 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
267 pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
268 " GEN $@")
bellardacd935e2004-11-15 22:57:26 +0000269
bellard7a5ca862008-05-27 21:13:40 +0000270qemu-nbd.8: qemu-nbd.texi
aliguori0d00e562009-04-05 17:40:46 +0000271 $(call quiet-command, \
272 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
273 pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
274 " GEN $@")
bellard7a5ca862008-05-27 21:13:40 +0000275
pbrook0cb3fb12006-05-14 12:07:53 +0000276dvi: qemu-doc.dvi qemu-tech.dvi
pbrook0cb3fb12006-05-14 12:07:53 +0000277html: qemu-doc.html qemu-tech.html
Stefan Weil20cc9992010-01-29 23:16:50 +0100278info: qemu-doc.info qemu-tech.info
279pdf: qemu-doc.pdf qemu-tech.pdf
pbrook0cb3fb12006-05-14 12:07:53 +0000280
Stefan Weil20cc9992010-01-29 23:16:50 +0100281qemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \
282 qemu-img.texi qemu-nbd.texi qemu-options.texi \
283 qemu-monitor.texi qemu-img-cmds.texi
aliguori818220f2008-09-24 01:13:40 +0000284
thsdf5cf722007-01-24 22:56:36 +0000285VERSION ?= $(shell cat VERSION)
286FILE = qemu-$(VERSION)
bellard586314f2003-03-03 15:02:29 +0000287
bellard1e43adf2003-09-30 20:54:24 +0000288# tar release (use 'make -k tar' on a checkouted tree)
bellard586314f2003-03-03 15:02:29 +0000289tar:
290 rm -rf /tmp/$(FILE)
bellard1e43adf2003-09-30 20:54:24 +0000291 cp -r . /tmp/$(FILE)
aurel3299c6c082008-04-22 20:45:30 +0000292 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
bellard586314f2003-03-03 15:02:29 +0000293 rm -rf /tmp/$(FILE)
294
bellard76b62fd2003-10-28 00:47:44 +0000295# generate a binary distribution
bellardd691f662003-03-24 21:58:34 +0000296tarbin:
blueswir118be8d72008-03-05 18:16:09 +0000297 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
bellard43095f32005-04-27 20:49:23 +0000298 $(bindir)/qemu \
bellard43095f32005-04-27 20:49:23 +0000299 $(bindir)/qemu-system-x86_64 \
aurel3240e8a532009-01-03 12:35:57 +0000300 $(bindir)/qemu-system-arm \
301 $(bindir)/qemu-system-cris \
302 $(bindir)/qemu-system-m68k \
Edgar E. Iglesiasbc6291a2009-10-01 15:18:36 +0200303 $(bindir)/qemu-system-microblaze \
bellard93856aa2005-07-24 18:44:35 +0000304 $(bindir)/qemu-system-mips \
pbrook38260992006-03-11 14:51:13 +0000305 $(bindir)/qemu-system-mipsel \
thsfbe4f652007-04-01 11:16:48 +0000306 $(bindir)/qemu-system-mips64 \
307 $(bindir)/qemu-system-mips64el \
aurel3240e8a532009-01-03 12:35:57 +0000308 $(bindir)/qemu-system-ppc \
309 $(bindir)/qemu-system-ppcemb \
310 $(bindir)/qemu-system-ppc64 \
thsff1aaf62007-09-29 21:18:26 +0000311 $(bindir)/qemu-system-sh4 \
ths85ffbdf2007-12-09 05:10:03 +0000312 $(bindir)/qemu-system-sh4eb \
aurel3240e8a532009-01-03 12:35:57 +0000313 $(bindir)/qemu-system-sparc \
bellard7efa4382004-05-12 18:54:06 +0000314 $(bindir)/qemu-i386 \
bellardf0403c02008-01-06 18:27:12 +0000315 $(bindir)/qemu-x86_64 \
aurel3240e8a532009-01-03 12:35:57 +0000316 $(bindir)/qemu-alpha \
317 $(bindir)/qemu-arm \
318 $(bindir)/qemu-armeb \
319 $(bindir)/qemu-cris \
320 $(bindir)/qemu-m68k \
Edgar E. Iglesiasbc6291a2009-10-01 15:18:36 +0200321 $(bindir)/qemu-microblaze \
aurel3240e8a532009-01-03 12:35:57 +0000322 $(bindir)/qemu-mips \
323 $(bindir)/qemu-mipsel \
324 $(bindir)/qemu-ppc \
325 $(bindir)/qemu-ppc64 \
326 $(bindir)/qemu-ppc64abi32 \
327 $(bindir)/qemu-sh4 \
328 $(bindir)/qemu-sh4eb \
329 $(bindir)/qemu-sparc \
330 $(bindir)/qemu-sparc64 \
331 $(bindir)/qemu-sparc32plus \
332 $(bindir)/qemu-img \
333 $(bindir)/qemu-nbd \
bellard7efa4382004-05-12 18:54:06 +0000334 $(datadir)/bios.bin \
335 $(datadir)/vgabios.bin \
bellardde9258a2004-06-06 15:50:03 +0000336 $(datadir)/vgabios-cirrus.bin \
bellard637f6cd2004-06-21 19:54:47 +0000337 $(datadir)/ppc_rom.bin \
bellardd5295252005-07-03 14:00:51 +0000338 $(datadir)/video.x \
bellard0986ac32006-06-14 12:36:32 +0000339 $(datadir)/openbios-sparc32 \
blueswir1938255d2008-04-23 19:38:07 +0000340 $(datadir)/openbios-sparc64 \
aurel32e5d01b02009-01-09 11:01:31 +0000341 $(datadir)/openbios-ppc \
aurel3240e8a532009-01-03 12:35:57 +0000342 $(datadir)/pxe-ne2k_pci.bin \
bellard19c80e52007-02-05 21:22:42 +0000343 $(datadir)/pxe-rtl8139.bin \
aurel3240e8a532009-01-03 12:35:57 +0000344 $(datadir)/pxe-pcnet.bin \
aliguori29919902008-07-26 16:53:22 +0000345 $(datadir)/pxe-e1000.bin \
bellard1f50f8d2004-05-08 14:44:43 +0000346 $(docdir)/qemu-doc.html \
347 $(docdir)/qemu-tech.html \
aurel3240e8a532009-01-03 12:35:57 +0000348 $(mandir)/man1/qemu.1 \
349 $(mandir)/man1/qemu-img.1 \
bellard7a5ca862008-05-27 21:13:40 +0000350 $(mandir)/man8/qemu-nbd.8
bellardd691f662003-03-24 21:58:34 +0000351
bellard4fb240a2007-11-07 19:24:02 +0000352# Include automatically generated dependency files
Mark McLoughline1144d02009-10-23 17:52:16 +0100353-include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)