Statistics
| Branch: | Revision:

root / Makefile @ fe0d4d3f

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