3 # Always point to the root of the build tree (needs GNU make).
6 # All following code might depend on configuration variables
7 ifneq ($(wildcard config-host.mak
),)
8 # Put the all: rule here so that config-host.mak can contain dependencies.
10 include config-host.mak
12 # Check that we're not trying to do an out-of-tree build from
13 # a tree that's been used for an in-tree build.
14 ifneq ($(realpath
$(SRC_PATH
)),$(realpath .
))
15 ifneq ($(wildcard $(SRC_PATH
)/config-host.mak
),)
16 $(error This is an out of tree build but your source tree
($(SRC_PATH
)) \
17 seems to have been used for an in-tree build. You can fix this by running \
18 "make distclean && rm -rf *-linux-user *-softmmu" in your source tree
)
22 CONFIG_SOFTMMU
:= $(if
$(filter %-softmmu
,$(TARGET_DIRS
)),y
)
23 CONFIG_USER_ONLY
:= $(if
$(filter %-user
,$(TARGET_DIRS
)),y
)
25 -include config-all-devices.mak
26 -include config-all-disas.mak
28 include $(SRC_PATH
)/rules.mak
29 config-host.mak
: $(SRC_PATH
)/configure
30 @echo
$@ is out-of-date
, running configure
31 @
# TODO: The next lines include code which supports a smooth
32 @
# transition from old configurations without config.status.
33 @
# This code can be removed after QEMU 1.7.
34 @if
test -x config.status
; then \
37 sed
-n
"/.*Configured with/s/[^:]*: //p" $@ | sh
; \
41 ifneq ($(filter-out %clean,$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
42 @echo
"Please call configure before running make!"
47 GENERATED_HEADERS
= config-host.h qemu-options.def
48 GENERATED_HEADERS
+= qmp-commands.h qapi-types.h qapi-visit.h qapi-event.h
49 GENERATED_SOURCES
+= qmp-marshal.c qapi-types.c qapi-visit.c qapi-event.c
51 GENERATED_HEADERS
+= trace
/generated-events.h
52 GENERATED_SOURCES
+= trace
/generated-events.c
54 GENERATED_HEADERS
+= trace
/generated-tracers.h
55 ifeq ($(findstring dtrace
,$(TRACE_BACKENDS
)),dtrace
)
56 GENERATED_HEADERS
+= trace
/generated-tracers-dtrace.h
58 GENERATED_SOURCES
+= trace
/generated-tracers.c
60 GENERATED_HEADERS
+= trace
/generated-tcg-tracers.h
62 GENERATED_HEADERS
+= trace
/generated-helpers-wrappers.h
63 GENERATED_HEADERS
+= trace
/generated-helpers.h
64 GENERATED_SOURCES
+= trace
/generated-helpers.c
66 ifeq ($(findstring ust
,$(TRACE_BACKENDS
)),ust
)
67 GENERATED_HEADERS
+= trace
/generated-ust-provider.h
68 GENERATED_SOURCES
+= trace
/generated-ust.c
71 # Don't try to regenerate Makefile or configure
72 # We don't generate any of them
76 .PHONY
: all clean cscope
dist distclean doc
dvi html \
77 info install install-doc install-tools \
78 pdf recurse-all speed
test tools
80 $(call set-vpath
, $(SRC_PATH
))
82 LIBS
+=-lz
$(LIBS_TOOLS
)
84 HELPERS-
$(CONFIG_LINUX
) = qemu-bridge-helper
$(EXESUF
)
86 DOCS
=qemu-doc.html qemu-tech.html qemu
.1 qemu-img
.1 qemu-nbd
.8 qmp-commands.txt
91 DOCS
+=fsdev
/virtfs-proxy-helper
.1
94 SUBDIR_MAKEFLAGS
=$(if
$(V
),,--no-print-directory
) BUILD_DIR
=$(BUILD_DIR
)
95 SUBDIR_DEVICES_MAK
=$(patsubst %, %/config-devices.mak
, $(TARGET_DIRS
))
96 SUBDIR_DEVICES_MAK_DEP
=$(patsubst %, %-config-devices.mak.d
, $(TARGET_DIRS
))
98 ifeq ($(SUBDIR_DEVICES_MAK
),)
99 config-all-devices.mak
:
100 $(call quiet-command
,echo
'# no devices' > $@
," GEN $@")
102 config-all-devices.mak
: $(SUBDIR_DEVICES_MAK
)
103 $(call quiet-command
, sed
-n \
104 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \
105 $(SUBDIR_DEVICES_MAK
) |
sort -u
> $@
, \
109 -include $(SUBDIR_DEVICES_MAK_DEP
)
111 %/config-devices.mak
: default-configs
/%.mak
112 $(call quiet-command
, \
113 $(SHELL
) $(SRC_PATH
)/scripts
/make_device_config.sh
$< $*-config-devices.mak.d
$@
> $@.tmp
, " GEN $@.tmp")
114 $(call quiet-command
, if
test -f
$@
; then \
115 if cmp
-s
$@.old
$@
; then \
119 if
test -f
$@.old
; then \
120 echo
"WARNING: $@ (user modified) out of date.";\
122 echo
"WARNING: $@ out of date.";\
124 echo
"Run \"make defconfig\" to regenerate."; \
133 rm -f config-all-devices.mak
$(SUBDIR_DEVICES_MAK
)
135 ifneq ($(wildcard config-host.mak
),)
136 include $(SRC_PATH
)/Makefile.objs
139 dummy
:= $(call unnest-vars
,, \
149 ifneq ($(wildcard config-host.mak
),)
150 include $(SRC_PATH
)/tests
/Makefile
152 ifeq ($(CONFIG_SMARTCARD_NSS
),y
)
153 include $(SRC_PATH
)/libcacard
/Makefile
172 config-host.h
: config-host.h-timestamp
173 config-host.h-timestamp
: config-host.mak
174 qemu-options.def
: $(SRC_PATH
)/qemu-options.hx
175 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
," GEN $@")
177 SUBDIR_RULES
=$(patsubst %,subdir-
%, $(TARGET_DIRS
))
178 SOFTMMU_SUBDIR_RULES
=$(filter %-softmmu
,$(SUBDIR_RULES
))
180 $(SOFTMMU_SUBDIR_RULES
): $(block-obj-y
)
181 $(SOFTMMU_SUBDIR_RULES
): config-all-devices.mak
184 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$* V
="$(V)" TARGET_DIR
="$*/" all,)
186 subdir-pixman
: pixman
/Makefile
187 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C pixman V
="$(V)" all,)
189 pixman
/Makefile
: $(SRC_PATH
)/pixman
/configure
190 (cd pixman
; CFLAGS
="$(CFLAGS) -fPIC $(extra_cflags) $(extra_ldflags)" $(SRC_PATH
)/pixman
/configure
$(AUTOCONF_HOST
) --disable-gtk
--disable-shared
--enable-static
)
192 $(SRC_PATH
)/pixman
/configure
:
193 (cd
$(SRC_PATH
)/pixman
; autoreconf
-v
--install)
195 DTC_MAKE_ARGS
=-I
$(SRC_PATH
)/dtc VPATH
=$(SRC_PATH
)/dtc
-C dtc V
="$(V)" LIBFDT_srcdir
=$(SRC_PATH
)/dtc
/libfdt
196 DTC_CFLAGS
=$(CFLAGS
) $(QEMU_CFLAGS
)
197 DTC_CPPFLAGS
=-I
$(BUILD_DIR
)/dtc
-I
$(SRC_PATH
)/dtc
-I
$(SRC_PATH
)/dtc
/libfdt
199 subdir-dtc
:dtc
/libfdt dtc
/tests
200 $(call quiet-command
,$(MAKE
) $(DTC_MAKE_ARGS
) CPPFLAGS
="$(DTC_CPPFLAGS)" CFLAGS
="$(DTC_CFLAGS)" LDFLAGS
="$(LDFLAGS)" ARFLAGS
="$(ARFLAGS)" CC
="$(CC)" AR
="$(AR)" LD
="$(LD)" $(SUBDIR_MAKEFLAGS
) libfdt
/libfdt.a
,)
205 $(SUBDIR_RULES
): libqemuutil.a libqemustub.a
$(common-obj-y
)
207 ROMSUBDIR_RULES
=$(patsubst %,romsubdir-
%, $(ROMS
))
209 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C pc-bios
/$* V
="$(V)" TARGET_DIR
="$*/",)
211 ALL_SUBDIRS
=$(TARGET_DIRS
) $(patsubst %,pc-bios
/%, $(ROMS
))
213 recurse-all
: $(SUBDIR_RULES
) $(ROMSUBDIR_RULES
)
215 $(BUILD_DIR
)/version.o
: $(SRC_PATH
)/version.rc config-host.h |
$(BUILD_DIR
)/version.lo
216 $(call quiet-command
,$(WINDRES
) -I
$(BUILD_DIR
) -o
$@
$<," RC version.o")
217 $(BUILD_DIR
)/version.lo
: $(SRC_PATH
)/version.rc config-host.h
218 $(call quiet-command
,$(WINDRES
) -I
$(BUILD_DIR
) -o
$@
$<," RC version.lo")
220 Makefile
: $(version-obj-y
) $(version-lobj-y
)
222 ######################################################################
225 libqemustub.a
: $(stub-obj-y
)
226 libqemuutil.a
: $(util-obj-y
)
228 block-modules
= $(foreach o
,$(block-obj-m
),"$(basename $(subst /,-,$o))",) NULL
229 util
/module.o-cflags
= -D
'CONFIG_BLOCK_MODULES=$(block-modules)'
231 ######################################################################
233 qemu-img.o
: qemu-img-cmds.h
235 qemu-img
$(EXESUF
): qemu-img.o
$(block-obj-y
) libqemuutil.a libqemustub.a
236 qemu-nbd
$(EXESUF
): qemu-nbd.o
$(block-obj-y
) libqemuutil.a libqemustub.a
237 qemu-io
$(EXESUF
): qemu-io.o
$(block-obj-y
) libqemuutil.a libqemustub.a
239 qemu-bridge-helper
$(EXESUF
): qemu-bridge-helper.o
241 fsdev
/virtfs-proxy-helper
$(EXESUF
): fsdev
/virtfs-proxy-helper.o fsdev
/virtio-9p-marshal.o libqemuutil.a libqemustub.a
242 fsdev
/virtfs-proxy-helper
$(EXESUF
): LIBS
+= -lcap
244 qemu-img-cmds.h
: $(SRC_PATH
)/qemu-img-cmds.hx
245 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
," GEN $@")
247 qemu-ga
$(EXESUF
): LIBS
= $(LIBS_QGA
)
248 qemu-ga
$(EXESUF
): QEMU_CFLAGS
+= -I qga
/qapi-generated
250 gen-out-type
= $(subst .
,-,$(suffix $@
))
252 qapi-py
= $(SRC_PATH
)/scripts
/qapi.py
$(SRC_PATH
)/scripts
/ordereddict.py
254 qga
/qapi-generated
/qga-qapi-types.c qga
/qapi-generated
/qga-qapi-types.h
:\
255 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
256 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
257 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" -i
$<, \
259 qga
/qapi-generated
/qga-qapi-visit.c qga
/qapi-generated
/qga-qapi-visit.h
:\
260 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
261 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
262 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" -i
$<, \
264 qga
/qapi-generated
/qga-qmp-commands.h qga
/qapi-generated
/qga-qmp-marshal.c
:\
265 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
266 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
267 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" -i
$<, \
270 qapi-modules
= $(SRC_PATH
)/qapi-schema.json
$(SRC_PATH
)/qapi
/common.json \
271 $(SRC_PATH
)/qapi
/block.json
$(SRC_PATH
)/qapi
/block-core.json \
272 $(SRC_PATH
)/qapi
/event.json
274 qapi-types.c qapi-types.h
:\
275 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
276 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
277 $(gen-out-type
) -o
"." -b
-i
$<, \
279 qapi-visit.c qapi-visit.h
:\
280 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
281 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
282 $(gen-out-type
) -o
"." -b
-i
$<, \
284 qapi-event.c qapi-event.h
:\
285 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-event.py
$(qapi-py
)
286 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-event.py \
287 $(gen-out-type
) -o
"." -b
-i
$<, \
289 qmp-commands.h qmp-marshal.c
:\
290 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
291 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
292 $(gen-out-type
) -o
"." -m
-i
$<, \
295 QGALIB_GEN
=$(addprefix qga
/qapi-generated
/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h
)
296 $(qga-obj-y
) qemu-ga.o
: $(QGALIB_GEN
)
298 qemu-ga
$(EXESUF
): $(qga-obj-y
) libqemuutil.a libqemustub.a
302 # avoid old build problems by removing potentially incorrect old files
303 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
304 rm -f qemu-options.def
305 find . \
( -name
'*.l[oa]' -o
-name
'*.so' -o
-name
'*.dll' -o
-name
'*.mo' -o
-name
'*.[oda]' \
) -type f
-exec
rm {} +
306 rm -f
$(filter-out %.tlb
,$(TOOLS
)) $(HELPERS-y
) qemu-ga TAGS cscope.
* *.pod
*~
*/*~
309 rm -f qemu-img-cmds.h
310 @
# May not be present in GENERATED_HEADERS
311 rm -f trace
/generated-tracers-dtrace.dtrace
*
312 rm -f trace
/generated-tracers-dtrace.h
*
313 rm -f
$(foreach f
,$(GENERATED_HEADERS
),$(f
) $(f
)-timestamp
)
314 rm -f
$(foreach f
,$(GENERATED_SOURCES
),$(f
) $(f
)-timestamp
)
315 rm -rf qapi-generated
316 rm -rf qga
/qapi-generated
317 for d in
$(ALL_SUBDIRS
); do \
318 if
test -d
$$d; then
$(MAKE
) -C
$$d $@ || exit
1; fi
; \
319 rm -f
$$d/qemu-options.def
; \
322 VERSION ?
= $(shell cat VERSION
)
324 dist: qemu-
$(VERSION
).
tar.bz2
327 $(SRC_PATH
)/scripts
/make-release
"$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
330 rm -f config-host.mak config-host.h
* config-host.
ld $(DOCS
) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi
331 rm -f config-all-devices.mak config-all-disas.mak config.status
332 rm -f po
/*.mo tests
/qemu-iotests
/common.env
333 rm -f roms
/seabios
/config.mak roms
/vgabios
/config.mak
334 rm -f qemu-doc.
info qemu-doc.aux qemu-doc.cp qemu-doc.cps qemu-doc.
dvi
335 rm -f qemu-doc.fn qemu-doc.fns qemu-doc.
info qemu-doc.ky qemu-doc.kys
336 rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp
339 rm -f linux-headers
/asm
340 rm -f qemu-tech.
info qemu-tech.aux qemu-tech.cp qemu-tech.
dvi qemu-tech.fn qemu-tech.
info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg qemu-tech.toc qemu-tech.tp qemu-tech.vr
341 for d in
$(TARGET_DIRS
); do \
342 rm -rf
$$d || exit
1 ; \
345 if
test -f pixman
/config.log
; then
$(MAKE
) -C pixman
distclean; fi
346 if
test -f dtc
/version_gen.h
; then
$(MAKE
) $(DTC_MAKE_ARGS
) clean; fi
348 KEYMAPS
=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
349 ar de en-us fi fr-be hr it lv nl pl ru th \
350 common de-ch es fo fr-ca hu ja mk nl-be pt sl tr \
354 BLOBS
=bios.bin bios-256k.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
355 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin \
356 acpi-dsdt.aml q35-acpi-dsdt.aml \
357 ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc QEMU
,tcx.bin QEMU
,cgthree.bin \
358 pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
359 pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
360 efi-e1000.rom efi-eepro100.rom efi-ne2k_pci.rom \
361 efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
362 qemu-icon.bmp qemu_logo_no_text.svg \
363 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
364 multiboot.bin linuxboot.bin kvmvapic.bin \
367 spapr-rtas.bin slof.bin \
375 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)"
376 $(INSTALL_DATA
) qemu-doc.html qemu-tech.html
"$(DESTDIR)$(qemu_docdir)"
377 $(INSTALL_DATA
) qmp-commands.txt
"$(DESTDIR)$(qemu_docdir)"
379 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
380 $(INSTALL_DATA
) qemu
.1 "$(DESTDIR)$(mandir)/man1"
382 $(INSTALL_DATA
) qemu-img
.1 "$(DESTDIR)$(mandir)/man1"
383 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man8"
384 $(INSTALL_DATA
) qemu-nbd
.8 "$(DESTDIR)$(mandir)/man8"
388 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
389 $(INSTALL_DATA
) fsdev
/virtfs-proxy-helper
.1 "$(DESTDIR)$(mandir)/man1"
393 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)"
395 install-localstatedir
:
397 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
398 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_localstatedir)"/run
403 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_confdir)"
405 install-sysconfig
: install-datadir install-confdir
406 $(INSTALL_DATA
) $(SRC_PATH
)/sysconfigs
/target
/target-x86_64.conf
"$(DESTDIR)$(qemu_confdir)"
410 install: all $(if
$(BUILD_DOCS
),install-doc
) $(if
$(BUILD_TOOLS
),install-tools
) install-sysconfig \
411 install-datadir install-localstatedir
413 $(call install-prog
,$(TOOLS
),$(DESTDIR
)$(bindir))
415 ifneq ($(CONFIG_MODULES
),)
416 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_moddir)"
417 for s in
$(modules-m
:.mo
=$(DSOSUF
)); do \
418 t
="$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
419 $(INSTALL_LIB
) $$s "$$t"; \
420 test -z
"$(STRIP)" ||
$(STRIP
) "$$t"; \
423 ifneq ($(HELPERS-y
),)
424 $(call install-prog
,$(HELPERS-y
),$(DESTDIR
)$(libexecdir
))
427 set
-e
; for x in
$(BLOBS
); do \
428 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/$$x "$(DESTDIR)$(qemu_datadir)"; \
431 ifeq ($(CONFIG_GTK
),y
)
434 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/keymaps"
435 set
-e
; for x in
$(KEYMAPS
); do \
436 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/keymaps
/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
438 $(INSTALL_DATA
) $(SRC_PATH
)/trace-events
"$(DESTDIR)$(qemu_datadir)/trace-events"
439 for d in
$(TARGET_DIRS
); do \
440 $(MAKE
) $(SUBDIR_MAKEFLAGS
) TARGET_DIR
=$$d/ -C
$$d $@ || exit
1 ; \
443 # various test targets
445 $(MAKE
) -C tests
/tcg
$@
450 find
"$(SRC_PATH)" -name
'*.[hc]' -exec etags
--append
{} +
454 find
"$(SRC_PATH)" -name
"*.[chsS]" -print | sed
's,^\./,,' > .
/cscope.files
459 MAKEINFOFLAGS
=--no-headers
--no-split
--number-sections
460 TEXIFLAG
=$(if
$(V
),,--quiet
)
462 $(call quiet-command
,texi2dvi $(TEXIFLAG
) -I .
$<," GEN $@")
465 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --html
$< -o
$@
, \
469 $(call quiet-command
,$(MAKEINFO
) $< -o
$@
," GEN $@")
472 $(call quiet-command
,texi2pdf
$(TEXIFLAG
) -I .
$<," GEN $@")
474 qemu-options.texi
: $(SRC_PATH
)/qemu-options.hx
475 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
," GEN $@")
477 qemu-monitor.texi
: $(SRC_PATH
)/hmp-commands.hx
478 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
," GEN $@")
480 qmp-commands.txt
: $(SRC_PATH
)/qmp-commands.hx
481 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-q
< $< > $@
," GEN $@")
483 qemu-img-cmds.texi
: $(SRC_PATH
)/qemu-img-cmds.hx
484 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
," GEN $@")
486 qemu
.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
487 $(call quiet-command
, \
488 perl
-Ww
-- $(SRC_PATH
)/scripts
/texi2pod.pl
$< qemu.pod
&& \
489 $(POD2MAN
) --section
=1 --center
=" " --release
=" " qemu.pod
> $@
, \
492 qemu-img
.1: qemu-img.texi qemu-img-cmds.texi
493 $(call quiet-command
, \
494 perl
-Ww
-- $(SRC_PATH
)/scripts
/texi2pod.pl
$< qemu-img.pod
&& \
495 $(POD2MAN
) --section
=1 --center
=" " --release
=" " qemu-img.pod
> $@
, \
498 fsdev
/virtfs-proxy-helper
.1: fsdev
/virtfs-proxy-helper.texi
499 $(call quiet-command
, \
500 perl
-Ww
-- $(SRC_PATH
)/scripts
/texi2pod.pl
$< fsdev
/virtfs-proxy-helper.pod
&& \
501 $(POD2MAN
) --section
=1 --center
=" " --release
=" " fsdev
/virtfs-proxy-helper.pod
> $@
, \
504 qemu-nbd
.8: qemu-nbd.texi
505 $(call quiet-command
, \
506 perl
-Ww
-- $(SRC_PATH
)/scripts
/texi2pod.pl
$< qemu-nbd.pod
&& \
507 $(POD2MAN
) --section
=8 --center
=" " --release
=" " qemu-nbd.pod
> $@
, \
510 kvm_stat
.1: scripts
/kvm
/kvm_stat.texi
511 $(call quiet-command
, \
512 perl
-Ww
-- $(SRC_PATH
)/scripts
/texi2pod.pl
$< kvm_stat.pod
&& \
513 $(POD2MAN
) --section
=1 --center
=" " --release
=" " kvm_stat.pod
> $@
, \
516 dvi: qemu-doc.
dvi qemu-tech.
dvi
517 html
: qemu-doc.html qemu-tech.html
518 info: qemu-doc.
info qemu-tech.
info
519 pdf
: qemu-doc.pdf qemu-tech.pdf
521 qemu-doc.
dvi qemu-doc.html qemu-doc.
info qemu-doc.pdf
: \
522 qemu-img.texi qemu-nbd.texi qemu-options.texi \
523 qemu-monitor.texi qemu-img-cmds.texi
527 INSTALLER
= qemu-setup-
$(VERSION
)$(EXESUF
)
529 nsisflags
= -V2
-NOCD
531 ifneq ($(wildcard $(SRC_PATH
)/dll
),)
532 ifeq ($(ARCH
),x86_64
)
534 DLL_PATH
= $(SRC_PATH
)/dll
/w64
538 DLL_PATH
= $(SRC_PATH
)/dll
/w32
543 installer
: $(INSTALLER
)
545 INSTDIR
=/tmp
/qemu-nsis
547 $(INSTALLER
): $(SRC_PATH
)/qemu.nsi
548 $(MAKE
) install prefix=${INSTDIR}
557 for i in qemu-system-
*.exe
; do \
559 arch
=$${arch
#qemu-system-}; \
560 echo Section
\"$$arch\" Section_
$$arch; \
561 echo SetOutPath
\"\
$$INSTDIR\"; \
562 echo File
\"\
$${BINDIR}\\$$i\"; \
565 ) >${INSTDIR}/system-emulations.nsh
566 makensis
$(nsisflags
) \
567 $(if
$(BUILD_DOCS
),-DCONFIG_DOCUMENTATION
="y") \
568 $(if
$(CONFIG_GTK
),-DCONFIG_GTK
="y") \
569 -DBINDIR
="${INSTDIR}" \
570 $(if
$(DLL_PATH
),-DDLLDIR
="$(DLL_PATH)") \
571 -DSRCDIR
="$(SRC_PATH)" \
572 -DOUTFILE
="$(INSTALLER)" \
576 $(SIGNCODE
) $(INSTALLER
)
580 # Add a dependency on the generated files, so that they are always
581 # rebuilt before other object files
582 ifneq ($(filter-out %clean,$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
583 Makefile
: $(GENERATED_HEADERS
)
586 # Include automatically generated dependency files
587 # Dependencies in Makefile.objs files come from our recursive subdir rules
588 -include $(wildcard *.d tests
/*.d
)