Statistics
| Branch: | Revision:

root / Makefile @ 67c0f08d

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