Statistics
| Branch: | Revision:

root / Makefile @ c05ac895

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