blob: 20c4e56e21d950d10dfcc803e9d69c430dde7f51 [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
Juan Quintelae5efe7f2009-10-07 02:40:59 +020010config-host.mak: configure
11 @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 \
Juan Quintela9c927652009-10-06 21:11:12 +020025 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
Andreas Färber0e8c9212010-01-06 20:24:05 +010078include $(SRC_PATH)/Makefile.objs
79
80$(common-obj-y): $(GENERATED_HEADERS)
81$(filter %-softmmu,$(SUBDIR_RULES)): $(common-obj-y)
Paul Brookc05ac892009-07-31 13:18:32 +010082
Blue Swirladd16152009-09-27 16:26:02 +000083$(filter %-user,$(SUBDIR_RULES)): libuser.a
84
Juergen Lockc1bb0dc2009-12-14 21:54:43 +010085libuser.a: $(GENERATED_HEADERS)
Blue Swirl6a8a2802009-10-13 16:57:32 +000086 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libuser V="$(V)" TARGET_DIR="libuser/" all,)
Blue Swirladd16152009-09-27 16:26:02 +000087
Paul Brookc05ac892009-07-31 13:18:32 +010088ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
89romsubdir-%:
90 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
91
92ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
93
94recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
bellard83f64092006-08-01 16:21:11 +000095
Juan Quintela98b068a2009-08-03 14:46:57 +020096audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
Juan Quintela0e22fd22009-06-25 00:08:09 +020097
Juan Quintelaa558ee12009-08-03 14:46:21 +020098QEMU_CFLAGS+=$(CURL_CFLAGS)
Alexander Graf769ce762009-05-11 17:41:42 +020099
bellard4fb240a2007-11-07 19:24:02 +0000100cocoa.o: cocoa.m
bellard4fb240a2007-11-07 19:24:02 +0000101
aliguori04837552009-03-06 20:27:10 +0000102keymaps.o: keymaps.c keymaps.h
103
Stefano Stabellinic18a2c32009-06-24 11:58:25 +0100104sdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
105
106sdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
aliguori807544e2009-01-21 18:12:44 +0000107
Juan Quintelaa558ee12009-08-03 14:46:21 +0200108sdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
bellard4fb240a2007-11-07 19:24:02 +0000109
aliguori76655d62009-03-06 20:27:37 +0000110acl.o: acl.h acl.c
111
aliguori2f9606b2009-03-06 20:27:28 +0000112vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
aliguori5fb6c7a2009-03-06 20:27:23 +0000113
aliguori76655d62009-03-06 20:27:37 +0000114vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
aliguori807544e2009-01-21 18:12:44 +0000115
Juan Quintelaa558ee12009-08-03 14:46:21 +0200116vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
bellard4fb240a2007-11-07 19:24:02 +0000117
aliguori5fb6c7a2009-03-06 20:27:23 +0000118vnc-tls.o: vnc-tls.c vnc.h
119
120vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
121
aliguori2f9606b2009-03-06 20:27:28 +0000122vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
123
aliguori04837552009-03-06 20:27:10 +0000124curses.o: curses.c keymaps.h curses_keys.h
balrog4d3b6f62008-02-10 16:33:14 +0000125
Juan Quintelaa558ee12009-08-03 14:46:21 +0200126bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
bellard4fb240a2007-11-07 19:24:02 +0000127
bellard4fb240a2007-11-07 19:24:02 +0000128######################################################################
129
Stefan Weila73e8e42009-11-12 19:08:56 +0100130qemu-img.o: qemu-img-cmds.h
Stuart Brady153859b2009-06-07 00:42:17 +0100131
Andreas Färber0e8c9212010-01-06 20:24:05 +0100132obj-y = qemu-img.o qemu-tool.o $(block-obj-y) $(qobject-obj-y)
bellard4fb240a2007-11-07 19:24:02 +0000133
Andreas Färber0e8c9212010-01-06 20:24:05 +0100134qemu-img$(EXESUF): $(obj-y)
aliguori3aa892d2009-01-21 18:13:02 +0000135
Andreas Färber0e8c9212010-01-06 20:24:05 +0100136obj-y = qemu-nbd.o qemu-tool.o $(block-obj-y) $(qobject-obj-y)
137$(obj-y): $(GENERATED_HEADERS)
138
139qemu-nbd$(EXESUF): $(obj-y)
140
141obj-y = qemu-io.o qemu-tool.o cmd.o $(block-obj-y) $(qobject-obj-y)
142$(obj-y): $(GENERATED_HEADERS)
143
144qemu-io$(EXESUF): $(obj-y)
aliguori0a8e1ac2009-04-05 18:41:23 +0000145
Stuart Brady153859b2009-06-07 00:42:17 +0100146qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
147 $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@")
148
Luiz Capitulino33837ba2009-08-28 15:27:29 -0300149check-qint: check-qint.o qint.o qemu-malloc.o
Luiz Capitulino5de65a02009-08-28 15:27:30 -0300150check-qstring: check-qstring.o qstring.o qemu-malloc.o
Luiz Capitulinof2e17502009-12-10 17:15:54 -0200151check-qdict: check-qdict.o qdict.o qint.o qstring.o qbool.o qemu-malloc.o qlist.o
Luiz Capitulino3aa3dcf2009-10-07 13:41:49 -0300152check-qlist: check-qlist.o qlist.o qint.o qemu-malloc.o
Anthony Liguori9c9efb62009-11-11 10:36:51 -0600153check-qfloat: check-qfloat.o qfloat.o qemu-malloc.o
Anthony Liguori422c46a2009-11-11 10:39:47 -0600154check-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 -0300155
bellard31e31b82003-02-18 22:55:36 +0000156clean:
bellard2d80ae82003-08-11 23:01:33 +0000157# avoid old build problems by removing potentially incorrect old files
Juan Quintela25be210f2009-10-07 02:41:00 +0200158 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 +0000159 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
Mark McLoughline1144d02009-10-23 17:52:16 +0100160 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 +0000161 rm -f qemu-img-cmds.h
bellard7d3505c2004-05-12 19:32:15 +0000162 $(MAKE) -C tests clean
Blue Swirladd16152009-09-27 16:26:02 +0000163 for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \
Magnus Dammfc8e3202009-11-13 18:51:05 +0900164 if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
bellard626df762003-08-10 21:39:31 +0000165 done
bellard31e31b82003-02-18 22:55:36 +0000166
bellard7d132992003-03-06 23:23:54 +0000167distclean: clean
Magnus Dammfc8e3202009-11-13 18:51:05 +0900168 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 +0000169 rm -f config-all-devices.mak
Magnus Dammfc8e3202009-11-13 18:51:05 +0900170 rm -f roms/seabios/config.mak roms/vgabios/config.mak
pbrook0cb3fb12006-05-14 12:07:53 +0000171 rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
Blue Swirladd16152009-09-27 16:26:02 +0000172 for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \
bellardbc1b0502003-10-28 00:12:52 +0000173 rm -rf $$d || exit 1 ; \
bellard76bc6832003-08-10 23:41:46 +0000174 done
bellard7d132992003-03-06 23:23:54 +0000175
bellardfed4a9a2004-12-12 22:18:34 +0000176KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
177ar de en-us fi fr-be hr it lv nl pl ru th \
178common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
179
ths77755342008-11-27 15:45:16 +0000180ifdef INSTALL_BLOBS
181BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
aurel32e5d01b02009-01-09 11:01:31 +0000182video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
Stefan Weil88e2b0a2009-11-02 19:59:06 +0100183pxe-e1000.bin pxe-i82559er.bin \
184pxe-ne2k_pci.bin pxe-pcnet.bin \
185pxe-rtl8139.bin pxe-virtio.bin \
Alexander Graf253d0942009-06-29 15:37:40 +0200186bamboo.dtb petalogix-s3adsp1800.dtb \
Alexander Grafcfc6d902009-11-12 21:53:15 +0100187multiboot.bin linuxboot.bin
ths77755342008-11-27 15:45:16 +0000188else
189BLOBS=
190endif
191
pbrook38954dc2006-04-30 23:54:18 +0000192install-doc: $(DOCS)
aliguori58f8aea2009-04-18 15:36:02 +0000193 $(INSTALL_DIR) "$(DESTDIR)$(docdir)"
194 $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
Juan Quintela96d409e2009-08-03 14:47:00 +0200195ifdef CONFIG_POSIX
aliguori58f8aea2009-04-18 15:36:02 +0000196 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
197 $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
198 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
199 $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
pbrook38954dc2006-04-30 23:54:18 +0000200endif
201
202install: all $(if $(BUILD_DOCS),install-doc)
aliguori58f8aea2009-04-18 15:36:02 +0000203 $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
ths932a79d2007-10-20 18:29:34 +0000204ifneq ($(TOOLS),)
aliguori58f8aea2009-04-18 15:36:02 +0000205 $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
ths932a79d2007-10-20 18:29:34 +0000206endif
ths77755342008-11-27 15:45:16 +0000207ifneq ($(BLOBS),)
aliguori58f8aea2009-04-18 15:36:02 +0000208 $(INSTALL_DIR) "$(DESTDIR)$(datadir)"
ths77755342008-11-27 15:45:16 +0000209 set -e; for x in $(BLOBS); do \
aliguori58f8aea2009-04-18 15:36:02 +0000210 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
pbrookad064842006-04-16 12:41:07 +0000211 done
ths77755342008-11-27 15:45:16 +0000212endif
aliguori58f8aea2009-04-18 15:36:02 +0000213 $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
blueswir118be8d72008-03-05 18:16:09 +0000214 set -e; for x in $(KEYMAPS); do \
Anthony Liguori79fd42a2009-05-28 03:11:42 -0500215 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
pbrookad064842006-04-16 12:41:07 +0000216 done
bellard626df762003-08-10 21:39:31 +0000217 for d in $(TARGET_DIRS); do \
bellard7d3505c2004-05-12 19:32:15 +0000218 $(MAKE) -C $$d $@ || exit 1 ; \
bellard626df762003-08-10 21:39:31 +0000219 done
bellard612384d2003-03-22 17:31:19 +0000220
bellard367e86e2003-03-01 17:13:26 +0000221# various test targets
bellard9b0b8202007-11-14 10:34:57 +0000222test speed: all
bellard7d3505c2004-05-12 19:32:15 +0000223 $(MAKE) -C tests $@
bellard31e31b82003-02-18 22:55:36 +0000224
Alexandre Bique21d4e8e2009-08-07 15:43:11 +0100225.PHONY: TAGS
ths5fafdf22007-09-16 21:08:06 +0000226TAGS:
Alexandre Bique21d4e8e2009-08-07 15:43:11 +0100227 find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
bellard31e31b82003-02-18 22:55:36 +0000228
bellard6688bc62005-08-21 09:23:39 +0000229cscope:
230 rm -f ./cscope.*
aurel32ede46082008-10-01 21:46:58 +0000231 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
bellard6688bc62005-08-21 09:23:39 +0000232 cscope -b
233
bellard3ef693a2003-03-23 20:17:16 +0000234# documentation
bellard1f673132004-04-04 15:21:17 +0000235%.html: %.texi
aliguori0d00e562009-04-05 17:40:46 +0000236 $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@")
bellard3ef693a2003-03-23 20:17:16 +0000237
bellardf3548322006-04-30 22:51:54 +0000238%.info: %.texi
aliguori0d00e562009-04-05 17:40:46 +0000239 $(call quiet-command,makeinfo -I . $< -o $@," GEN $@")
bellardf3548322006-04-30 22:51:54 +0000240
241%.dvi: %.texi
aliguori0d00e562009-04-05 17:40:46 +0000242 $(call quiet-command,texi2dvi -I . $<," GEN $@")
blueswir15824d652009-03-28 06:44:27 +0000243
244qemu-options.texi: $(SRC_PATH)/qemu-options.hx
aliguori0d00e562009-04-05 17:40:46 +0000245 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
bellardf3548322006-04-30 22:51:54 +0000246
Blue Swirl23130862009-06-06 08:22:04 +0000247qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
248 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
249
Stuart Brady153859b2009-06-07 00:42:17 +0100250qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
251 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
252
Blue Swirl23130862009-06-06 08:22:04 +0000253qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
aliguori0d00e562009-04-05 17:40:46 +0000254 $(call quiet-command, \
255 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
256 pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
257 " GEN $@")
bellard5a671352003-10-01 00:13:48 +0000258
Stuart Brady153859b2009-06-07 00:42:17 +0100259qemu-img.1: qemu-img.texi qemu-img-cmds.texi
aliguori0d00e562009-04-05 17:40:46 +0000260 $(call quiet-command, \
261 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
262 pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
263 " GEN $@")
bellardacd935e2004-11-15 22:57:26 +0000264
bellard7a5ca862008-05-27 21:13:40 +0000265qemu-nbd.8: qemu-nbd.texi
aliguori0d00e562009-04-05 17:40:46 +0000266 $(call quiet-command, \
267 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
268 pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
269 " GEN $@")
bellard7a5ca862008-05-27 21:13:40 +0000270
pbrook0cb3fb12006-05-14 12:07:53 +0000271info: qemu-doc.info qemu-tech.info
272
273dvi: qemu-doc.dvi qemu-tech.dvi
274
275html: qemu-doc.html qemu-tech.html
276
Stuart Brady153859b2009-06-07 00:42:17 +0100277qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-monitor.texi qemu-img-cmds.texi
aliguori818220f2008-09-24 01:13:40 +0000278
thsdf5cf722007-01-24 22:56:36 +0000279VERSION ?= $(shell cat VERSION)
280FILE = qemu-$(VERSION)
bellard586314f2003-03-03 15:02:29 +0000281
bellard1e43adf2003-09-30 20:54:24 +0000282# tar release (use 'make -k tar' on a checkouted tree)
bellard586314f2003-03-03 15:02:29 +0000283tar:
284 rm -rf /tmp/$(FILE)
bellard1e43adf2003-09-30 20:54:24 +0000285 cp -r . /tmp/$(FILE)
aurel3299c6c082008-04-22 20:45:30 +0000286 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
bellard586314f2003-03-03 15:02:29 +0000287 rm -rf /tmp/$(FILE)
288
bellard76b62fd2003-10-28 00:47:44 +0000289# generate a binary distribution
bellardd691f662003-03-24 21:58:34 +0000290tarbin:
blueswir118be8d72008-03-05 18:16:09 +0000291 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
bellard43095f32005-04-27 20:49:23 +0000292 $(bindir)/qemu \
bellard43095f32005-04-27 20:49:23 +0000293 $(bindir)/qemu-system-x86_64 \
aurel3240e8a532009-01-03 12:35:57 +0000294 $(bindir)/qemu-system-arm \
295 $(bindir)/qemu-system-cris \
296 $(bindir)/qemu-system-m68k \
Edgar E. Iglesiasbc6291a2009-10-01 15:18:36 +0200297 $(bindir)/qemu-system-microblaze \
bellard93856aa2005-07-24 18:44:35 +0000298 $(bindir)/qemu-system-mips \
pbrook38260992006-03-11 14:51:13 +0000299 $(bindir)/qemu-system-mipsel \
thsfbe4f652007-04-01 11:16:48 +0000300 $(bindir)/qemu-system-mips64 \
301 $(bindir)/qemu-system-mips64el \
aurel3240e8a532009-01-03 12:35:57 +0000302 $(bindir)/qemu-system-ppc \
303 $(bindir)/qemu-system-ppcemb \
304 $(bindir)/qemu-system-ppc64 \
thsff1aaf62007-09-29 21:18:26 +0000305 $(bindir)/qemu-system-sh4 \
ths85ffbdf2007-12-09 05:10:03 +0000306 $(bindir)/qemu-system-sh4eb \
aurel3240e8a532009-01-03 12:35:57 +0000307 $(bindir)/qemu-system-sparc \
bellard7efa4382004-05-12 18:54:06 +0000308 $(bindir)/qemu-i386 \
bellardf0403c02008-01-06 18:27:12 +0000309 $(bindir)/qemu-x86_64 \
aurel3240e8a532009-01-03 12:35:57 +0000310 $(bindir)/qemu-alpha \
311 $(bindir)/qemu-arm \
312 $(bindir)/qemu-armeb \
313 $(bindir)/qemu-cris \
314 $(bindir)/qemu-m68k \
Edgar E. Iglesiasbc6291a2009-10-01 15:18:36 +0200315 $(bindir)/qemu-microblaze \
aurel3240e8a532009-01-03 12:35:57 +0000316 $(bindir)/qemu-mips \
317 $(bindir)/qemu-mipsel \
318 $(bindir)/qemu-ppc \
319 $(bindir)/qemu-ppc64 \
320 $(bindir)/qemu-ppc64abi32 \
321 $(bindir)/qemu-sh4 \
322 $(bindir)/qemu-sh4eb \
323 $(bindir)/qemu-sparc \
324 $(bindir)/qemu-sparc64 \
325 $(bindir)/qemu-sparc32plus \
326 $(bindir)/qemu-img \
327 $(bindir)/qemu-nbd \
bellard7efa4382004-05-12 18:54:06 +0000328 $(datadir)/bios.bin \
329 $(datadir)/vgabios.bin \
bellardde9258a2004-06-06 15:50:03 +0000330 $(datadir)/vgabios-cirrus.bin \
bellard637f6cd2004-06-21 19:54:47 +0000331 $(datadir)/ppc_rom.bin \
bellardd5295252005-07-03 14:00:51 +0000332 $(datadir)/video.x \
bellard0986ac32006-06-14 12:36:32 +0000333 $(datadir)/openbios-sparc32 \
blueswir1938255d2008-04-23 19:38:07 +0000334 $(datadir)/openbios-sparc64 \
aurel32e5d01b02009-01-09 11:01:31 +0000335 $(datadir)/openbios-ppc \
aurel3240e8a532009-01-03 12:35:57 +0000336 $(datadir)/pxe-ne2k_pci.bin \
bellard19c80e52007-02-05 21:22:42 +0000337 $(datadir)/pxe-rtl8139.bin \
aurel3240e8a532009-01-03 12:35:57 +0000338 $(datadir)/pxe-pcnet.bin \
aliguori29919902008-07-26 16:53:22 +0000339 $(datadir)/pxe-e1000.bin \
bellard1f50f8d2004-05-08 14:44:43 +0000340 $(docdir)/qemu-doc.html \
341 $(docdir)/qemu-tech.html \
aurel3240e8a532009-01-03 12:35:57 +0000342 $(mandir)/man1/qemu.1 \
343 $(mandir)/man1/qemu-img.1 \
bellard7a5ca862008-05-27 21:13:40 +0000344 $(mandir)/man8/qemu-nbd.8
bellardd691f662003-03-24 21:58:34 +0000345
bellard4fb240a2007-11-07 19:24:02 +0000346# Include automatically generated dependency files
Mark McLoughline1144d02009-10-23 17:52:16 +0100347-include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)