3 ifneq ($(words $(subst :, ,$(CURDIR
))), 1)
4 $(error main directory cannot contain spaces nor colons
)
7 # Always point to the root of the build tree (needs GNU make).
10 # Before including a proper config-host.mak, assume we are in the source tree
13 UNCHECKED_GOALS
:= %clean TAGS cscope ctags
dist \
15 help check-help print-
% \
16 docker docker-
% vm-help vm-test vm-build-
%
18 # All following code might depend on configuration variables
19 ifneq ($(wildcard config-host.mak
),)
20 # Put the all: rule here so that config-host.mak can contain dependencies.
22 include config-host.mak
26 .PHONY
: git-submodule-update
28 git_module_status
:= $(shell \
30 GIT
="$(GIT)" .
/scripts
/git-submodule.sh status
$(GIT_SUBMODULES
); \
34 ifeq (1,$(git_module_status
))
35 ifeq (no
,$(GIT_UPDATE
))
37 $(call quiet-command
, \
39 echo
"GIT submodule checkout is out of date. Please run" && \
40 echo
" scripts/git-submodule.sh update $(GIT_SUBMODULES)" && \
41 echo
"from the source directory checkout $(SRC_PATH)" && \
46 $(call quiet-command
, \
47 (cd
$(SRC_PATH
) && GIT
="$(GIT)" .
/scripts
/git-submodule.sh update
$(GIT_SUBMODULES
)), \
48 "GIT","$(GIT_SUBMODULES)")
52 .git-submodule-status
: git-submodule-update config-host.mak
54 # Check that we're not trying to do an out-of-tree build from
55 # a tree that's been used for an in-tree build.
56 ifneq ($(realpath
$(SRC_PATH
)),$(realpath .
))
57 ifneq ($(wildcard $(SRC_PATH
)/config-host.mak
),)
58 $(error This is an out of tree build but your source tree
($(SRC_PATH
)) \
59 seems to have been used for an in-tree build. You can fix this by running \
60 "$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree
)
64 CONFIG_SOFTMMU
:= $(if
$(filter %-softmmu
,$(TARGET_DIRS
)),y
)
65 CONFIG_USER_ONLY
:= $(if
$(filter %-user
,$(TARGET_DIRS
)),y
)
66 CONFIG_XEN
:= $(CONFIG_XEN_BACKEND
)
68 -include config-all-devices.mak
69 -include config-all-disas.mak
71 config-host.mak
: $(SRC_PATH
)/configure
$(SRC_PATH
)/pc-bios
$(SRC_PATH
)/VERSION
72 @echo
$@ is out-of-date
, running configure
75 # Force configure to re-run if the API symbols are updated
76 ifeq ($(CONFIG_PLUGIN
),y
)
77 config-host.mak
: $(SRC_PATH
)/plugins
/qemu-plugins.symbols
82 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
83 @echo
"Please call configure before running make!"
88 include $(SRC_PATH
)/rules.mak
90 # lor is defined in rules.mak
91 CONFIG_BLOCK
:= $(call lor
,$(CONFIG_SOFTMMU
),$(CONFIG_TOOLS
))
93 # Create QEMU_PKGVERSION and FULL_VERSION strings
94 # If PKGVERSION is set, use that; otherwise get version and -dirty status from git
95 QEMU_PKGVERSION
:= $(if
$(PKGVERSION
),$(PKGVERSION
),$(shell \
97 if
test -e .git
; then \
98 git describe
--match
'v*' 2>/dev
/null | tr
-d
'\n'; \
99 if
! git diff-index
--quiet HEAD
&>/dev
/null
; then \
104 # Either "version (pkgversion)", or just "version" if pkgversion not set
105 FULL_VERSION
:= $(if
$(QEMU_PKGVERSION
),$(VERSION
) ($(QEMU_PKGVERSION
)),$(VERSION
))
107 generated-files-y
= qemu-version.h config-host.h qemu-options.def
109 GENERATED_QAPI_FILES
= qapi
/qapi-builtin-types.h qapi
/qapi-builtin-types.c
110 GENERATED_QAPI_FILES
+= qapi
/qapi-types.h qapi
/qapi-types.c
111 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-types-
%.h
)
112 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-types-
%.c
)
113 GENERATED_QAPI_FILES
+= qapi
/qapi-builtin-visit.h qapi
/qapi-builtin-visit.c
114 GENERATED_QAPI_FILES
+= qapi
/qapi-visit.h qapi
/qapi-visit.c
115 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-visit-
%.h
)
116 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-visit-
%.c
)
117 GENERATED_QAPI_FILES
+= qapi
/qapi-init-commands.h qapi
/qapi-init-commands.c
118 GENERATED_QAPI_FILES
+= qapi
/qapi-commands.h qapi
/qapi-commands.c
119 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-commands-
%.h
)
120 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-commands-
%.c
)
121 GENERATED_QAPI_FILES
+= qapi
/qapi-emit-events.h qapi
/qapi-emit-events.c
122 GENERATED_QAPI_FILES
+= qapi
/qapi-events.h qapi
/qapi-events.c
123 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-events-
%.h
)
124 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-events-
%.c
)
125 GENERATED_QAPI_FILES
+= qapi
/qapi-introspect.c qapi
/qapi-introspect.h
126 GENERATED_QAPI_FILES
+= qapi
/qapi-doc.texi
128 # The following list considers only the storage daemon main module. All other
129 # modules are currently shared with the main schema, so we don't actually
130 # generate additional files.
132 GENERATED_STORAGE_DAEMON_QAPI_FILES
= storage-daemon
/qapi
/qapi-commands.h
133 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-commands.c
134 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-emit-events.h
135 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-emit-events.c
136 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-events.h
137 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-events.c
138 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-init-commands.h
139 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-init-commands.c
140 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-introspect.h
141 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-introspect.c
142 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-types.h
143 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-types.c
144 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-visit.h
145 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-visit.c
146 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-doc.texi
148 generated-files-y
+= $(GENERATED_QAPI_FILES
)
149 generated-files-y
+= $(GENERATED_STORAGE_DAEMON_QAPI_FILES
)
151 generated-files-y
+= trace
/generated-tcg-tracers.h
153 generated-files-y
+= trace
/generated-helpers-wrappers.h
154 generated-files-y
+= trace
/generated-helpers.h
155 generated-files-y
+= trace
/generated-helpers.c
157 generated-files-
$(CONFIG_TRACE_UST
) += trace-ust-all.h
158 generated-files-
$(CONFIG_TRACE_UST
) += trace-ust-all.c
160 generated-files-y
+= module_block.h
162 TRACE_HEADERS
= trace
/trace-root.h
163 TRACE_SOURCES
= trace
/trace-root.c
165 ifdef CONFIG_TRACE_DTRACE
166 TRACE_HEADERS
+= trace-dtrace-root.h
$(trace-events-subdirs
:%=%/trace-dtrace.h
)
167 TRACE_DTRACE
+= trace-dtrace-root.dtrace
$(trace-events-subdirs
:%=%/trace-dtrace.dtrace
)
169 ifdef CONFIG_TRACE_UST
170 TRACE_HEADERS
+= trace-ust-root.h
$(trace-events-subdirs
:%=%/trace-ust.h
)
173 generated-files-y
+= $(BUILD_DIR
)/trace-events-all
174 generated-files-y
+= .git-submodule-status
176 trace-group-name
= $(shell dirname
$1 | sed
-e
's/[^a-zA-Z0-9]/_/g')
177 trace-group-suffix
= $(shell echo
$1 | sed
-e
's/[^a-zA-Z0-9]/_/g')
179 tracetool-y
= $(SRC_PATH
)/scripts
/tracetool.py
180 tracetool-y
+= $(shell find
$(SRC_PATH
)/scripts
/tracetool
-name
"*.py")
183 TRACE_HEADERS
+= trace
/trace-
$2.h
184 TRACE_SOURCES
+= trace
/trace-
$2.c
185 trace-obj-y
+= trace
/trace-
$2.o
186 trace
/trace-
$2.h
: trace
/trace-
$2.h-timestamp
187 @cmp
$$< $$@
>/dev
/null
2>&1 || cp
$$< $$@
188 trace
/trace-
$2.h-timestamp
: $(SRC_PATH
)/$1/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
189 $(call quiet-command
,$(TRACETOOL
) \
192 --backends
=$(TRACE_BACKENDS
) \
193 $$< > $$@
,"GEN","$$(@:%-timestamp=%)")
195 trace
/trace-
$2.c
: trace
/trace-
$2.c-timestamp
196 @cmp
$$< $$@
>/dev
/null
2>&1 || cp
$$< $$@
197 trace
/trace-
$2.c-timestamp
: $(SRC_PATH
)/$1/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
198 $(call quiet-command
,$(TRACETOOL
) \
201 --backends
=$(TRACE_BACKENDS
) \
202 $$< > $$@
,"GEN","$$(@:%-timestamp=%)")
205 %/trace-ust.h
: %/trace-ust.h-timestamp
206 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
207 %/trace-ust.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
208 $(call quiet-command
,$(TRACETOOL
) \
209 --group
=$(call trace-group-name
,$@
) \
210 --format
=ust-events-h \
211 --backends
=$(TRACE_BACKENDS
) \
212 $< > $@
,"GEN","$(@:%-timestamp=%)")
214 %/trace-dtrace.dtrace
: %/trace-dtrace.dtrace-timestamp
215 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
216 %/trace-dtrace.dtrace-timestamp
: $(SRC_PATH
)/%/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
217 $(call quiet-command
,$(TRACETOOL
) \
218 --group
=$(call trace-group-name
,$@
) \
220 --backends
=$(TRACE_BACKENDS
) \
221 $< > $@
,"GEN","$(@:%-timestamp=%)")
223 %/trace-dtrace.h
: %/trace-dtrace.dtrace
$(tracetool-y
)
224 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
226 %/trace-dtrace.o
: %/trace-dtrace.dtrace
$(tracetool-y
)
229 trace
/trace-root.h
: trace
/trace-root.h-timestamp
230 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
231 trace
/trace-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
232 $(call quiet-command
,$(TRACETOOL
) \
235 --backends
=$(TRACE_BACKENDS
) \
236 $< > $@
,"GEN","$(@:%-timestamp=%)")
238 trace
/trace-root.c
: trace
/trace-root.c-timestamp
239 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
240 trace
/trace-root.c-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
241 $(call quiet-command
,$(TRACETOOL
) \
244 --backends
=$(TRACE_BACKENDS
) \
245 $< > $@
,"GEN","$(@:%-timestamp=%)")
247 trace-ust-root.h
: trace-ust-root.h-timestamp
248 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
249 trace-ust-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
250 $(call quiet-command
,$(TRACETOOL
) \
252 --format
=ust-events-h \
253 --backends
=$(TRACE_BACKENDS
) \
254 $< > $@
,"GEN","$(@:%-timestamp=%)")
256 trace-ust-all.h
: trace-ust-all.h-timestamp
257 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
258 trace-ust-all.h-timestamp
: $(trace-events-files
) $(tracetool-y
) $(BUILD_DIR
)/config-host.mak
259 $(call quiet-command
,$(TRACETOOL
) \
261 --format
=ust-events-h \
262 --backends
=$(TRACE_BACKENDS
) \
263 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
265 trace-ust-all.c
: trace-ust-all.c-timestamp
266 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
267 trace-ust-all.c-timestamp
: $(trace-events-files
) $(tracetool-y
) $(BUILD_DIR
)/config-host.mak
268 $(call quiet-command
,$(TRACETOOL
) \
270 --format
=ust-events-c \
271 --backends
=$(TRACE_BACKENDS
) \
272 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
274 trace-dtrace-root.dtrace
: trace-dtrace-root.dtrace-timestamp
275 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
276 trace-dtrace-root.dtrace-timestamp
: $(SRC_PATH
)/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
277 $(call quiet-command
,$(TRACETOOL
) \
280 --backends
=$(TRACE_BACKENDS
) \
281 $< > $@
,"GEN","$(@:%-timestamp=%)")
283 trace-dtrace-root.h
: trace-dtrace-root.dtrace
284 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
286 trace-dtrace-root.o
: trace-dtrace-root.dtrace
288 KEYCODEMAP_GEN
= $(SRC_PATH
)/ui
/keycodemapdb
/tools
/keymap-gen
289 KEYCODEMAP_CSV
= $(SRC_PATH
)/ui
/keycodemapdb
/data
/keymaps.csv
292 ui
/input-keymap-atset1-to-qcode.c.inc \
293 ui
/input-keymap-linux-to-qcode.c.inc \
294 ui
/input-keymap-qcode-to-atset1.c.inc \
295 ui
/input-keymap-qcode-to-atset2.c.inc \
296 ui
/input-keymap-qcode-to-atset3.c.inc \
297 ui
/input-keymap-qcode-to-linux.c.inc \
298 ui
/input-keymap-qcode-to-qnum.c.inc \
299 ui
/input-keymap-qcode-to-sun.c.inc \
300 ui
/input-keymap-qnum-to-qcode.c.inc \
301 ui
/input-keymap-usb-to-qcode.c.inc \
302 ui
/input-keymap-win32-to-qcode.c.inc \
303 ui
/input-keymap-x11-to-qcode.c.inc \
304 ui
/input-keymap-xorgevdev-to-qcode.c.inc \
305 ui
/input-keymap-xorgkbd-to-qcode.c.inc \
306 ui
/input-keymap-xorgxquartz-to-qcode.c.inc \
307 ui
/input-keymap-xorgxwin-to-qcode.c.inc \
308 ui
/input-keymap-osx-to-qcode.c.inc \
311 generated-files-
$(CONFIG_SOFTMMU
) += $(KEYCODEMAP_FILES
)
313 ui
/input-keymap-
%.c.inc
: $(KEYCODEMAP_GEN
) $(KEYCODEMAP_CSV
) $(SRC_PATH
)/ui
/Makefile.objs
314 $(call quiet-command
,\
315 stem
=$* && src
=$${stem
%-to-
*} dst
=$${stem
#*-to-} && \
316 test -e
$(KEYCODEMAP_GEN
) && \
317 $(PYTHON
) $(KEYCODEMAP_GEN
) \
319 --varname qemu_input_map_
$${src}_to_
$${dst} \
320 code-map
$(KEYCODEMAP_CSV
) $${src} $${dst} \
321 > $@ ||
rm -f
$@
, "GEN", "$@")
323 $(KEYCODEMAP_GEN
): .git-submodule-status
324 $(KEYCODEMAP_CSV
): .git-submodule-status
326 edk2-decompressed
= $(basename $(wildcard pc-bios
/edk2-
*.fd.bz2
))
327 pc-bios
/edk2-
%.fd
: pc-bios
/edk2-
%.fd.bz2
328 $(call quiet-command
,bzip2
-d
-c
$< > $@
,"BUNZIP2",$<)
330 # Don't try to regenerate Makefile or configure
331 # We don't generate any of them
335 .PHONY
: all clean cscope
distclean html
info install install-doc \
336 pdf txt recurse-all
dist msi FORCE
338 $(call set-vpath
, $(SRC_PATH
))
340 LIBS
+=-lz
$(LIBS_TOOLS
)
343 HELPERS-y
= $(HELPERS
)
345 HELPERS-
$(call land
,$(CONFIG_SOFTMMU
),$(CONFIG_LINUX
)) += qemu-bridge-helper
$(EXESUF
)
347 ifeq ($(CONFIG_LINUX
)$(CONFIG_VIRGL
)$(CONFIG_GBM
)$(CONFIG_TOOLS
),yyyy
)
348 HELPERS-y
+= vhost-user-gpu
$(EXESUF
)
349 vhost-user-json-y
+= contrib
/vhost-user-gpu
/50-qemu-gpu.json
352 ifeq ($(CONFIG_SOFTMMU
)$(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyyy
)
353 HELPERS-y
+= virtiofsd
$(EXESUF
)
354 vhost-user-json-y
+= tools
/virtiofsd
/50-qemu-virtiofsd.json
357 # Sphinx does not allow building manuals into the same directory as
358 # the source files, so if we're doing an in-tree QEMU build we must
359 # build the manuals into a subdirectory (and then install them from
360 # there for 'make install'). For an out-of-tree build we can just
361 # use the docs/ subdirectory in the build tree as normal.
362 ifeq ($(realpath
$(SRC_PATH
)),$(realpath .
))
363 MANUAL_BUILDDIR
:= docs
/built
365 MANUAL_BUILDDIR
:= docs
369 DOCS
+=$(MANUAL_BUILDDIR
)/system
/qemu
.1
370 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/qemu-img
.1
371 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/qemu-nbd
.8
372 DOCS
+=$(MANUAL_BUILDDIR
)/interop
/qemu-ga
.8
373 ifeq ($(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyy
)
374 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/virtiofsd
.1
376 DOCS
+=$(MANUAL_BUILDDIR
)/system
/qemu-block-drivers
.7
377 DOCS
+=docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7
378 DOCS
+=docs
/interop
/qemu-ga-ref.html docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7
379 DOCS
+=$(MANUAL_BUILDDIR
)/system
/qemu-cpu-models
.7
380 DOCS
+=$(MANUAL_BUILDDIR
)/index.html
382 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/virtfs-proxy-helper
.1
384 ifdef CONFIG_TRACE_SYSTEMTAP
385 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/qemu-trace-stap
.1
391 SUBDIR_MAKEFLAGS
=$(if
$(V
),,--no-print-directory
--quiet
) BUILD_DIR
=$(BUILD_DIR
)
392 SUBDIR_DEVICES_MAK
=$(patsubst %, %/config-devices.mak
, $(filter %-softmmu
, $(TARGET_DIRS
)))
393 SUBDIR_DEVICES_MAK_DEP
=$(patsubst %, %.d
, $(SUBDIR_DEVICES_MAK
))
395 ifeq ($(SUBDIR_DEVICES_MAK
),)
396 config-all-devices.mak
: config-host.mak
397 $(call quiet-command
,echo
'# no devices' > $@
,"GEN","$@")
399 config-all-devices.mak
: $(SUBDIR_DEVICES_MAK
) config-host.mak
400 $(call quiet-command
, sed
-n \
401 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \
402 $(SUBDIR_DEVICES_MAK
) |
sort -u
> $@
, \
406 -include $(SUBDIR_DEVICES_MAK_DEP
)
408 # This has to be kept in sync with Kconfig.host.
410 $(CONFIG_MINIKCONF_MODE
) \
411 $@
$*/config-devices.mak.d
$< $(SRC_PATH
)/Kconfig \
412 CONFIG_TCG
=$(CONFIG_TCG
) \
413 CONFIG_KVM
=$(CONFIG_KVM
) \
414 CONFIG_SPICE
=$(CONFIG_SPICE
) \
415 CONFIG_IVSHMEM
=$(CONFIG_IVSHMEM
) \
416 CONFIG_TPM
=$(CONFIG_TPM
) \
417 CONFIG_XEN
=$(CONFIG_XEN
) \
418 CONFIG_OPENGL
=$(CONFIG_OPENGL
) \
419 CONFIG_X11
=$(CONFIG_X11
) \
420 CONFIG_VHOST_USER
=$(CONFIG_VHOST_USER
) \
421 CONFIG_VHOST_KERNEL
=$(CONFIG_VHOST_KERNEL
) \
422 CONFIG_VIRTFS
=$(CONFIG_VIRTFS
) \
423 CONFIG_LINUX
=$(CONFIG_LINUX
) \
424 CONFIG_PVRDMA
=$(CONFIG_PVRDMA
)
426 MINIKCONF
= $(PYTHON
) $(SRC_PATH
)/scripts
/minikconf.py
428 $(SUBDIR_DEVICES_MAK
): %/config-devices.mak
: default-configs
/%.mak
$(SRC_PATH
)/Kconfig
$(BUILD_DIR
)/config-host.mak
429 $(call quiet-command
, $(MINIKCONF
) $(MINIKCONF_ARGS
) \
430 > $@.tmp
, "GEN", "$@.tmp")
431 $(call quiet-command
, if
test -f
$@
; then \
432 if cmp
-s
$@.old
$@
; then \
436 if
test -f
$@.old
; then \
437 echo
"WARNING: $@ (user modified) out of date.";\
439 echo
"WARNING: $@ out of date.";\
441 echo
"Run \"$(MAKE) defconfig\" to regenerate."; \
450 rm -f config-all-devices.mak
$(SUBDIR_DEVICES_MAK
)
452 ifneq ($(wildcard config-host.mak
),)
453 include $(SRC_PATH
)/Makefile.objs
456 dummy
:= $(call unnest-vars
,, \
463 ivshmem-client-obj-y \
464 ivshmem-server-obj-y \
467 libvhost-user-obj-y \
468 vhost-user-scsi-obj-y \
469 vhost-user-blk-obj-y \
470 vhost-user-input-obj-y \
471 vhost-user-gpu-obj-y \
475 storage-daemon-obj-y \
476 storage-daemon-obj-m \
484 dummy
:= $(foreach DIR
,$(trace-events-subdirs
),$(eval
$(call __trace_rules
,$(DIR
),$(call trace-group-suffix
,$(DIR
)))))
486 generated-files-y
+= $(TRACE_HEADERS
)
487 generated-files-y
+= $(TRACE_SOURCES
)
490 include $(SRC_PATH
)/tests
/Makefile.
include
492 all: $(DOCS
) $(if
$(BUILD_DOCS
),sphinxdocs
) $(TOOLS
) $(HELPERS-y
) recurse-all modules
$(vhost-user-json-y
)
494 qemu-version.h
: FORCE
495 $(call quiet-command
, \
496 (printf
'#define QEMU_PKGVERSION "$(QEMU_PKGVERSION)"\n'; \
497 printf
'#define QEMU_FULL_VERSION "$(FULL_VERSION)"\n'; \
499 $(call quiet-command
, if
! cmp
-s
$@
$@.tmp
; then \
505 config-host.h
: config-host.h-timestamp
506 config-host.h-timestamp
: config-host.mak
507 qemu-options.def
: $(SRC_PATH
)/qemu-options.hx
$(SRC_PATH
)/scripts
/hxtool
508 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
510 TARGET_DIRS_RULES
:= $(foreach t
, all fuzz
clean install, $(addsuffix /$(t
), $(TARGET_DIRS
)))
512 SOFTMMU_ALL_RULES
=$(filter %-softmmu
/all, $(TARGET_DIRS_RULES
))
513 $(SOFTMMU_ALL_RULES
): $(authz-obj-y
)
514 $(SOFTMMU_ALL_RULES
): $(block-obj-y
)
515 $(SOFTMMU_ALL_RULES
): $(storage-daemon-obj-y
)
516 $(SOFTMMU_ALL_RULES
): $(chardev-obj-y
)
517 $(SOFTMMU_ALL_RULES
): $(crypto-obj-y
)
518 $(SOFTMMU_ALL_RULES
): $(io-obj-y
)
519 $(SOFTMMU_ALL_RULES
): config-all-devices.mak
520 ifdef DECOMPRESS_EDK2_BLOBS
521 $(SOFTMMU_ALL_RULES
): $(edk2-decompressed
)
524 SOFTMMU_FUZZ_RULES
=$(filter %-softmmu
/fuzz
, $(TARGET_DIRS_RULES
))
525 $(SOFTMMU_FUZZ_RULES
): $(authz-obj-y
)
526 $(SOFTMMU_FUZZ_RULES
): $(block-obj-y
)
527 $(SOFTMMU_FUZZ_RULES
): $(chardev-obj-y
)
528 $(SOFTMMU_FUZZ_RULES
): $(crypto-obj-y
)
529 $(SOFTMMU_FUZZ_RULES
): $(io-obj-y
)
530 $(SOFTMMU_FUZZ_RULES
): config-all-devices.mak
531 $(SOFTMMU_FUZZ_RULES
): $(edk2-decompressed
)
533 .PHONY
: $(TARGET_DIRS_RULES
)
534 # The $(TARGET_DIRS_RULES) are of the form SUBDIR/GOAL, so that
535 # $(dir $@) yields the sub-directory, and $(notdir $@) yields the sub-goal
536 $(TARGET_DIRS_RULES
):
537 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$(dir $@
) V
="$(V)" TARGET_DIR
="$(dir $@)" $(notdir $@
),)
539 # LIBFDT_lib="": avoid breaking existing trees with objects requiring -fPIC
540 DTC_MAKE_ARGS
=-I
$(SRC_PATH
)/dtc VPATH
=$(SRC_PATH
)/dtc
-C dtc V
="$(V)" LIBFDT_lib
=""
541 DTC_CFLAGS
=$(CFLAGS
) $(QEMU_CFLAGS
)
542 DTC_CPPFLAGS
=-I
$(SRC_PATH
)/dtc
/libfdt
545 dtc
/all: .git-submodule-status dtc
/libfdt
546 $(call quiet-command
,$(MAKE
) $(DTC_MAKE_ARGS
) CPPFLAGS
="$(DTC_CPPFLAGS)" CFLAGS
="$(DTC_CFLAGS)" LDFLAGS
="$(QEMU_LDFLAGS)" ARFLAGS
="$(ARFLAGS)" CC
="$(CC)" AR
="$(AR)" LD
="$(LD)" $(SUBDIR_MAKEFLAGS
) libfdt
,)
548 dtc
/%: .git-submodule-status
551 # Overriding CFLAGS causes us to lose defines added in the sub-makefile.
552 # Not overriding CFLAGS leads to mis-matches between compilation modes.
553 # Therefore we replicate some of the logic in the sub-makefile.
554 # Remove all the extra -Warning flags that QEMU uses that Capstone doesn't;
555 # no need to annoy QEMU developers with such things.
556 CAP_CFLAGS
= $(patsubst -W
%,,$(CFLAGS
) $(QEMU_CFLAGS
))
557 CAP_CFLAGS
+= -DCAPSTONE_USE_SYS_DYN_MEM
558 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM
559 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM64
560 CAP_CFLAGS
+= -DCAPSTONE_HAS_POWERPC
561 CAP_CFLAGS
+= -DCAPSTONE_HAS_X86
564 capstone
/all: .git-submodule-status
565 $(call quiet-command
,$(MAKE
) -C
$(SRC_PATH
)/capstone CAPSTONE_SHARED
=no BUILDDIR
="$(BUILD_DIR)/capstone" CC
="$(CC)" AR
="$(AR)" LD
="$(LD)" RANLIB
="$(RANLIB)" CFLAGS
="$(CAP_CFLAGS)" $(SUBDIR_MAKEFLAGS
) $(BUILD_DIR
)/capstone
/$(LIBCAPSTONE
))
568 slirp
/all: .git-submodule-status
569 $(call quiet-command
,$(MAKE
) -C
$(SRC_PATH
)/slirp \
570 BUILD_DIR
="$(BUILD_DIR)/slirp" \
571 PKG_CONFIG
="$(PKG_CONFIG)" \
572 CC
="$(CC)" AR
="$(AR)" LD
="$(LD)" RANLIB
="$(RANLIB)" \
573 CFLAGS
="$(QEMU_CFLAGS) $(CFLAGS)" LDFLAGS
="$(QEMU_LDFLAGS)")
575 $(filter %/all, $(TARGET_DIRS_RULES
)): libqemuutil.a
$(common-obj-y
) \
578 $(filter %/fuzz
, $(TARGET_DIRS_RULES
)): libqemuutil.a
$(common-obj-y
) \
579 $(qom-obj-y
) $(crypto-user-obj-
$(CONFIG_USER_ONLY
))
581 ROM_DIRS
= $(addprefix pc-bios
/, $(ROMS
))
582 ROM_DIRS_RULES
=$(foreach t
, all clean, $(addsuffix /$(t
), $(ROM_DIRS
)))
583 # Only keep -O and -g cflags
584 .PHONY
: $(ROM_DIRS_RULES
)
586 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$(dir $@
) V
="$(V)" TARGET_DIR
="$(dir $@)" CFLAGS
="$(filter -O% -g%,$(CFLAGS))" $(notdir $@
),)
588 .PHONY
: recurse-all recurse-clean recurse-install
589 recurse-all
: $(addsuffix /all, $(TARGET_DIRS
) $(ROM_DIRS
))
590 recurse-clean
: $(addsuffix /clean, $(TARGET_DIRS
) $(ROM_DIRS
))
591 recurse-install
: $(addsuffix /install, $(TARGET_DIRS
))
592 $(addsuffix /install, $(TARGET_DIRS
)): all
594 $(BUILD_DIR
)/version.o
: $(SRC_PATH
)/version.rc config-host.h
595 $(call quiet-command
,$(WINDRES
) -I
$(BUILD_DIR
) -o
$@
$<,"RC","version.o")
597 Makefile
: $(version-obj-y
)
599 ######################################################################
602 libqemuutil.a
: $(util-obj-y
) $(trace-obj-y
) $(stub-obj-y
)
603 libvhost-user.a
: $(libvhost-user-obj-y
) $(util-obj-y
) $(stub-obj-y
)
605 ######################################################################
607 COMMON_LDADDS
= libqemuutil.a
609 qemu-img.o
: qemu-img-cmds.h
611 qemu-img
$(EXESUF
): qemu-img.o
$(authz-obj-y
) $(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
612 qemu-nbd
$(EXESUF
): qemu-nbd.o
$(authz-obj-y
) $(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
613 qemu-io
$(EXESUF
): qemu-io.o
$(authz-obj-y
) $(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
614 qemu-storage-daemon
$(EXESUF
): qemu-storage-daemon.o
$(authz-obj-y
) $(block-obj-y
) $(crypto-obj-y
) $(chardev-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(storage-daemon-obj-y
) $(COMMON_LDADDS
)
616 qemu-bridge-helper
$(EXESUF
): qemu-bridge-helper.o
$(COMMON_LDADDS
)
618 qemu-keymap
$(EXESUF
): qemu-keymap.o ui
/input-keymap.o
$(COMMON_LDADDS
)
620 qemu-edid
$(EXESUF
): qemu-edid.o hw
/display
/edid-generate.o
$(COMMON_LDADDS
)
622 fsdev
/virtfs-proxy-helper
$(EXESUF
): fsdev
/virtfs-proxy-helper.o fsdev
/9p-marshal.o fsdev
/9p-iov-marshal.o
$(COMMON_LDADDS
)
624 scsi
/qemu-pr-helper
$(EXESUF
): scsi
/qemu-pr-helper.o scsi
/utils.o
$(authz-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
626 scsi
/qemu-pr-helper
$(EXESUF
): LIBS
+= -ludev
-lmultipath
-lmpathpersist
629 qemu-img-cmds.h
: $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/scripts
/hxtool
630 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
632 qemu-ga
$(EXESUF
): LIBS
= $(LIBS_QGA
)
633 qemu-ga
$(EXESUF
): QEMU_CFLAGS
+= -I qga
/qapi-generated
635 qemu-keymap
$(EXESUF
): LIBS
+= $(XKBCOMMON_LIBS
)
636 qemu-keymap
$(EXESUF
): QEMU_CFLAGS
+= $(XKBCOMMON_CFLAGS
)
638 qapi-py
= $(SRC_PATH
)/scripts
/qapi
/__init__.py \
639 $(SRC_PATH
)/scripts
/qapi
/commands.py \
640 $(SRC_PATH
)/scripts
/qapi
/common.py \
641 $(SRC_PATH
)/scripts
/qapi
/doc.py \
642 $(SRC_PATH
)/scripts
/qapi
/error.py \
643 $(SRC_PATH
)/scripts
/qapi
/events.py \
644 $(SRC_PATH
)/scripts
/qapi
/expr.py \
645 $(SRC_PATH
)/scripts
/qapi
/gen.py \
646 $(SRC_PATH
)/scripts
/qapi
/introspect.py \
647 $(SRC_PATH
)/scripts
/qapi
/parser.py \
648 $(SRC_PATH
)/scripts
/qapi
/schema.py \
649 $(SRC_PATH
)/scripts
/qapi
/source.py \
650 $(SRC_PATH
)/scripts
/qapi
/types.py \
651 $(SRC_PATH
)/scripts
/qapi
/visit.py \
652 $(SRC_PATH
)/scripts
/qapi-gen.py
654 qga
/qapi-generated
/qga-qapi-types.c qga
/qapi-generated
/qga-qapi-types.h \
655 qga
/qapi-generated
/qga-qapi-visit.c qga
/qapi-generated
/qga-qapi-visit.h \
656 qga
/qapi-generated
/qga-qapi-commands.h qga
/qapi-generated
/qga-qapi-commands.c \
657 qga
/qapi-generated
/qga-qapi-init-commands.h qga
/qapi-generated
/qga-qapi-init-commands.c \
658 qga
/qapi-generated
/qga-qapi-doc.texi
: \
659 qga
/qapi-generated
/qapi-gen-timestamp
;
660 qga
/qapi-generated
/qapi-gen-timestamp
: $(SRC_PATH
)/qga
/qapi-schema.json
$(qapi-py
)
661 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-gen.py \
662 -o qga
/qapi-generated
-p
"qga-" $<, \
663 "GEN","$(@:%-timestamp=%)")
666 qapi-modules
= $(SRC_PATH
)/qapi
/qapi-schema.json \
667 $(QAPI_MODULES
:%=$(SRC_PATH
)/qapi
/%.json
)
669 $(GENERATED_QAPI_FILES
): qapi-gen-timestamp
;
670 qapi-gen-timestamp
: $(qapi-modules
) $(qapi-py
)
671 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-gen.py \
673 "GEN","$(@:%-timestamp=%)")
676 qapi-modules-storage-daemon
= \
677 $(SRC_PATH
)/storage-daemon
/qapi
/qapi-schema.json \
678 $(QAPI_MODULES_STORAGE_DAEMON
:%=$(SRC_PATH
)/qapi
/%.json
)
680 $(GENERATED_STORAGE_DAEMON_QAPI_FILES
): storage-daemon
/qapi
/qapi-gen-timestamp
;
681 storage-daemon
/qapi
/qapi-gen-timestamp
: $(qapi-modules-storage-daemon
) $(qapi-py
)
682 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-gen.py \
683 -o
"storage-daemon/qapi" $<, \
684 "GEN","$(@:%-timestamp=%)")
687 QGALIB_GEN
=$(addprefix qga
/qapi-generated
/, qga-qapi-types.h qga-qapi-visit.h qga-qapi-commands.h qga-qapi-init-commands.h
)
688 $(qga-obj-y
): $(QGALIB_GEN
)
690 qemu-ga
$(EXESUF
): $(qga-obj-y
) $(COMMON_LDADDS
)
693 ifdef QEMU_GA_MSI_ENABLED
694 QEMU_GA_MSI
=qemu-ga-
$(ARCH
).msi
698 $(QEMU_GA_MSI
): qemu-ga.exe
$(QGA_VSS_PROVIDER
)
700 $(QEMU_GA_MSI
): config-host.mak
702 $(QEMU_GA_MSI
): $(SRC_PATH
)/qga
/installer
/qemu-ga.wxs
703 $(call quiet-command
,QEMU_GA_VERSION
="$(QEMU_GA_VERSION)" QEMU_GA_MANUFACTURER
="$(QEMU_GA_MANUFACTURER)" QEMU_GA_DISTRO
="$(QEMU_GA_DISTRO)" BUILD_DIR
="$(BUILD_DIR)" \
704 wixl
-o
$@
$(QEMU_GA_MSI_ARCH
) $(QEMU_GA_MSI_WITH_VSS
) $(QEMU_GA_MSI_MINGW_DLL_PATH
) $<,"WIXL","$@")
707 @echo
"MSI build not configured or dependency resolution failed (reconfigure with --enable-guest-agent-msi option)"
712 qemu-ga
: qemu-ga
$(EXESUF
) $(QGA_VSS_PROVIDER
) $(QEMU_GA_MSI
)
715 elf2dmp
$(EXESUF
): $(elf2dmp-obj-y
)
719 ivshmem-client
$(EXESUF
): $(ivshmem-client-obj-y
) $(COMMON_LDADDS
)
721 ivshmem-server
$(EXESUF
): $(ivshmem-server-obj-y
) $(COMMON_LDADDS
)
724 vhost-user-scsi
$(EXESUF
): $(vhost-user-scsi-obj-y
) libvhost-user.a
726 vhost-user-blk
$(EXESUF
): $(vhost-user-blk-obj-y
) libvhost-user.a
729 rdmacm-mux
$(EXESUF
): LIBS
+= "-libumad"
730 rdmacm-mux
$(EXESUF
): $(rdmacm-mux-obj-y
) $(COMMON_LDADDS
)
733 # relies on Linux-specific syscalls
734 ifeq ($(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyy
)
735 virtiofsd
$(EXESUF
): $(virtiofsd-obj-y
) libvhost-user.a
$(COMMON_LDADDS
)
739 vhost-user-gpu
$(EXESUF
): $(vhost-user-gpu-obj-y
) $(libvhost-user-obj-y
) libqemuutil.a
742 ifdef CONFIG_VHOST_USER_INPUT
744 vhost-user-input
$(EXESUF
): $(vhost-user-input-obj-y
) libvhost-user.a libqemuutil.a
747 # build by default, do not install
748 all: vhost-user-input
$(EXESUF
)
752 module_block.h
: $(SRC_PATH
)/scripts
/modules
/module_block.py config-host.mak
753 $(call quiet-command
,$(PYTHON
) $< $@ \
754 $(addprefix $(SRC_PATH
)/,$(patsubst %.mo
,%.c
,$(block-obj-m
))), \
758 .PHONY
: clean-coverage
760 $(call quiet-command
, \
761 find . \
( -name
'*.gcda' -o
-name
'*.gcov' \
) -type f
-exec
rm {} +, \
762 "CLEAN", "coverage files")
766 # avoid old build problems by removing potentially incorrect old files
767 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
768 rm -f qemu-options.def
770 find . \
( -name
'*.so' -o
-name
'*.dll' -o
-name
'*.mo' -o
-name
'*.[oda]' \
) -type f \
771 ! -path .
/roms
/edk2
/ArmPkg
/Library
/GccLto
/liblto-aarch64.a \
772 ! -path .
/roms
/edk2
/ArmPkg
/Library
/GccLto
/liblto-arm.a \
773 ! -path .
/roms
/edk2
/BaseTools
/Source
/Python
/UPT
/Dll
/sqlite3.dll \
775 rm -f
$(edk2-decompressed
)
776 rm -f
$(filter-out %.tlb
,$(TOOLS
)) $(HELPERS-y
) TAGS cscope.
* *.pod
*~
*/*~
777 rm -f fsdev
/*.pod scsi
/*.pod
778 rm -f qemu-img-cmds.h
779 rm -f ui
/shader
/*-vert.h ui
/shader
/*-frag.h
780 @
# May not be present in generated-files-y
781 rm -f trace
/generated-tracers-dtrace.dtrace
*
782 rm -f trace
/generated-tracers-dtrace.h
*
783 rm -f
$(foreach f
,$(generated-files-y
),$(f
) $(f
)-timestamp
)
784 rm -f qapi-gen-timestamp
785 rm -f storage-daemon
/qapi
/qapi-gen-timestamp
786 rm -rf qga
/qapi-generated
787 rm -f config-all-devices.mak
788 rm -f
$(SUBDIR_DEVICES_MAK
)
790 VERSION ?
= $(shell cat VERSION
)
792 dist: qemu-
$(VERSION
).
tar.bz2
795 $(SRC_PATH
)/scripts
/make-release
"$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
797 define clean-manual
=
798 rm -rf
$(MANUAL_BUILDDIR
)/$1/_static
799 rm -f
$(MANUAL_BUILDDIR
)/$1/objects.inv
$(MANUAL_BUILDDIR
)/$1/searchindex.js
$(MANUAL_BUILDDIR
)/$1/*.html
803 rm -f config-host.mak config-host.h
* $(DOCS
)
804 rm -f tests
/tcg
/config-
*.mak
805 rm -f config-all-devices.mak config-all-disas.mak config.status
806 rm -f
$(SUBDIR_DEVICES_MAK
)
807 rm -f po
/*.mo tests
/qemu-iotests
/common.env
808 rm -f roms
/seabios
/config.mak roms
/vgabios
/config.mak
809 rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols
811 rm -f linux-headers
/asm
812 rm -f docs
/version.texi
813 rm -f docs
/interop
/qemu-ga-qapi.texi docs
/interop
/qemu-qmp-qapi.texi
814 rm -f docs
/interop
/qemu-qmp-ref
.7 docs
/interop
/qemu-ga-ref
.7
815 rm -f docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
816 rm -f docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
817 rm -f docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html
819 $(call clean-manual
,devel
)
820 $(call clean-manual
,interop
)
821 $(call clean-manual
,specs
)
822 $(call clean-manual
,system
)
823 $(call clean-manual
,tools
)
824 $(call clean-manual
,user
)
825 for d in
$(TARGET_DIRS
); do \
826 rm -rf
$$d || exit
1 ; \
830 KEYMAPS
=da en-gb et fr fr-ch is lt no pt-br sv \
831 ar de en-us fi fr-be hr it lv nl pl ru th \
832 de-ch es fo fr-ca hu ja mk pt sl tr \
836 BLOBS
=bios.bin bios-256k.bin bios-microvm.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
837 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin vgabios-virtio.bin \
838 vgabios-ramfb.bin vgabios-bochs-display.bin vgabios-ati.bin \
839 openbios-sparc32 openbios-sparc64 openbios-ppc QEMU
,tcx.bin QEMU
,cgthree.bin \
840 pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
841 pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
842 efi-e1000.rom efi-eepro100.rom efi-ne2k_pci.rom \
843 efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
844 efi-e1000e.rom efi-vmxnet3.rom \
846 bamboo.dtb canyonlands.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
847 multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin \
848 s390-ccw.img s390-netboot.img \
849 slof.bin skiboot.lid \
851 u-boot.e500 u-boot-sam460-20100605.bin \
855 opensbi-riscv32-sifive_u-fw_jump.bin opensbi-riscv32-virt-fw_jump.bin \
856 opensbi-riscv64-sifive_u-fw_jump.bin opensbi-riscv64-virt-fw_jump.bin
859 DESCS
=50-edk2-i386-secure.json
50-edk2-x86_64-secure.json \
860 60-edk2-aarch64.json
60-edk2-arm.json
60-edk2-i386.json
60-edk2-x86_64.json
866 # Note that we manually filter-out the non-Sphinx documentation which
867 # is currently built into the docs/interop directory in the build tree,
868 # and also any sphinx-built manpages.
869 define install-manual
=
870 for d in
$$(cd
$(MANUAL_BUILDDIR
) && find
$1 -type d
); do
$(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)/$$d"; done
871 for f in
$$(cd
$(MANUAL_BUILDDIR
) && find
$1 -type f
-a
'!' '(' -name
'*.[0-9]' -o
-name
'qemu-*-qapi.*' -o
-name
'qemu-*-ref.*' ')' ); do
$(INSTALL_DATA
) "$(MANUAL_BUILDDIR)/$$f" "$(DESTDIR)$(qemu_docdir)/$$f"; done
874 # Note that we deliberately do not install the "devel" manual: it is
875 # for QEMU developers, and not interesting to our users.
876 .PHONY
: install-sphinxdocs
877 install-sphinxdocs
: sphinxdocs
878 $(call install-manual
,interop
)
879 $(call install-manual
,specs
)
880 $(call install-manual
,system
)
881 $(call install-manual
,tools
)
882 $(call install-manual
,user
)
884 install-doc
: $(DOCS
) install-sphinxdocs
885 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)"
886 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/index.html
"$(DESTDIR)$(qemu_docdir)"
887 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)/interop"
888 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.html
"$(DESTDIR)$(qemu_docdir)/interop"
889 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.txt
"$(DESTDIR)$(qemu_docdir)/interop"
891 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
892 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/system
/qemu
.1 "$(DESTDIR)$(mandir)/man1"
893 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man7"
894 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref
.7 "$(DESTDIR)$(mandir)/man7"
895 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/system
/qemu-block-drivers
.7 "$(DESTDIR)$(mandir)/man7"
896 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/system
/qemu-cpu-models
.7 "$(DESTDIR)$(mandir)/man7"
897 ifeq ($(CONFIG_TOOLS
),y
)
898 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/qemu-img
.1 "$(DESTDIR)$(mandir)/man1"
899 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man8"
900 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/qemu-nbd
.8 "$(DESTDIR)$(mandir)/man8"
902 ifdef CONFIG_TRACE_SYSTEMTAP
903 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/qemu-trace-stap
.1 "$(DESTDIR)$(mandir)/man1"
905 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
906 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/interop
/qemu-ga
.8 "$(DESTDIR)$(mandir)/man8"
907 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)/interop"
908 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.html
"$(DESTDIR)$(qemu_docdir)/interop"
909 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.txt
"$(DESTDIR)$(qemu_docdir)/interop"
910 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref
.7 "$(DESTDIR)$(mandir)/man7"
914 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
915 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/virtfs-proxy-helper
.1 "$(DESTDIR)$(mandir)/man1"
917 ifeq ($(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyy
)
918 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/virtiofsd
.1 "$(DESTDIR)$(mandir)/man1"
922 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)"
924 install-localstatedir
:
926 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
927 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_localstatedir)"/run
931 ICON_SIZES
=16x16
24x24
32x32
48x48
64x64
128x128
256x256
512x512
934 $(INSTALL_DIR
) "$(DESTDIR)$(includedir)"
936 install: all $(if
$(BUILD_DOCS
),install-doc
) \
937 install-datadir install-localstatedir install-includedir \
938 $(if
$(INSTALL_BLOBS
),$(edk2-decompressed
)) \
941 $(call install-prog
,$(TOOLS
),$(DESTDIR
)$(bindir))
943 ifneq ($(CONFIG_MODULES
),)
944 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_moddir)"
945 for s in
$(modules-m
:.mo
=$(DSOSUF
)); do \
946 t
="$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
947 $(INSTALL_LIB
) $$s "$$t"; \
948 test -z
"$(STRIP)" ||
$(STRIP
) "$$t"; \
951 ifneq ($(HELPERS-y
),)
952 $(call install-prog
,$(HELPERS-y
),$(DESTDIR
)$(libexecdir
))
954 ifneq ($(vhost-user-json-y
),)
955 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/vhost-user/"
956 for x in
$(vhost-user-json-y
); do \
957 $(INSTALL_DATA
) $$x "$(DESTDIR)$(qemu_datadir)/vhost-user/"; \
960 ifdef CONFIG_TRACE_SYSTEMTAP
961 $(INSTALL_PROG
) "scripts/qemu-trace-stap" $(DESTDIR
)$(bindir)
964 set
-e
; for x in
$(BLOBS
); do \
965 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/$$x "$(DESTDIR)$(qemu_datadir)"; \
969 set
-e
; for x in
$(edk2-decompressed
); do \
970 $(INSTALL_DATA
) $$x "$(DESTDIR)$(qemu_datadir)"; \
974 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/firmware"
975 set
-e
; tmpf
=$$(mktemp
); trap
'rm -f -- "$$tmpf"' EXIT
; \
976 for x in
$(DESCS
); do \
977 sed
-e
's,@DATADIR@,$(qemu_datadir),' \
978 "$(SRC_PATH)/pc-bios/descriptors/$$x" > "$$tmpf"; \
979 $(INSTALL_DATA
) "$$tmpf" \
980 "$(DESTDIR)$(qemu_datadir)/firmware/$$x"; \
983 for s in
$(ICON_SIZES
); do \
984 mkdir
-p
"$(DESTDIR)$(qemu_icondir)/hicolor/$${s}/apps"; \
985 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/icons
/qemu_
$${s}.png \
986 "$(DESTDIR)$(qemu_icondir)/hicolor/$${s}/apps/qemu.png"; \
988 mkdir
-p
"$(DESTDIR)$(qemu_icondir)/hicolor/32x32/apps"; \
989 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/icons
/qemu_32x32.bmp \
990 "$(DESTDIR)$(qemu_icondir)/hicolor/32x32/apps/qemu.bmp"; \
991 mkdir
-p
"$(DESTDIR)$(qemu_icondir)/hicolor/scalable/apps"; \
992 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/icons
/qemu.svg \
993 "$(DESTDIR)$(qemu_icondir)/hicolor/scalable/apps/qemu.svg"
994 mkdir
-p
"$(DESTDIR)$(qemu_desktopdir)"
995 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/qemu.desktop \
996 "$(DESTDIR)$(qemu_desktopdir)/qemu.desktop"
1000 ifeq ($(CONFIG_PLUGIN
),y
)
1001 $(INSTALL_DATA
) $(SRC_PATH
)/include/qemu
/qemu-plugin.h
"$(DESTDIR)$(includedir)/qemu-plugin.h"
1003 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/keymaps"
1004 set
-e
; for x in
$(KEYMAPS
); do \
1005 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/keymaps
/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
1007 $(INSTALL_DATA
) $(BUILD_DIR
)/trace-events-all
"$(DESTDIR)$(qemu_datadir)/trace-events-all"
1012 find
"$(SRC_PATH)" -name
'*.[hc]' -exec ctags
--append
{} +
1017 find
"$(SRC_PATH)" -name
'*.[hc]' -exec etags
--append
{} +
1020 rm -f
"$(SRC_PATH)"/cscope.
*
1021 find
"$(SRC_PATH)/" -name
"*.[chsS]" -print | sed
's,^\./,,' > "$(SRC_PATH)/cscope.files"
1022 cscope
-b
-i
"$(SRC_PATH)/cscope.files"
1024 # opengl shader programs
1025 ui
/shader
/%-vert.h
: $(SRC_PATH
)/ui
/shader
/%.vert
$(SRC_PATH
)/scripts
/shaderinclude.pl
1027 $(call quiet-command
,\
1028 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
1031 ui
/shader
/%-frag.h
: $(SRC_PATH
)/ui
/shader
/%.frag
$(SRC_PATH
)/scripts
/shaderinclude.pl
1033 $(call quiet-command
,\
1034 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
1037 ui
/shader.o
: $(SRC_PATH
)/ui
/shader.c \
1038 ui
/shader
/texture-blit-vert.h \
1039 ui
/shader
/texture-blit-flip-vert.h \
1040 ui
/shader
/texture-blit-frag.h
1044 MAKEINFOINCLUDES
= -I docs
-I
$(<D
) -I
$(@D
)
1045 MAKEINFOFLAGS
=--no-split
--number-sections
$(MAKEINFOINCLUDES
)
1046 TEXI2PODFLAGS
=$(MAKEINFOINCLUDES
) -DVERSION
="$(VERSION)" -DCONFDIR
="$(qemu_confdir)"
1047 TEXI2PDFFLAGS
=$(if
$(V
),,--quiet
) -I
$(SRC_PATH
) $(MAKEINFOINCLUDES
)
1049 docs
/version.texi
: $(SRC_PATH
)/VERSION config-host.mak
1050 $(call quiet-command
,(\
1051 echo
"@set VERSION $(VERSION)" && \
1052 echo
"@set CONFDIR $(qemu_confdir)" \
1055 %.html
: %.texi docs
/version.texi
1056 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
1057 --html
$< -o
$@
,"GEN","$@")
1059 %.
info: %.texi docs
/version.texi
1060 $(call quiet-command
,$(MAKEINFO
) $(MAKEINFOFLAGS
) $< -o
$@
,"GEN","$@")
1062 %.txt
: %.texi docs
/version.texi
1063 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
1064 --plaintext
$< -o
$@
,"GEN","$@")
1066 %.pdf
: %.texi docs
/version.texi
1067 $(call quiet-command
,texi2pdf
$(TEXI2PDFFLAGS
) $< -o
$@
,"GEN","$@")
1069 # Sphinx builds all its documentation at once in one invocation
1070 # and handles "don't rebuild things unless necessary" itself.
1071 # The '.doctrees' files are cached information to speed this up.
1073 sphinxdocs
: $(MANUAL_BUILDDIR
)/devel
/index.html \
1074 $(MANUAL_BUILDDIR
)/interop
/index.html \
1075 $(MANUAL_BUILDDIR
)/specs
/index.html \
1076 $(MANUAL_BUILDDIR
)/system
/index.html \
1077 $(MANUAL_BUILDDIR
)/tools
/index.html \
1078 $(MANUAL_BUILDDIR
)/user
/index.html
1080 # Canned command to build a single manual
1081 # Arguments: $1 = manual name, $2 = Sphinx builder ('html' or 'man')
1082 # Note the use of different doctree for each (manual, builder) tuple;
1083 # this works around Sphinx not handling parallel invocation on
1084 # a single doctree: https://github.com/sphinx-doc/sphinx/issues/2946
1085 build-manual
= $(call quiet-command
,CONFDIR
="$(qemu_confdir)" $(SPHINX_BUILD
) $(if
$(V
),,-q
) $(SPHINX_WERROR
) -b
$2 -D version
=$(VERSION
) -D release
="$(FULL_VERSION)" -d .doctrees
/$1-$2 $(SRC_PATH
)/docs
/$1 $(MANUAL_BUILDDIR
)/$1 ,"SPHINX","$(MANUAL_BUILDDIR)/$1")
1086 # We assume all RST files in the manual's directory are used in it
1087 manual-deps
= $(wildcard $(SRC_PATH
)/docs
/$1/*.rst
$(SRC_PATH
)/docs
/$1/*/*.rst
) \
1088 $(SRC_PATH
)/docs
/defs.rst.inc \
1089 $(SRC_PATH
)/docs
/$1/conf.py
$(SRC_PATH
)/docs
/conf.py \
1090 $(SRC_PATH
)/docs
/sphinx
/*.py
1091 # Macro to write out the rule and dependencies for building manpages
1092 # Usage: $(call define-manpage-rule,manualname,manpage1 manpage2...[,extradeps])
1093 # 'extradeps' is optional, and specifies extra files (eg .hx files) that
1094 # the manual page depends on.
1095 define define-manpage-rule
1096 $(call atomic
,$(foreach manpage
,$2,$(MANUAL_BUILDDIR
)/$1/$(manpage
)),$(call manual-deps
,$1) $3)
1097 $(call build-manual
,$1,man
)
1100 $(MANUAL_BUILDDIR
)/devel
/index.html
: $(call manual-deps
,devel
)
1101 $(call build-manual
,devel
,html
)
1103 $(MANUAL_BUILDDIR
)/interop
/index.html
: $(call manual-deps
,interop
)
1104 $(call build-manual
,interop
,html
)
1106 $(MANUAL_BUILDDIR
)/specs
/index.html
: $(call manual-deps
,specs
)
1107 $(call build-manual
,specs
,html
)
1109 $(MANUAL_BUILDDIR
)/system
/index.html
: $(call manual-deps
,system
) $(SRC_PATH
)/hmp-commands.hx
$(SRC_PATH
)/hmp-commands-info.hx
$(SRC_PATH
)/qemu-options.hx
1110 $(call build-manual
,system
,html
)
1112 $(MANUAL_BUILDDIR
)/tools
/index.html
: $(call manual-deps
,tools
) $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/docs
/qemu-option-trace.rst.inc
1113 $(call build-manual
,tools
,html
)
1115 $(MANUAL_BUILDDIR
)/user
/index.html
: $(call manual-deps
,user
)
1116 $(call build-manual
,user
,html
)
1118 $(call define-manpage-rule
,interop
,qemu-ga
.8)
1120 $(call define-manpage-rule
,system
,qemu
.1 qemu-block-drivers
.7 qemu-cpu-models
.7)
1122 $(call define-manpage-rule
,tools
,\
1123 qemu-img
.1 qemu-nbd
.8 qemu-trace-stap
.1\
1124 virtiofsd
.1 virtfs-proxy-helper
.1,\
1125 $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/docs
/qemu-option-trace.rst.inc
)
1127 $(MANUAL_BUILDDIR
)/index.html
: $(SRC_PATH
)/docs
/index.html.in qemu-version.h
1128 @mkdir
-p
"$(MANUAL_BUILDDIR)"
1129 $(call quiet-command
, sed
"s|@@VERSION@@|${VERSION}|g" $< >$@
, \
1132 docs
/interop
/qemu-qmp-qapi.texi
: qapi
/qapi-doc.texi
1135 docs
/interop
/qemu-ga-qapi.texi
: qga
/qapi-generated
/qga-qapi-doc.texi
1138 html
: docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html sphinxdocs
1139 info: docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-ga-ref.
info
1140 pdf
: docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
1141 txt
: docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
1143 docs
/interop
/qemu-ga-ref.
dvi docs
/interop
/qemu-ga-ref.html \
1144 docs
/interop
/qemu-ga-ref.
info docs
/interop
/qemu-ga-ref.pdf \
1145 docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7: \
1146 docs
/interop
/qemu-ga-ref.texi docs
/interop
/qemu-ga-qapi.texi
1148 docs
/interop
/qemu-qmp-ref.
dvi docs
/interop
/qemu-qmp-ref.html \
1149 docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-qmp-ref.pdf \
1150 docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7: \
1151 docs
/interop
/qemu-qmp-ref.texi docs
/interop
/qemu-qmp-qapi.texi
1153 $(filter %.1 %.7 %.8,$(DOCS
)): scripts
/texi2pod.pl
1157 %/coverage-report.html
:
1159 $(call quiet-command
,\
1160 gcovr
-r
$(SRC_PATH
) \
1161 $(foreach t
, $(TARGET_DIRS
), --object-directory
$(BUILD_DIR
)/$(t
)) \
1162 --object-directory
$(BUILD_DIR
) \
1163 -p
--html
--html-details
-o
$@
, \
1164 "GEN", "coverage-report.html")
1166 .PHONY
: coverage-report
1167 coverage-report
: $(CURDIR
)/reports
/coverage
/coverage-report.html
1171 INSTALLER
= qemu-setup-
$(VERSION
)$(EXESUF
)
1173 nsisflags
= -V2
-NOCD
1175 ifneq ($(wildcard $(SRC_PATH
)/dll
),)
1176 ifeq ($(ARCH
),x86_64
)
1177 # 64 bit executables
1178 DLL_PATH
= $(SRC_PATH
)/dll
/w64
1181 # 32 bit executables
1182 DLL_PATH
= $(SRC_PATH
)/dll
/w32
1187 installer
: $(INSTALLER
)
1189 INSTDIR
=/tmp
/qemu-nsis
1191 $(INSTALLER
): install-doc
$(SRC_PATH
)/qemu.nsi
1192 $(MAKE
) install prefix=${INSTDIR}
1195 for i in
*.exe
; do \
1196 $(SIGNCODE
) $${i}; \
1201 for i in qemu-system-
*.exe
; do \
1203 arch
=$${arch
#qemu-system-}; \
1204 echo Section
\"$$arch\" Section_
$$arch; \
1205 echo SetOutPath
\"\
$$INSTDIR\"; \
1206 echo File
\"\
$${BINDIR}\\$$i\"; \
1209 ) >${INSTDIR}/system-emulations.nsh
1210 makensis
$(nsisflags
) \
1211 $(if
$(BUILD_DOCS
),-DCONFIG_DOCUMENTATION
="y") \
1212 $(if
$(CONFIG_GTK
),-DCONFIG_GTK
="y") \
1213 -DBINDIR
="${INSTDIR}" \
1214 $(if
$(DLL_PATH
),-DDLLDIR
="$(DLL_PATH)") \
1215 -DSRCDIR
="$(SRC_PATH)" \
1216 -DOUTFILE
="$(INSTALLER)" \
1217 -DDISPLAYVERSION
="$(VERSION)" \
1218 $(SRC_PATH
)/qemu.nsi
1221 $(SIGNCODE
) $(INSTALLER
)
1225 # Add a dependency on the generated files, so that they are always
1226 # rebuilt before other object files
1227 ifneq ($(wildcard config-host.mak
),)
1228 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
1229 Makefile
: $(generated-files-y
)
1233 .SECONDARY
: $(TRACE_HEADERS
) $(TRACE_HEADERS
:%=%-timestamp
) \
1234 $(TRACE_SOURCES
) $(TRACE_SOURCES
:%=%-timestamp
) \
1235 $(TRACE_DTRACE
) $(TRACE_DTRACE
:%=%-timestamp
)
1237 # Include automatically generated dependency files
1238 # Dependencies in Makefile.objs files come from our recursive subdir rules
1239 -include $(wildcard *.d tests
/*.d
)
1241 include $(SRC_PATH
)/tests
/docker
/Makefile.
include
1242 include $(SRC_PATH
)/tests
/vm
/Makefile.
include
1244 print-help-run
= printf
" %-30s - %s\\n" "$1" "$2"
1245 print-help
= $(quiet-@
)$(call print-help-run
,$1,$2)
1249 @echo
'Generic targets:'
1250 $(call print-help
,all,Build
all)
1251 ifdef CONFIG_MODULES
1252 $(call print-help
,modules
,Build
all modules
)
1254 $(call print-help
,dir/file.o
,Build specified target only
)
1255 $(call print-help
,install,Install QEMU
, documentation and tools
)
1256 $(call print-help
,ctags
/TAGS
,Generate
tags file for editors
)
1257 $(call print-help
,cscope
,Generate cscope index
)
1259 @
$(if
$(TARGET_DIRS
), \
1260 echo
'Architecture specific targets:'; \
1261 $(foreach t
, $(TARGET_DIRS
), \
1262 $(call print-help-run
,$(t
)/all,Build for
$(t
)); \
1263 $(if
$(CONFIG_FUZZ
), \
1264 $(if
$(findstring softmmu
,$(t
)), \
1265 $(call print-help-run
,$(t
)/fuzz
,Build fuzzer for
$(t
)); \
1268 @
$(if
$(HELPERS-y
), \
1269 echo
'Helper targets:'; \
1270 $(foreach t
, $(HELPERS-y
), \
1271 $(call print-help-run
,$(t
),Build
$(shell basename $(t
)));) \
1274 echo
'Tools targets:'; \
1275 $(foreach t
, $(TOOLS
), \
1276 $(call print-help-run
,$(t
),Build
$(shell basename $(t
)) tool
);) \
1278 @echo
'Cleaning targets:'
1279 $(call print-help
,clean,Remove most generated files but keep the config
)
1281 $(call print-help
,clean-coverage
,Remove coverage files
)
1283 $(call print-help
,distclean,Remove
all generated files
)
1284 $(call print-help
,dist,Build a distributable tarball
)
1286 @echo
'Test targets:'
1287 $(call print-help
,check,Run
all tests
(check-help for details
))
1288 $(call print-help
,docker
,Help about targets running tests inside containers
)
1289 $(call print-help
,vm-help
,Help about targets running tests inside VM
)
1291 @echo
'Documentation targets:'
1292 $(call print-help
,html
info pdf txt
,Build documentation in specified format
)
1294 $(call print-help
,coverage-report
,Create code coverage report
)
1298 @echo
'Windows targets:'
1299 $(call print-help
,installer
,Build NSIS-based installer for QEMU
)
1300 ifdef QEMU_GA_MSI_ENABLED
1301 $(call print-help
,msi
,Build MSI-based installer for qemu-ga
)
1305 $(call print-help
,$(MAKE
) [targets
],(quiet build
, default
))
1306 $(call print-help
,$(MAKE
) V
=1 [targets
],(verbose build
))