Statistics
| Branch: | Revision:

root / Makefile @ 07b44ce9

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