root / Makefile @ 06113719
History | View | Annotate | Download (11.5 kB)
1 | 0cb3fb1e | pbrook | # Makefile for QEMU. |
---|---|---|---|
2 | 0cb3fb1e | pbrook | |
3 | 55d7e8f6 | aurel32 | ifneq ($(wildcard config-host.mak),) |
4 | 1ad2134f | Paul Brook | # Put the all: rule here so that config-host.mak can contain dependencies. |
5 | 1ad2134f | Paul Brook | all: build-all |
6 | ad064840 | pbrook | include config-host.mak |
7 | 17759187 | aliguori | include $(SRC_PATH)/rules.mak |
8 | 55d7e8f6 | aurel32 | else |
9 | 55d7e8f6 | aurel32 | config-host.mak: |
10 | 55d7e8f6 | aurel32 | @echo "Please call configure before running make!" |
11 | 55d7e8f6 | aurel32 | @exit 1 |
12 | 55d7e8f6 | aurel32 | endif |
13 | 766a487a | bellard | |
14 | 818220f5 | aliguori | .PHONY: all clean cscope distclean dvi html info install install-doc \ |
15 | 818220f5 | aliguori | recurse-all speed tar tarbin test |
16 | 0cb3fb1e | pbrook | |
17 | 8c462f8f | pbrook | VPATH=$(SRC_PATH):$(SRC_PATH)/hw |
18 | 8c462f8f | pbrook | |
19 | 3e2e0e6b | Juan Quintela | LIBS+=-lz $(LIBS_TOOLS) |
20 | 67c0f08d | Juan Quintela | |
21 | cc8ae6de | pbrook | ifdef BUILD_DOCS |
22 | 7a5ca864 | bellard | DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 |
23 | cc8ae6de | pbrook | else |
24 | cc8ae6de | pbrook | DOCS= |
25 | cc8ae6de | pbrook | endif |
26 | aa05ae6f | bellard | |
27 | c05ac895 | Paul Brook | build-all: $(TOOLS) $(DOCS) recurse-all |
28 | b9dea4fb | pbrook | |
29 | 55d7e8f6 | aurel32 | config-host.mak: configure |
30 | 55d7e8f6 | aurel32 | ifneq ($(wildcard config-host.mak),) |
31 | 55d7e8f6 | aurel32 | @echo $@ is out-of-date, running configure |
32 | 052ff921 | blueswir1 | @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh |
33 | 55d7e8f6 | aurel32 | endif |
34 | 55d7e8f6 | aurel32 | |
35 | 0087375e | Paul Brook | SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) |
36 | cec7d0b6 | pbrook | SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) |
37 | cec7d0b6 | pbrook | |
38 | 86e840ee | aurel32 | subdir-%: |
39 | 0087375e | Paul Brook | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) |
40 | 4aa42531 | pbrook | |
41 | cec7d0b6 | pbrook | $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a |
42 | cec7d0b6 | pbrook | $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a |
43 | cec7d0b6 | pbrook | |
44 | c05ac895 | Paul Brook | |
45 | c05ac895 | Paul Brook | ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) |
46 | c05ac895 | Paul Brook | romsubdir-%: |
47 | c05ac895 | Paul Brook | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",) |
48 | c05ac895 | Paul Brook | |
49 | c05ac895 | Paul Brook | ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS)) |
50 | c05ac895 | Paul Brook | |
51 | c05ac895 | Paul Brook | recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) |
52 | 83f64091 | bellard | |
53 | faf07963 | pbrook | ####################################################################### |
54 | 319f08ea | Juan Quintela | # block-obj-y is code used by both qemu system emulation and qemu-img |
55 | faf07963 | pbrook | |
56 | 319f08ea | Juan Quintela | block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o |
57 | a25a0ef5 | Anthony Liguori | block-obj-y += nbd.o block.o aio.o aes.o osdep.o |
58 | 4dd75c70 | Christoph Hellwig | block-obj-$(CONFIG_POSIX) += posix-aio-compat.o |
59 | 5c6c3a6c | Christoph Hellwig | block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o |
60 | 1a65ba76 | Juan Quintela | |
61 | 9aebd98a | Stefan Weil | block-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o |
62 | 1a65ba76 | Juan Quintela | block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o |
63 | 1a65ba76 | Juan Quintela | block-nested-y += parallels.o nbd.o |
64 | eeb6d45b | Juan Quintela | block-nested-$(CONFIG_WIN32) += raw-win32.o |
65 | eeb6d45b | Juan Quintela | block-nested-$(CONFIG_POSIX) += raw-posix.o |
66 | 1a65ba76 | Juan Quintela | block-nested-$(CONFIG_CURL) += curl.o |
67 | 1a65ba76 | Juan Quintela | |
68 | 1a65ba76 | Juan Quintela | block-obj-y += $(addprefix block/, $(block-nested-y)) |
69 | 769ce76d | Alexander Graf | |
70 | 4fb240a4 | bellard | ###################################################################### |
71 | 2e2ea909 | bellard | # libqemu_common.a: Target independent part of system emulation. The |
72 | 4fb240a4 | bellard | # long term path is to suppress *all* target specific code in case of |
73 | 4fb240a4 | bellard | # system emulation, i.e. a single QEMU executable should support all |
74 | 4fb240a4 | bellard | # CPUs and machines. |
75 | 47cea614 | bellard | |
76 | 6ef859b3 | Juan Quintela | obj-y = $(block-obj-y) |
77 | 7ecd8df8 | Blue Swirl | obj-y += readline.o console.o host-utils.o |
78 | 6ef859b3 | Juan Quintela | |
79 | 6ef859b3 | Juan Quintela | obj-y += irq.o ptimer.o |
80 | 6ef859b3 | Juan Quintela | obj-y += i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o |
81 | 6ef859b3 | Juan Quintela | obj-y += ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o |
82 | 6ef859b3 | Juan Quintela | obj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.o |
83 | 6ef859b3 | Juan Quintela | obj-y += scsi-disk.o cdrom.o |
84 | d52affa7 | Gerd Hoffmann | obj-y += scsi-generic.o scsi-bus.o |
85 | 6ef859b3 | Juan Quintela | obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o |
86 | 806b6024 | Gerd Hoffmann | obj-y += usb-serial.o usb-net.o usb-bus.o |
87 | 6ef859b3 | Juan Quintela | obj-y += sd.o ssi-sd.o |
88 | 6ef859b3 | Juan Quintela | obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o |
89 | 6ef859b3 | Juan Quintela | obj-y += bt-hci-csr.o |
90 | 6ef859b3 | Juan Quintela | obj-y += buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o |
91 | 3b47612b | Juan Quintela | obj-y += qemu-char.o aio.o net-checksum.o savevm.o |
92 | 6ef859b3 | Juan Quintela | obj-y += msmouse.o ps2.o |
93 | ee6847d1 | Gerd Hoffmann | obj-y += qdev.o qdev-properties.o ssi.o |
94 | fb08dde0 | Luiz Capitulino | obj-y += qint.o qstring.o qdict.o |
95 | 87ecb68b | pbrook | |
96 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_BRLAPI) += baum.o |
97 | eeb6d45b | Juan Quintela | obj-$(CONFIG_WIN32) += tap-win32.o |
98 | 5ac1fad3 | Paolo Bonzini | obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o |
99 | 4fb240a4 | bellard | |
100 | 98b068a9 | Juan Quintela | audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS) |
101 | 0e22fd2f | Juan Quintela | |
102 | 0e22fd2f | Juan Quintela | audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o |
103 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_SDL) += sdlaudio.o |
104 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_OSS) += ossaudio.o |
105 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o |
106 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_ALSA) += alsaaudio.o |
107 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o |
108 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_FMOD) += fmodaudio.o |
109 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_ESD) += esdaudio.o |
110 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_PA) += paaudio.o |
111 | 67f86e8e | Juan Quintela | audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o |
112 | eda959bd | Juan Quintela | audio-obj-y += wavcapture.o |
113 | 6ef859b3 | Juan Quintela | obj-y += $(addprefix audio/, $(audio-obj-y)) |
114 | 4fb240a4 | bellard | |
115 | 6ef859b3 | Juan Quintela | obj-y += keymaps.o |
116 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o |
117 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_CURSES) += curses.o |
118 | 6ef859b3 | Juan Quintela | obj-y += vnc.o acl.o d3des.o |
119 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o |
120 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o |
121 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_COCOA) += cocoa.o |
122 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_IOTHREAD) += qemu-thread.o |
123 | e5d355d1 | aliguori | |
124 | f835ed1c | Juan Quintela | slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o |
125 | f835ed1c | Juan Quintela | slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o |
126 | f835ed1c | Juan Quintela | slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o |
127 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y)) |
128 | 4fb240a4 | bellard | |
129 | 2567f579 | Blue Swirl | # xen backend driver support |
130 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o |
131 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o |
132 | 2567f579 | Blue Swirl | |
133 | a558ee17 | Juan Quintela | QEMU_CFLAGS+=$(CURL_CFLAGS) |
134 | 769ce76d | Alexander Graf | |
135 | 4fb240a4 | bellard | cocoa.o: cocoa.m |
136 | 4fb240a4 | bellard | |
137 | 0483755a | aliguori | keymaps.o: keymaps.c keymaps.h |
138 | 0483755a | aliguori | |
139 | c18a2c36 | Stefano Stabellini | sdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h |
140 | c18a2c36 | Stefano Stabellini | |
141 | c18a2c36 | Stefano Stabellini | sdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h |
142 | 807544e2 | aliguori | |
143 | a558ee17 | Juan Quintela | sdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS) |
144 | 4fb240a4 | bellard | |
145 | 76655d6d | aliguori | acl.o: acl.h acl.c |
146 | 76655d6d | aliguori | |
147 | 2f9606b3 | aliguori | vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h |
148 | 5fb6c7a8 | aliguori | |
149 | 76655d6d | aliguori | vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h |
150 | 4fb240a4 | bellard | |
151 | a558ee17 | Juan Quintela | vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |
152 | 4d3b6f6e | balrog | |
153 | 5fb6c7a8 | aliguori | vnc-tls.o: vnc-tls.c vnc.h |
154 | 5fb6c7a8 | aliguori | |
155 | 5fb6c7a8 | aliguori | vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h |
156 | 5fb6c7a8 | aliguori | |
157 | 2f9606b3 | aliguori | vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h |
158 | 2f9606b3 | aliguori | |
159 | 0483755a | aliguori | curses.o: curses.c keymaps.h curses_keys.h |
160 | fb599c9a | balrog | |
161 | a558ee17 | Juan Quintela | bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS) |
162 | 4fb240a4 | bellard | |
163 | 6ef859b3 | Juan Quintela | libqemu_common.a: $(obj-y) |
164 | 4fb240a4 | bellard | |
165 | cec7d0b6 | pbrook | ####################################################################### |
166 | e11b1dce | Juan Quintela | # user-obj-y is code used by qemu userspace emulation |
167 | facd2857 | Blue Swirl | user-obj-y = cutils.o cache-utils.o path.o envlist.o host-utils.o |
168 | cec7d0b6 | pbrook | |
169 | e11b1dce | Juan Quintela | libqemu_user.a: $(user-obj-y) |
170 | cec7d0b6 | pbrook | |
171 | 4fb240a4 | bellard | ###################################################################### |
172 | 4fb240a4 | bellard | |
173 | 153859be | Stuart Brady | qemu-img.o: qemu-img-cmds.h |
174 | 153859be | Stuart Brady | |
175 | a25a0ef5 | Anthony Liguori | qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y) |
176 | 4fb240a4 | bellard | |
177 | a25a0ef5 | Anthony Liguori | qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o $(block-obj-y) |
178 | 3aa892d7 | aliguori | |
179 | a25a0ef5 | Anthony Liguori | qemu-io$(EXESUF): qemu-io.o qemu-tool.o cmd.o $(block-obj-y) |
180 | 0a8e1acd | aliguori | |
181 | 153859be | Stuart Brady | qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx |
182 | 153859be | Stuart Brady | $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@") |
183 | 153859be | Stuart Brady | |
184 | 33837ba6 | Luiz Capitulino | check-qint: check-qint.o qint.o qemu-malloc.o |
185 | 5de65a07 | Luiz Capitulino | check-qstring: check-qstring.o qstring.o qemu-malloc.o |
186 | 7b8c51ad | Luiz Capitulino | check-qdict: check-qdict.o qdict.o qint.o qstring.o qemu-malloc.o |
187 | 33837ba6 | Luiz Capitulino | |
188 | 31e31b8a | bellard | clean: |
189 | 2d80ae89 | bellard | # avoid old build problems by removing potentially incorrect old files |
190 | 5fafdf24 | ths | 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 |
191 | 86e840ee | aurel32 | rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ |
192 | 019d6b8f | Anthony Liguori | rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d |
193 | 07b44ce9 | Blue Swirl | rm -f qemu-img-cmds.h |
194 | 7d3505c5 | bellard | $(MAKE) -C tests clean |
195 | c05ac895 | Paul Brook | for d in $(ALL_SUBDIRS) libhw32 libhw64; do \ |
196 | 7d3505c5 | bellard | $(MAKE) -C $$d $@ || exit 1 ; \ |
197 | 626df76a | bellard | done |
198 | 31e31b8a | bellard | |
199 | 7d13299d | bellard | distclean: clean |
200 | 4bf6b55b | Juan Quintela | rm -f config-host.mak config-host.h config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi |
201 | 0cb3fb1e | pbrook | rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} |
202 | 1ad2134f | Paul Brook | for d in $(TARGET_DIRS) libhw32 libhw64; do \ |
203 | bc1b050d | bellard | rm -rf $$d || exit 1 ; \ |
204 | 76bc6838 | bellard | done |
205 | 7d13299d | bellard | |
206 | fed4a9ad | bellard | KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ |
207 | fed4a9ad | bellard | ar de en-us fi fr-be hr it lv nl pl ru th \ |
208 | fed4a9ad | bellard | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr |
209 | fed4a9ad | bellard | |
210 | 77755340 | ths | ifdef INSTALL_BLOBS |
211 | 77755340 | ths | BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ |
212 | e5d01b06 | aurel32 | video.x openbios-sparc32 openbios-sparc64 openbios-ppc \ |
213 | e5d01b06 | aurel32 | pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \ |
214 | 253d0942 | Alexander Graf | bamboo.dtb petalogix-s3adsp1800.dtb \ |
215 | 253d0942 | Alexander Graf | multiboot.bin |
216 | 77755340 | ths | else |
217 | 77755340 | ths | BLOBS= |
218 | 77755340 | ths | endif |
219 | 77755340 | ths | |
220 | 38954dca | pbrook | install-doc: $(DOCS) |
221 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(docdir)" |
222 | 58f8aead | aliguori | $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" |
223 | 96d409eb | Juan Quintela | ifdef CONFIG_POSIX |
224 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" |
225 | 58f8aead | aliguori | $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" |
226 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" |
227 | 58f8aead | aliguori | $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8" |
228 | 38954dca | pbrook | endif |
229 | 38954dca | pbrook | |
230 | 38954dca | pbrook | install: all $(if $(BUILD_DOCS),install-doc) |
231 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(bindir)" |
232 | 932a79df | ths | ifneq ($(TOOLS),) |
233 | 58f8aead | aliguori | $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" |
234 | 932a79df | ths | endif |
235 | 77755340 | ths | ifneq ($(BLOBS),) |
236 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(datadir)" |
237 | 77755340 | ths | set -e; for x in $(BLOBS); do \ |
238 | 58f8aead | aliguori | $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ |
239 | ad064840 | pbrook | done |
240 | 77755340 | ths | endif |
241 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps" |
242 | 18be8d77 | blueswir1 | set -e; for x in $(KEYMAPS); do \ |
243 | 79fd42aa | Anthony Liguori | $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ |
244 | ad064840 | pbrook | done |
245 | 626df76a | bellard | for d in $(TARGET_DIRS); do \ |
246 | 7d3505c5 | bellard | $(MAKE) -C $$d $@ || exit 1 ; \ |
247 | 626df76a | bellard | done |
248 | 612384d7 | bellard | |
249 | 367e86e8 | bellard | # various test targets |
250 | 9b0b8203 | bellard | test speed: all |
251 | 7d3505c5 | bellard | $(MAKE) -C tests $@ |
252 | 31e31b8a | bellard | |
253 | 21d4e8e3 | Alexandre Bique | .PHONY: TAGS |
254 | 5fafdf24 | ths | TAGS: |
255 | 21d4e8e3 | Alexandre Bique | find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags |
256 | 31e31b8a | bellard | |
257 | 6688bc6d | bellard | cscope: |
258 | 6688bc6d | bellard | rm -f ./cscope.* |
259 | ede46085 | aurel32 | find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files |
260 | 6688bc6d | bellard | cscope -b |
261 | 6688bc6d | bellard | |
262 | 3ef693a0 | bellard | # documentation |
263 | 1f673135 | bellard | %.html: %.texi |
264 | 0d00e563 | aliguori | $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@") |
265 | 3ef693a0 | bellard | |
266 | f3548328 | bellard | %.info: %.texi |
267 | 0d00e563 | aliguori | $(call quiet-command,makeinfo -I . $< -o $@," GEN $@") |
268 | f3548328 | bellard | |
269 | f3548328 | bellard | %.dvi: %.texi |
270 | 0d00e563 | aliguori | $(call quiet-command,texi2dvi -I . $<," GEN $@") |
271 | 5824d651 | blueswir1 | |
272 | 5824d651 | blueswir1 | qemu-options.texi: $(SRC_PATH)/qemu-options.hx |
273 | 0d00e563 | aliguori | $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") |
274 | f3548328 | bellard | |
275 | 2313086a | Blue Swirl | qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx |
276 | 2313086a | Blue Swirl | $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") |
277 | 2313086a | Blue Swirl | |
278 | 153859be | Stuart Brady | qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx |
279 | 153859be | Stuart Brady | $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") |
280 | 153859be | Stuart Brady | |
281 | 2313086a | Blue Swirl | qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi |
282 | 0d00e563 | aliguori | $(call quiet-command, \ |
283 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \ |
284 | 0d00e563 | aliguori | pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ |
285 | 0d00e563 | aliguori | " GEN $@") |
286 | 5a67135a | bellard | |
287 | 153859be | Stuart Brady | qemu-img.1: qemu-img.texi qemu-img-cmds.texi |
288 | 0d00e563 | aliguori | $(call quiet-command, \ |
289 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \ |
290 | 0d00e563 | aliguori | pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ |
291 | 0d00e563 | aliguori | " GEN $@") |
292 | acd935ef | bellard | |
293 | 7a5ca864 | bellard | qemu-nbd.8: qemu-nbd.texi |
294 | 0d00e563 | aliguori | $(call quiet-command, \ |
295 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \ |
296 | 0d00e563 | aliguori | pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ |
297 | 0d00e563 | aliguori | " GEN $@") |
298 | 7a5ca864 | bellard | |
299 | 0cb3fb1e | pbrook | info: qemu-doc.info qemu-tech.info |
300 | 0cb3fb1e | pbrook | |
301 | 0cb3fb1e | pbrook | dvi: qemu-doc.dvi qemu-tech.dvi |
302 | 0cb3fb1e | pbrook | |
303 | 0cb3fb1e | pbrook | html: qemu-doc.html qemu-tech.html |
304 | 0cb3fb1e | pbrook | |
305 | 153859be | Stuart Brady | qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-monitor.texi qemu-img-cmds.texi |
306 | 818220f5 | aliguori | |
307 | df5cf721 | ths | VERSION ?= $(shell cat VERSION) |
308 | df5cf721 | ths | FILE = qemu-$(VERSION) |
309 | 586314f2 | bellard | |
310 | 1e43adfc | bellard | # tar release (use 'make -k tar' on a checkouted tree) |
311 | 586314f2 | bellard | tar: |
312 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
313 | 1e43adfc | bellard | cp -r . /tmp/$(FILE) |
314 | 99c6c082 | aurel32 | cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn |
315 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
316 | 586314f2 | bellard | |
317 | 76b62fd0 | bellard | # generate a binary distribution |
318 | d691f669 | bellard | tarbin: |
319 | 18be8d77 | blueswir1 | cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \ |
320 | 43095f31 | bellard | $(bindir)/qemu \ |
321 | 43095f31 | bellard | $(bindir)/qemu-system-x86_64 \ |
322 | 40e8a53b | aurel32 | $(bindir)/qemu-system-arm \ |
323 | 40e8a53b | aurel32 | $(bindir)/qemu-system-cris \ |
324 | 40e8a53b | aurel32 | $(bindir)/qemu-system-m68k \ |
325 | 93856aac | bellard | $(bindir)/qemu-system-mips \ |
326 | 38260998 | pbrook | $(bindir)/qemu-system-mipsel \ |
327 | fbe4f65b | ths | $(bindir)/qemu-system-mips64 \ |
328 | fbe4f65b | ths | $(bindir)/qemu-system-mips64el \ |
329 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppc \ |
330 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppcemb \ |
331 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppc64 \ |
332 | ff1aaf65 | ths | $(bindir)/qemu-system-sh4 \ |
333 | 85ffbdfc | ths | $(bindir)/qemu-system-sh4eb \ |
334 | 40e8a53b | aurel32 | $(bindir)/qemu-system-sparc \ |
335 | 7efa4387 | bellard | $(bindir)/qemu-i386 \ |
336 | f0403c03 | bellard | $(bindir)/qemu-x86_64 \ |
337 | 40e8a53b | aurel32 | $(bindir)/qemu-alpha \ |
338 | 40e8a53b | aurel32 | $(bindir)/qemu-arm \ |
339 | 40e8a53b | aurel32 | $(bindir)/qemu-armeb \ |
340 | 40e8a53b | aurel32 | $(bindir)/qemu-cris \ |
341 | 40e8a53b | aurel32 | $(bindir)/qemu-m68k \ |
342 | 40e8a53b | aurel32 | $(bindir)/qemu-mips \ |
343 | 40e8a53b | aurel32 | $(bindir)/qemu-mipsel \ |
344 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc \ |
345 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc64 \ |
346 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc64abi32 \ |
347 | 40e8a53b | aurel32 | $(bindir)/qemu-sh4 \ |
348 | 40e8a53b | aurel32 | $(bindir)/qemu-sh4eb \ |
349 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc \ |
350 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc64 \ |
351 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc32plus \ |
352 | 40e8a53b | aurel32 | $(bindir)/qemu-img \ |
353 | 40e8a53b | aurel32 | $(bindir)/qemu-nbd \ |
354 | 7efa4387 | bellard | $(datadir)/bios.bin \ |
355 | 7efa4387 | bellard | $(datadir)/vgabios.bin \ |
356 | de9258a8 | bellard | $(datadir)/vgabios-cirrus.bin \ |
357 | 637f6cd7 | bellard | $(datadir)/ppc_rom.bin \ |
358 | d5295253 | bellard | $(datadir)/video.x \ |
359 | 0986ac3b | bellard | $(datadir)/openbios-sparc32 \ |
360 | 938255d2 | blueswir1 | $(datadir)/openbios-sparc64 \ |
361 | e5d01b06 | aurel32 | $(datadir)/openbios-ppc \ |
362 | 40e8a53b | aurel32 | $(datadir)/pxe-ne2k_pci.bin \ |
363 | 19c80e50 | bellard | $(datadir)/pxe-rtl8139.bin \ |
364 | 40e8a53b | aurel32 | $(datadir)/pxe-pcnet.bin \ |
365 | 2991990b | aliguori | $(datadir)/pxe-e1000.bin \ |
366 | 1f50f8d1 | bellard | $(docdir)/qemu-doc.html \ |
367 | 1f50f8d1 | bellard | $(docdir)/qemu-tech.html \ |
368 | 40e8a53b | aurel32 | $(mandir)/man1/qemu.1 \ |
369 | 40e8a53b | aurel32 | $(mandir)/man1/qemu-img.1 \ |
370 | 7a5ca864 | bellard | $(mandir)/man8/qemu-nbd.8 |
371 | d691f669 | bellard | |
372 | 4fb240a4 | bellard | # Include automatically generated dependency files |
373 | 019d6b8f | Anthony Liguori | -include $(wildcard *.d audio/*.d slirp/*.d block/*.d) |