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 export NINJA
=.
/ninjatool
54 # Running meson regenerates both build.ninja and ninjatool, and that is
55 # enough to prime the rest of the build.
56 ninjatool
: build.ninja
58 # Only needed in case Makefile.ninja does not exist.
59 .PHONY
: ninja-clean ninja-distclean clean-ctlist
63 build.ninja
: config-host.mak
65 Makefile.ninja
: build.ninja ninjatool
66 .
/ninjatool
-t ninja2make
--omit
clean dist uninstall < $< > $@
67 -include Makefile.ninja
69 ${ninja-targets-c_COMPILER
} ${ninja-targets-cpp_COMPILER
}: .var.command
+= -MP
71 .git-submodule-status
: git-submodule-update config-host.mak
73 # Check that we're not trying to do an out-of-tree build from
74 # a tree that's been used for an in-tree build.
75 ifneq ($(realpath
$(SRC_PATH
)),$(realpath .
))
76 ifneq ($(wildcard $(SRC_PATH
)/config-host.mak
),)
77 $(error This is an out of tree build but your source tree
($(SRC_PATH
)) \
78 seems to have been used for an in-tree build. You can fix this by running \
79 "$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree
)
83 CONFIG_SOFTMMU
:= $(if
$(filter %-softmmu
,$(TARGET_DIRS
)),y
)
84 CONFIG_USER_ONLY
:= $(if
$(filter %-user
,$(TARGET_DIRS
)),y
)
85 CONFIG_XEN
:= $(CONFIG_XEN_BACKEND
)
87 -include config-all-devices.mak
88 -include config-all-disas.mak
90 config-host.mak
: $(SRC_PATH
)/configure
$(SRC_PATH
)/pc-bios
$(SRC_PATH
)/VERSION
91 @echo
$@ is out-of-date
, running configure
92 @if
test -f meson-private
/coredata.dat
; then \
93 .
/config.status
--skip-meson
; \
98 # Force configure to re-run if the API symbols are updated
99 ifeq ($(CONFIG_PLUGIN
),y
)
100 config-host.mak
: $(SRC_PATH
)/plugins
/qemu-plugins.symbols
105 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
106 @echo
"Please call configure before running make!"
111 include $(SRC_PATH
)/rules.mak
113 # lor is defined in rules.mak
114 CONFIG_BLOCK
:= $(call lor
,$(CONFIG_SOFTMMU
),$(CONFIG_TOOLS
))
116 # Create QEMU_PKGVERSION and FULL_VERSION strings
117 # If PKGVERSION is set, use that; otherwise get version and -dirty status from git
118 QEMU_PKGVERSION
:= $(if
$(PKGVERSION
),$(PKGVERSION
),$(shell \
120 if
test -e .git
; then \
121 git describe
--match
'v*' 2>/dev
/null | tr
-d
'\n'; \
122 if
! git diff-index
--quiet HEAD
&>/dev
/null
; then \
127 # Either "version (pkgversion)", or just "version" if pkgversion not set
128 FULL_VERSION
:= $(if
$(QEMU_PKGVERSION
),$(VERSION
) ($(QEMU_PKGVERSION
)),$(VERSION
))
130 generated-files-y
= qemu-version.h config-host.h qemu-options.def
132 GENERATED_QAPI_FILES
= qapi
/qapi-builtin-types.h qapi
/qapi-builtin-types.c
133 GENERATED_QAPI_FILES
+= qapi
/qapi-types.h qapi
/qapi-types.c
134 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-types-
%.h
)
135 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-types-
%.c
)
136 GENERATED_QAPI_FILES
+= qapi
/qapi-builtin-visit.h qapi
/qapi-builtin-visit.c
137 GENERATED_QAPI_FILES
+= qapi
/qapi-visit.h qapi
/qapi-visit.c
138 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-visit-
%.h
)
139 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-visit-
%.c
)
140 GENERATED_QAPI_FILES
+= qapi
/qapi-init-commands.h qapi
/qapi-init-commands.c
141 GENERATED_QAPI_FILES
+= qapi
/qapi-commands.h qapi
/qapi-commands.c
142 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-commands-
%.h
)
143 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-commands-
%.c
)
144 GENERATED_QAPI_FILES
+= qapi
/qapi-emit-events.h qapi
/qapi-emit-events.c
145 GENERATED_QAPI_FILES
+= qapi
/qapi-events.h qapi
/qapi-events.c
146 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-events-
%.h
)
147 GENERATED_QAPI_FILES
+= $(QAPI_MODULES
:%=qapi
/qapi-events-
%.c
)
148 GENERATED_QAPI_FILES
+= qapi
/qapi-introspect.c qapi
/qapi-introspect.h
149 GENERATED_QAPI_FILES
+= qapi
/qapi-doc.texi
151 # The following list considers only the storage daemon main module. All other
152 # modules are currently shared with the main schema, so we don't actually
153 # generate additional files.
155 GENERATED_STORAGE_DAEMON_QAPI_FILES
= storage-daemon
/qapi
/qapi-commands.h
156 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-commands.c
157 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-emit-events.h
158 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-emit-events.c
159 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-events.h
160 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-events.c
161 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-init-commands.h
162 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-init-commands.c
163 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-introspect.h
164 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-introspect.c
165 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-types.h
166 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-types.c
167 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-visit.h
168 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-visit.c
169 GENERATED_STORAGE_DAEMON_QAPI_FILES
+= storage-daemon
/qapi
/qapi-doc.texi
171 generated-files-y
+= $(GENERATED_QAPI_FILES
)
172 generated-files-y
+= $(GENERATED_STORAGE_DAEMON_QAPI_FILES
)
174 generated-files-y
+= trace
/generated-tcg-tracers.h
176 generated-files-y
+= trace
/generated-helpers-wrappers.h
177 generated-files-y
+= trace
/generated-helpers.h
178 generated-files-y
+= trace
/generated-helpers.c
180 generated-files-
$(CONFIG_TRACE_UST
) += trace-ust-all.h
181 generated-files-
$(CONFIG_TRACE_UST
) += trace-ust-all.c
183 generated-files-y
+= module_block.h
185 TRACE_HEADERS
= trace
/trace-root.h
186 TRACE_SOURCES
= trace
/trace-root.c
188 ifdef CONFIG_TRACE_DTRACE
189 TRACE_HEADERS
+= trace-dtrace-root.h
$(trace-events-subdirs
:%=%/trace-dtrace.h
)
190 TRACE_DTRACE
+= trace-dtrace-root.dtrace
$(trace-events-subdirs
:%=%/trace-dtrace.dtrace
)
192 ifdef CONFIG_TRACE_UST
193 TRACE_HEADERS
+= trace-ust-root.h
$(trace-events-subdirs
:%=%/trace-ust.h
)
196 generated-files-y
+= $(BUILD_DIR
)/trace-events-all
197 generated-files-y
+= .git-submodule-status
199 trace-group-name
= $(shell dirname
$1 | sed
-e
's/[^a-zA-Z0-9]/_/g')
200 trace-group-suffix
= $(shell echo
$1 | sed
-e
's/[^a-zA-Z0-9]/_/g')
202 tracetool-y
= $(SRC_PATH
)/scripts
/tracetool.py
203 tracetool-y
+= $(shell find
$(SRC_PATH
)/scripts
/tracetool
-name
"*.py")
206 TRACE_HEADERS
+= trace
/trace-
$2.h
207 TRACE_SOURCES
+= trace
/trace-
$2.c
208 trace-obj-y
+= trace
/trace-
$2.o
209 trace
/trace-
$2.h
: trace
/trace-
$2.h-timestamp
210 @cmp
$$< $$@
>/dev
/null
2>&1 || cp
$$< $$@
211 trace
/trace-
$2.h-timestamp
: $(SRC_PATH
)/$1/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
212 $(call quiet-command
,$(TRACETOOL
) \
215 --backends
=$(TRACE_BACKENDS
) \
216 $$< > $$@
,"GEN","$$(@:%-timestamp=%)")
218 trace
/trace-
$2.c
: trace
/trace-
$2.c-timestamp
219 @cmp
$$< $$@
>/dev
/null
2>&1 || cp
$$< $$@
220 trace
/trace-
$2.c-timestamp
: $(SRC_PATH
)/$1/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
221 $(call quiet-command
,$(TRACETOOL
) \
224 --backends
=$(TRACE_BACKENDS
) \
225 $$< > $$@
,"GEN","$$(@:%-timestamp=%)")
228 %/trace-ust.h
: %/trace-ust.h-timestamp
229 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
230 %/trace-ust.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
231 $(call quiet-command
,$(TRACETOOL
) \
232 --group
=$(call trace-group-name
,$@
) \
233 --format
=ust-events-h \
234 --backends
=$(TRACE_BACKENDS
) \
235 $< > $@
,"GEN","$(@:%-timestamp=%)")
237 %/trace-dtrace.dtrace
: %/trace-dtrace.dtrace-timestamp
238 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
239 %/trace-dtrace.dtrace-timestamp
: $(SRC_PATH
)/%/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
240 $(call quiet-command
,$(TRACETOOL
) \
241 --group
=$(call trace-group-name
,$@
) \
243 --backends
=$(TRACE_BACKENDS
) \
244 $< > $@
,"GEN","$(@:%-timestamp=%)")
246 %/trace-dtrace.h
: %/trace-dtrace.dtrace
$(tracetool-y
)
247 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
249 %/trace-dtrace.o
: %/trace-dtrace.dtrace
$(tracetool-y
)
252 trace
/trace-root.h
: trace
/trace-root.h-timestamp
253 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
254 trace
/trace-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
255 $(call quiet-command
,$(TRACETOOL
) \
258 --backends
=$(TRACE_BACKENDS
) \
259 $< > $@
,"GEN","$(@:%-timestamp=%)")
261 trace
/trace-root.c
: trace
/trace-root.c-timestamp
262 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
263 trace
/trace-root.c-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
264 $(call quiet-command
,$(TRACETOOL
) \
267 --backends
=$(TRACE_BACKENDS
) \
268 $< > $@
,"GEN","$(@:%-timestamp=%)")
270 trace-ust-root.h
: trace-ust-root.h-timestamp
271 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
272 trace-ust-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
) $(BUILD_DIR
)/config-host.mak
273 $(call quiet-command
,$(TRACETOOL
) \
275 --format
=ust-events-h \
276 --backends
=$(TRACE_BACKENDS
) \
277 $< > $@
,"GEN","$(@:%-timestamp=%)")
279 trace-ust-all.h
: trace-ust-all.h-timestamp
280 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
281 trace-ust-all.h-timestamp
: $(trace-events-files
) $(tracetool-y
) $(BUILD_DIR
)/config-host.mak
282 $(call quiet-command
,$(TRACETOOL
) \
284 --format
=ust-events-h \
285 --backends
=$(TRACE_BACKENDS
) \
286 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
288 trace-ust-all.c
: trace-ust-all.c-timestamp
289 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
290 trace-ust-all.c-timestamp
: $(trace-events-files
) $(tracetool-y
) $(BUILD_DIR
)/config-host.mak
291 $(call quiet-command
,$(TRACETOOL
) \
293 --format
=ust-events-c \
294 --backends
=$(TRACE_BACKENDS
) \
295 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
297 trace-dtrace-root.dtrace
: trace-dtrace-root.dtrace-timestamp
298 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
299 trace-dtrace-root.dtrace-timestamp
: $(SRC_PATH
)/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
300 $(call quiet-command
,$(TRACETOOL
) \
303 --backends
=$(TRACE_BACKENDS
) \
304 $< > $@
,"GEN","$(@:%-timestamp=%)")
306 trace-dtrace-root.h
: trace-dtrace-root.dtrace
307 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
309 trace-dtrace-root.o
: trace-dtrace-root.dtrace
311 KEYCODEMAP_GEN
= $(SRC_PATH
)/ui
/keycodemapdb
/tools
/keymap-gen
312 KEYCODEMAP_CSV
= $(SRC_PATH
)/ui
/keycodemapdb
/data
/keymaps.csv
315 ui
/input-keymap-atset1-to-qcode.c.inc \
316 ui
/input-keymap-linux-to-qcode.c.inc \
317 ui
/input-keymap-qcode-to-atset1.c.inc \
318 ui
/input-keymap-qcode-to-atset2.c.inc \
319 ui
/input-keymap-qcode-to-atset3.c.inc \
320 ui
/input-keymap-qcode-to-linux.c.inc \
321 ui
/input-keymap-qcode-to-qnum.c.inc \
322 ui
/input-keymap-qcode-to-sun.c.inc \
323 ui
/input-keymap-qnum-to-qcode.c.inc \
324 ui
/input-keymap-usb-to-qcode.c.inc \
325 ui
/input-keymap-win32-to-qcode.c.inc \
326 ui
/input-keymap-x11-to-qcode.c.inc \
327 ui
/input-keymap-xorgevdev-to-qcode.c.inc \
328 ui
/input-keymap-xorgkbd-to-qcode.c.inc \
329 ui
/input-keymap-xorgxquartz-to-qcode.c.inc \
330 ui
/input-keymap-xorgxwin-to-qcode.c.inc \
331 ui
/input-keymap-osx-to-qcode.c.inc \
334 generated-files-
$(CONFIG_SOFTMMU
) += $(KEYCODEMAP_FILES
)
336 ui
/input-keymap-
%.c.inc
: $(KEYCODEMAP_GEN
) $(KEYCODEMAP_CSV
) $(SRC_PATH
)/ui
/Makefile.objs
337 $(call quiet-command
,\
338 stem
=$* && src
=$${stem
%-to-
*} dst
=$${stem
#*-to-} && \
339 test -e
$(KEYCODEMAP_GEN
) && \
340 $(PYTHON
) $(KEYCODEMAP_GEN
) \
342 --varname qemu_input_map_
$${src}_to_
$${dst} \
343 code-map
$(KEYCODEMAP_CSV
) $${src} $${dst} \
344 > $@ ||
rm -f
$@
, "GEN", "$@")
346 $(KEYCODEMAP_GEN
): .git-submodule-status
347 $(KEYCODEMAP_CSV
): .git-submodule-status
349 edk2-decompressed
= $(basename $(wildcard pc-bios
/edk2-
*.fd.bz2
))
350 pc-bios
/edk2-
%.fd
: pc-bios
/edk2-
%.fd.bz2
351 $(call quiet-command
,bzip2
-d
-c
$< > $@
,"BUNZIP2",$<)
353 # Don't try to regenerate Makefile or configure
354 # We don't generate any of them
358 .PHONY
: all clean cscope
distclean html
info install install-doc \
359 pdf txt recurse-all
dist msi FORCE
361 $(call set-vpath
, $(SRC_PATH
))
363 LIBS
+=-lz
$(LIBS_TOOLS
)
366 HELPERS-y
= $(HELPERS
)
368 HELPERS-
$(call land
,$(CONFIG_SOFTMMU
),$(CONFIG_LINUX
)) += qemu-bridge-helper
$(EXESUF
)
370 ifeq ($(CONFIG_LINUX
)$(CONFIG_VIRGL
)$(CONFIG_GBM
)$(CONFIG_TOOLS
),yyyy
)
371 HELPERS-y
+= vhost-user-gpu
$(EXESUF
)
372 vhost-user-json-y
+= contrib
/vhost-user-gpu
/50-qemu-gpu.json
375 ifeq ($(CONFIG_SOFTMMU
)$(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyyy
)
376 HELPERS-y
+= virtiofsd
$(EXESUF
)
377 vhost-user-json-y
+= tools
/virtiofsd
/50-qemu-virtiofsd.json
380 # Sphinx does not allow building manuals into the same directory as
381 # the source files, so if we're doing an in-tree QEMU build we must
382 # build the manuals into a subdirectory (and then install them from
383 # there for 'make install'). For an out-of-tree build we can just
384 # use the docs/ subdirectory in the build tree as normal.
385 ifeq ($(realpath
$(SRC_PATH
)),$(realpath .
))
386 MANUAL_BUILDDIR
:= docs
/built
388 MANUAL_BUILDDIR
:= docs
392 DOCS
+=$(MANUAL_BUILDDIR
)/system
/qemu
.1
393 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/qemu-img
.1
394 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/qemu-nbd
.8
395 DOCS
+=$(MANUAL_BUILDDIR
)/interop
/qemu-ga
.8
396 ifeq ($(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyy
)
397 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/virtiofsd
.1
399 DOCS
+=$(MANUAL_BUILDDIR
)/system
/qemu-block-drivers
.7
400 DOCS
+=docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7
401 DOCS
+=docs
/interop
/qemu-ga-ref.html docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7
402 DOCS
+=$(MANUAL_BUILDDIR
)/system
/qemu-cpu-models
.7
403 DOCS
+=$(MANUAL_BUILDDIR
)/index.html
405 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/virtfs-proxy-helper
.1
407 ifdef CONFIG_TRACE_SYSTEMTAP
408 DOCS
+=$(MANUAL_BUILDDIR
)/tools
/qemu-trace-stap
.1
414 SUBDIR_MAKEFLAGS
=$(if
$(V
),,--no-print-directory
--quiet
) BUILD_DIR
=$(BUILD_DIR
)
415 SUBDIR_DEVICES_MAK
=$(patsubst %, %/config-devices.mak
, $(filter %-softmmu
, $(TARGET_DIRS
)))
416 SUBDIR_DEVICES_MAK_DEP
=$(patsubst %, %.d
, $(SUBDIR_DEVICES_MAK
))
418 ifeq ($(SUBDIR_DEVICES_MAK
),)
419 config-all-devices.mak
: config-host.mak
420 $(call quiet-command
,echo
'# no devices' > $@
,"GEN","$@")
422 config-all-devices.mak
: $(SUBDIR_DEVICES_MAK
) config-host.mak
423 $(call quiet-command
, sed
-n \
424 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \
425 $(SUBDIR_DEVICES_MAK
) |
sort -u
> $@
, \
429 -include $(SUBDIR_DEVICES_MAK_DEP
)
431 # This has to be kept in sync with Kconfig.host.
433 $(CONFIG_MINIKCONF_MODE
) \
434 $@
$*/config-devices.mak.d
$< $(SRC_PATH
)/Kconfig \
435 CONFIG_TCG
=$(CONFIG_TCG
) \
436 CONFIG_KVM
=$(CONFIG_KVM
) \
437 CONFIG_SPICE
=$(CONFIG_SPICE
) \
438 CONFIG_IVSHMEM
=$(CONFIG_IVSHMEM
) \
439 CONFIG_TPM
=$(CONFIG_TPM
) \
440 CONFIG_XEN
=$(CONFIG_XEN
) \
441 CONFIG_OPENGL
=$(CONFIG_OPENGL
) \
442 CONFIG_X11
=$(CONFIG_X11
) \
443 CONFIG_VHOST_USER
=$(CONFIG_VHOST_USER
) \
444 CONFIG_VHOST_KERNEL
=$(CONFIG_VHOST_KERNEL
) \
445 CONFIG_VIRTFS
=$(CONFIG_VIRTFS
) \
446 CONFIG_LINUX
=$(CONFIG_LINUX
) \
447 CONFIG_PVRDMA
=$(CONFIG_PVRDMA
)
449 MINIKCONF
= $(PYTHON
) $(SRC_PATH
)/scripts
/minikconf.py
451 $(SUBDIR_DEVICES_MAK
): %/config-devices.mak
: default-configs
/%.mak
$(SRC_PATH
)/Kconfig
$(BUILD_DIR
)/config-host.mak
452 $(call quiet-command
, $(MINIKCONF
) $(MINIKCONF_ARGS
) \
453 > $@.tmp
, "GEN", "$@.tmp")
454 $(call quiet-command
, if
test -f
$@
; then \
455 if cmp
-s
$@.old
$@
; then \
459 if
test -f
$@.old
; then \
460 echo
"WARNING: $@ (user modified) out of date.";\
462 echo
"WARNING: $@ out of date.";\
464 echo
"Run \"$(MAKE) defconfig\" to regenerate."; \
473 rm -f config-all-devices.mak
$(SUBDIR_DEVICES_MAK
)
475 ifneq ($(wildcard config-host.mak
),)
476 include $(SRC_PATH
)/Makefile.objs
479 dummy
:= $(call unnest-vars
,, \
486 ivshmem-client-obj-y \
487 ivshmem-server-obj-y \
490 libvhost-user-obj-y \
491 vhost-user-scsi-obj-y \
492 vhost-user-blk-obj-y \
493 vhost-user-input-obj-y \
494 vhost-user-gpu-obj-y \
498 storage-daemon-obj-y \
499 storage-daemon-obj-m \
507 dummy
:= $(foreach DIR
,$(trace-events-subdirs
),$(eval
$(call __trace_rules
,$(DIR
),$(call trace-group-suffix
,$(DIR
)))))
509 generated-files-y
+= $(TRACE_HEADERS
)
510 generated-files-y
+= $(TRACE_SOURCES
)
513 include $(SRC_PATH
)/tests
/Makefile.
include
515 all: $(DOCS
) $(if
$(BUILD_DOCS
),sphinxdocs
) $(TOOLS
) $(HELPERS-y
) recurse-all modules
$(vhost-user-json-y
)
517 qemu-version.h
: FORCE
518 $(call quiet-command
, \
519 (printf
'#define QEMU_PKGVERSION "$(QEMU_PKGVERSION)"\n'; \
520 printf
'#define QEMU_FULL_VERSION "$(FULL_VERSION)"\n'; \
522 $(call quiet-command
, if
! cmp
-s
$@
$@.tmp
; then \
528 config-host.h
: config-host.h-timestamp
529 config-host.h-timestamp
: config-host.mak
530 qemu-options.def
: $(SRC_PATH
)/qemu-options.hx
$(SRC_PATH
)/scripts
/hxtool
531 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
533 TARGET_DIRS_RULES
:= $(foreach t
, all fuzz
clean install, $(addsuffix /$(t
), $(TARGET_DIRS
)))
535 SOFTMMU_ALL_RULES
=$(filter %-softmmu
/all, $(TARGET_DIRS_RULES
))
536 $(SOFTMMU_ALL_RULES
): $(authz-obj-y
)
537 $(SOFTMMU_ALL_RULES
): $(block-obj-y
)
538 $(SOFTMMU_ALL_RULES
): $(storage-daemon-obj-y
)
539 $(SOFTMMU_ALL_RULES
): $(chardev-obj-y
)
540 $(SOFTMMU_ALL_RULES
): $(crypto-obj-y
)
541 $(SOFTMMU_ALL_RULES
): $(io-obj-y
)
542 $(SOFTMMU_ALL_RULES
): config-all-devices.mak
543 ifdef DECOMPRESS_EDK2_BLOBS
544 $(SOFTMMU_ALL_RULES
): $(edk2-decompressed
)
547 SOFTMMU_FUZZ_RULES
=$(filter %-softmmu
/fuzz
, $(TARGET_DIRS_RULES
))
548 $(SOFTMMU_FUZZ_RULES
): $(authz-obj-y
)
549 $(SOFTMMU_FUZZ_RULES
): $(block-obj-y
)
550 $(SOFTMMU_FUZZ_RULES
): $(chardev-obj-y
)
551 $(SOFTMMU_FUZZ_RULES
): $(crypto-obj-y
)
552 $(SOFTMMU_FUZZ_RULES
): $(io-obj-y
)
553 $(SOFTMMU_FUZZ_RULES
): config-all-devices.mak
554 $(SOFTMMU_FUZZ_RULES
): $(edk2-decompressed
)
556 .PHONY
: $(TARGET_DIRS_RULES
)
557 # The $(TARGET_DIRS_RULES) are of the form SUBDIR/GOAL, so that
558 # $(dir $@) yields the sub-directory, and $(notdir $@) yields the sub-goal
559 $(TARGET_DIRS_RULES
):
560 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$(dir $@
) V
="$(V)" TARGET_DIR
="$(dir $@)" $(notdir $@
),)
562 # LIBFDT_lib="": avoid breaking existing trees with objects requiring -fPIC
563 DTC_MAKE_ARGS
=-I
$(SRC_PATH
)/dtc VPATH
=$(SRC_PATH
)/dtc
-C dtc V
="$(V)" LIBFDT_lib
=""
564 DTC_CFLAGS
=$(CFLAGS
) $(QEMU_CFLAGS
)
565 DTC_CPPFLAGS
=-I
$(SRC_PATH
)/dtc
/libfdt
568 dtc
/all: .git-submodule-status dtc
/libfdt
569 $(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
,)
571 dtc
/%: .git-submodule-status
574 # Overriding CFLAGS causes us to lose defines added in the sub-makefile.
575 # Not overriding CFLAGS leads to mis-matches between compilation modes.
576 # Therefore we replicate some of the logic in the sub-makefile.
577 # Remove all the extra -Warning flags that QEMU uses that Capstone doesn't;
578 # no need to annoy QEMU developers with such things.
579 CAP_CFLAGS
= $(patsubst -W
%,,$(CFLAGS
) $(QEMU_CFLAGS
))
580 CAP_CFLAGS
+= -DCAPSTONE_USE_SYS_DYN_MEM
581 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM
582 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM64
583 CAP_CFLAGS
+= -DCAPSTONE_HAS_POWERPC
584 CAP_CFLAGS
+= -DCAPSTONE_HAS_X86
587 capstone
/all: .git-submodule-status
588 $(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
))
591 slirp
/all: .git-submodule-status
592 $(call quiet-command
,$(MAKE
) -C
$(SRC_PATH
)/slirp \
593 BUILD_DIR
="$(BUILD_DIR)/slirp" \
594 PKG_CONFIG
="$(PKG_CONFIG)" \
595 CC
="$(CC)" AR
="$(AR)" LD
="$(LD)" RANLIB
="$(RANLIB)" \
596 CFLAGS
="$(QEMU_CFLAGS) $(CFLAGS)" LDFLAGS
="$(QEMU_LDFLAGS)")
598 $(filter %/all, $(TARGET_DIRS_RULES
)): libqemuutil.a
$(common-obj-y
) \
601 $(filter %/fuzz
, $(TARGET_DIRS_RULES
)): libqemuutil.a
$(common-obj-y
) \
602 $(qom-obj-y
) $(crypto-user-obj-
$(CONFIG_USER_ONLY
))
604 ROM_DIRS
= $(addprefix pc-bios
/, $(ROMS
))
605 ROM_DIRS_RULES
=$(foreach t
, all clean, $(addsuffix /$(t
), $(ROM_DIRS
)))
606 # Only keep -O and -g cflags
607 .PHONY
: $(ROM_DIRS_RULES
)
609 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$(dir $@
) V
="$(V)" TARGET_DIR
="$(dir $@)" CFLAGS
="$(filter -O% -g%,$(CFLAGS))" $(notdir $@
),)
611 .PHONY
: recurse-all recurse-clean recurse-install
612 recurse-all
: $(addsuffix /all, $(TARGET_DIRS
) $(ROM_DIRS
))
613 recurse-clean
: $(addsuffix /clean, $(TARGET_DIRS
) $(ROM_DIRS
))
614 recurse-install
: $(addsuffix /install, $(TARGET_DIRS
))
615 $(addsuffix /install, $(TARGET_DIRS
)): all
617 $(BUILD_DIR
)/version.o
: $(SRC_PATH
)/version.rc config-host.h
618 $(call quiet-command
,$(WINDRES
) -I
$(BUILD_DIR
) -o
$@
$<,"RC","version.o")
620 Makefile
: $(version-obj-y
)
622 ######################################################################
625 libqemuutil.a
: $(util-obj-y
) $(trace-obj-y
) $(stub-obj-y
)
626 libvhost-user.a
: $(libvhost-user-obj-y
) $(util-obj-y
) $(stub-obj-y
)
628 ######################################################################
630 COMMON_LDADDS
= libqemuutil.a
632 qemu-img.o
: qemu-img-cmds.h
634 qemu-img
$(EXESUF
): qemu-img.o
$(authz-obj-y
) $(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
635 qemu-nbd
$(EXESUF
): qemu-nbd.o
$(authz-obj-y
) $(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
636 qemu-io
$(EXESUF
): qemu-io.o
$(authz-obj-y
) $(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
637 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
)
639 qemu-bridge-helper
$(EXESUF
): qemu-bridge-helper.o
$(COMMON_LDADDS
)
641 qemu-keymap
$(EXESUF
): qemu-keymap.o ui
/input-keymap.o
$(COMMON_LDADDS
)
643 qemu-edid
$(EXESUF
): qemu-edid.o hw
/display
/edid-generate.o
$(COMMON_LDADDS
)
645 fsdev
/virtfs-proxy-helper
$(EXESUF
): fsdev
/virtfs-proxy-helper.o fsdev
/9p-marshal.o fsdev
/9p-iov-marshal.o
$(COMMON_LDADDS
)
647 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
)
649 scsi
/qemu-pr-helper
$(EXESUF
): LIBS
+= -ludev
-lmultipath
-lmpathpersist
652 qemu-img-cmds.h
: $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/scripts
/hxtool
653 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
655 qemu-ga
$(EXESUF
): LIBS
= $(LIBS_QGA
)
656 qemu-ga
$(EXESUF
): QEMU_CFLAGS
+= -I qga
/qapi-generated
658 qemu-keymap
$(EXESUF
): LIBS
+= $(XKBCOMMON_LIBS
)
659 qemu-keymap
$(EXESUF
): QEMU_CFLAGS
+= $(XKBCOMMON_CFLAGS
)
661 qapi-py
= $(SRC_PATH
)/scripts
/qapi
/__init__.py \
662 $(SRC_PATH
)/scripts
/qapi
/commands.py \
663 $(SRC_PATH
)/scripts
/qapi
/common.py \
664 $(SRC_PATH
)/scripts
/qapi
/doc.py \
665 $(SRC_PATH
)/scripts
/qapi
/error.py \
666 $(SRC_PATH
)/scripts
/qapi
/events.py \
667 $(SRC_PATH
)/scripts
/qapi
/expr.py \
668 $(SRC_PATH
)/scripts
/qapi
/gen.py \
669 $(SRC_PATH
)/scripts
/qapi
/introspect.py \
670 $(SRC_PATH
)/scripts
/qapi
/parser.py \
671 $(SRC_PATH
)/scripts
/qapi
/schema.py \
672 $(SRC_PATH
)/scripts
/qapi
/source.py \
673 $(SRC_PATH
)/scripts
/qapi
/types.py \
674 $(SRC_PATH
)/scripts
/qapi
/visit.py \
675 $(SRC_PATH
)/scripts
/qapi-gen.py
677 qga
/qapi-generated
/qga-qapi-types.c qga
/qapi-generated
/qga-qapi-types.h \
678 qga
/qapi-generated
/qga-qapi-visit.c qga
/qapi-generated
/qga-qapi-visit.h \
679 qga
/qapi-generated
/qga-qapi-commands.h qga
/qapi-generated
/qga-qapi-commands.c \
680 qga
/qapi-generated
/qga-qapi-init-commands.h qga
/qapi-generated
/qga-qapi-init-commands.c \
681 qga
/qapi-generated
/qga-qapi-doc.texi
: \
682 qga
/qapi-generated
/qapi-gen-timestamp
;
683 qga
/qapi-generated
/qapi-gen-timestamp
: $(SRC_PATH
)/qga
/qapi-schema.json
$(qapi-py
)
684 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-gen.py \
685 -o qga
/qapi-generated
-p
"qga-" $<, \
686 "GEN","$(@:%-timestamp=%)")
689 qapi-modules
= $(SRC_PATH
)/qapi
/qapi-schema.json \
690 $(QAPI_MODULES
:%=$(SRC_PATH
)/qapi
/%.json
)
692 $(GENERATED_QAPI_FILES
): qapi-gen-timestamp
;
693 qapi-gen-timestamp
: $(qapi-modules
) $(qapi-py
)
694 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-gen.py \
696 "GEN","$(@:%-timestamp=%)")
699 qapi-modules-storage-daemon
= \
700 $(SRC_PATH
)/storage-daemon
/qapi
/qapi-schema.json \
701 $(QAPI_MODULES_STORAGE_DAEMON
:%=$(SRC_PATH
)/qapi
/%.json
)
703 $(GENERATED_STORAGE_DAEMON_QAPI_FILES
): storage-daemon
/qapi
/qapi-gen-timestamp
;
704 storage-daemon
/qapi
/qapi-gen-timestamp
: $(qapi-modules-storage-daemon
) $(qapi-py
)
705 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-gen.py \
706 -o
"storage-daemon/qapi" $<, \
707 "GEN","$(@:%-timestamp=%)")
710 QGALIB_GEN
=$(addprefix qga
/qapi-generated
/, qga-qapi-types.h qga-qapi-visit.h qga-qapi-commands.h qga-qapi-init-commands.h
)
711 $(qga-obj-y
): $(QGALIB_GEN
)
713 qemu-ga
$(EXESUF
): $(qga-obj-y
) $(COMMON_LDADDS
)
716 ifdef QEMU_GA_MSI_ENABLED
717 QEMU_GA_MSI
=qemu-ga-
$(ARCH
).msi
721 $(QEMU_GA_MSI
): qemu-ga.exe
$(QGA_VSS_PROVIDER
)
723 $(QEMU_GA_MSI
): config-host.mak
725 $(QEMU_GA_MSI
): $(SRC_PATH
)/qga
/installer
/qemu-ga.wxs
726 $(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)" \
727 wixl
-o
$@
$(QEMU_GA_MSI_ARCH
) $(QEMU_GA_MSI_WITH_VSS
) $(QEMU_GA_MSI_MINGW_DLL_PATH
) $<,"WIXL","$@")
730 @echo
"MSI build not configured or dependency resolution failed (reconfigure with --enable-guest-agent-msi option)"
735 qemu-ga
: qemu-ga
$(EXESUF
) $(QGA_VSS_PROVIDER
) $(QEMU_GA_MSI
)
738 elf2dmp
$(EXESUF
): $(elf2dmp-obj-y
)
742 ivshmem-client
$(EXESUF
): $(ivshmem-client-obj-y
) $(COMMON_LDADDS
)
744 ivshmem-server
$(EXESUF
): $(ivshmem-server-obj-y
) $(COMMON_LDADDS
)
747 vhost-user-scsi
$(EXESUF
): $(vhost-user-scsi-obj-y
) libvhost-user.a
749 vhost-user-blk
$(EXESUF
): $(vhost-user-blk-obj-y
) libvhost-user.a
752 rdmacm-mux
$(EXESUF
): LIBS
+= "-libumad"
753 rdmacm-mux
$(EXESUF
): $(rdmacm-mux-obj-y
) $(COMMON_LDADDS
)
756 # relies on Linux-specific syscalls
757 ifeq ($(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyy
)
758 virtiofsd
$(EXESUF
): $(virtiofsd-obj-y
) libvhost-user.a
$(COMMON_LDADDS
)
762 vhost-user-gpu
$(EXESUF
): $(vhost-user-gpu-obj-y
) $(libvhost-user-obj-y
) libqemuutil.a
765 ifdef CONFIG_VHOST_USER_INPUT
767 vhost-user-input
$(EXESUF
): $(vhost-user-input-obj-y
) libvhost-user.a libqemuutil.a
770 # build by default, do not install
771 all: vhost-user-input
$(EXESUF
)
775 module_block.h
: $(SRC_PATH
)/scripts
/modules
/module_block.py config-host.mak
776 $(call quiet-command
,$(PYTHON
) $< $@ \
777 $(addprefix $(SRC_PATH
)/,$(patsubst %.mo
,%.c
,$(block-obj-m
))), \
780 clean: recurse-clean ninja-clean clean-ctlist
781 -test -f ninjatool
&& .
/ninjatool
$(if
$(V
),-v
,) -t
clean
782 # avoid old build problems by removing potentially incorrect old files
783 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
784 rm -f qemu-options.def
786 find . \
( -name
'*.so' -o
-name
'*.dll' -o
-name
'*.mo' -o
-name
'*.[oda]' \
) -type f \
787 ! -path .
/roms
/edk2
/ArmPkg
/Library
/GccLto
/liblto-aarch64.a \
788 ! -path .
/roms
/edk2
/ArmPkg
/Library
/GccLto
/liblto-arm.a \
789 ! -path .
/roms
/edk2
/BaseTools
/Source
/Python
/UPT
/Dll
/sqlite3.dll \
791 rm -f
$(edk2-decompressed
)
792 rm -f
$(filter-out %.tlb
,$(TOOLS
)) $(HELPERS-y
) TAGS cscope.
* *.pod
*~
*/*~
793 rm -f fsdev
/*.pod scsi
/*.pod
794 rm -f qemu-img-cmds.h
795 rm -f ui
/shader
/*-vert.h ui
/shader
/*-frag.h
796 @
# May not be present in generated-files-y
797 rm -f trace
/generated-tracers-dtrace.dtrace
*
798 rm -f trace
/generated-tracers-dtrace.h
*
799 rm -f
$(foreach f
,$(generated-files-y
),$(f
) $(f
)-timestamp
)
800 rm -f qapi-gen-timestamp
801 rm -f storage-daemon
/qapi
/qapi-gen-timestamp
802 rm -rf qga
/qapi-generated
803 rm -f config-all-devices.mak
804 rm -f
$(SUBDIR_DEVICES_MAK
)
806 VERSION ?
= $(shell cat VERSION
)
808 dist: qemu-
$(VERSION
).
tar.bz2
811 $(SRC_PATH
)/scripts
/make-release
"$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
813 define clean-manual
=
814 rm -rf
$(MANUAL_BUILDDIR
)/$1/_static
815 rm -f
$(MANUAL_BUILDDIR
)/$1/objects.inv
$(MANUAL_BUILDDIR
)/$1/searchindex.js
$(MANUAL_BUILDDIR
)/$1/*.html
818 distclean: clean ninja-distclean
819 -test -f ninjatool
&& .
/ninjatool
$(if
$(V
),-v
,) -t
clean -g
820 rm -f config-host.mak config-host.h
* $(DOCS
)
821 rm -f tests
/tcg
/config-
*.mak
822 rm -f config-all-devices.mak config-all-disas.mak config.status
823 rm -f
$(SUBDIR_DEVICES_MAK
)
824 rm -f po
/*.mo tests
/qemu-iotests
/common.env
825 rm -f roms
/seabios
/config.mak roms
/vgabios
/config.mak
826 rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols
827 rm -rf meson-private meson-logs meson-info compile_commands.json
828 rm -f Makefile.ninja ninjatool ninjatool.stamp
830 rm -f linux-headers
/asm
831 rm -f docs
/version.texi
832 rm -f docs
/interop
/qemu-ga-qapi.texi docs
/interop
/qemu-qmp-qapi.texi
833 rm -f docs
/interop
/qemu-qmp-ref
.7 docs
/interop
/qemu-ga-ref
.7
834 rm -f docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
835 rm -f docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
836 rm -f docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html
838 $(call clean-manual
,devel
)
839 $(call clean-manual
,interop
)
840 $(call clean-manual
,specs
)
841 $(call clean-manual
,system
)
842 $(call clean-manual
,tools
)
843 $(call clean-manual
,user
)
844 for d in
$(TARGET_DIRS
); do \
845 rm -rf
$$d || exit
1 ; \
849 KEYMAPS
=da en-gb et fr fr-ch is lt no pt-br sv \
850 ar de en-us fi fr-be hr it lv nl pl ru th \
851 de-ch es fo fr-ca hu ja mk pt sl tr \
855 BLOBS
=bios.bin bios-256k.bin bios-microvm.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
856 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin vgabios-virtio.bin \
857 vgabios-ramfb.bin vgabios-bochs-display.bin vgabios-ati.bin \
858 openbios-sparc32 openbios-sparc64 openbios-ppc QEMU
,tcx.bin QEMU
,cgthree.bin \
859 pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
860 pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
861 efi-e1000.rom efi-eepro100.rom efi-ne2k_pci.rom \
862 efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
863 efi-e1000e.rom efi-vmxnet3.rom \
865 bamboo.dtb canyonlands.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
866 multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin \
867 s390-ccw.img s390-netboot.img \
868 slof.bin skiboot.lid \
870 u-boot.e500 u-boot-sam460-20100605.bin \
874 opensbi-riscv32-sifive_u-fw_jump.bin opensbi-riscv32-virt-fw_jump.bin \
875 opensbi-riscv64-sifive_u-fw_jump.bin opensbi-riscv64-virt-fw_jump.bin
878 DESCS
=50-edk2-i386-secure.json
50-edk2-x86_64-secure.json \
879 60-edk2-aarch64.json
60-edk2-arm.json
60-edk2-i386.json
60-edk2-x86_64.json
885 # Note that we manually filter-out the non-Sphinx documentation which
886 # is currently built into the docs/interop directory in the build tree,
887 # and also any sphinx-built manpages.
888 define install-manual
=
889 for d in
$$(cd
$(MANUAL_BUILDDIR
) && find
$1 -type d
); do
$(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)/$$d"; done
890 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
893 # Note that we deliberately do not install the "devel" manual: it is
894 # for QEMU developers, and not interesting to our users.
895 .PHONY
: install-sphinxdocs
896 install-sphinxdocs
: sphinxdocs
897 $(call install-manual
,interop
)
898 $(call install-manual
,specs
)
899 $(call install-manual
,system
)
900 $(call install-manual
,tools
)
901 $(call install-manual
,user
)
903 install-doc
: $(DOCS
) install-sphinxdocs
904 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)"
905 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/index.html
"$(DESTDIR)$(qemu_docdir)"
906 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)/interop"
907 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.html
"$(DESTDIR)$(qemu_docdir)/interop"
908 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.txt
"$(DESTDIR)$(qemu_docdir)/interop"
910 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
911 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/system
/qemu
.1 "$(DESTDIR)$(mandir)/man1"
912 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man7"
913 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref
.7 "$(DESTDIR)$(mandir)/man7"
914 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/system
/qemu-block-drivers
.7 "$(DESTDIR)$(mandir)/man7"
915 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/system
/qemu-cpu-models
.7 "$(DESTDIR)$(mandir)/man7"
916 ifeq ($(CONFIG_TOOLS
),y
)
917 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/qemu-img
.1 "$(DESTDIR)$(mandir)/man1"
918 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man8"
919 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/qemu-nbd
.8 "$(DESTDIR)$(mandir)/man8"
921 ifdef CONFIG_TRACE_SYSTEMTAP
922 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/qemu-trace-stap
.1 "$(DESTDIR)$(mandir)/man1"
924 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
925 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/interop
/qemu-ga
.8 "$(DESTDIR)$(mandir)/man8"
926 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)/interop"
927 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.html
"$(DESTDIR)$(qemu_docdir)/interop"
928 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.txt
"$(DESTDIR)$(qemu_docdir)/interop"
929 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref
.7 "$(DESTDIR)$(mandir)/man7"
933 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
934 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/virtfs-proxy-helper
.1 "$(DESTDIR)$(mandir)/man1"
936 ifeq ($(CONFIG_LINUX
)$(CONFIG_SECCOMP
)$(CONFIG_LIBCAP_NG
),yyy
)
937 $(INSTALL_DATA
) $(MANUAL_BUILDDIR
)/tools
/virtiofsd
.1 "$(DESTDIR)$(mandir)/man1"
941 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)"
943 install-localstatedir
:
945 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
946 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_localstatedir)"/run
950 ICON_SIZES
=16x16
24x24
32x32
48x48
64x64
128x128
256x256
512x512
953 $(INSTALL_DIR
) "$(DESTDIR)$(includedir)"
955 # Needed by "meson install"
957 install: all $(if
$(BUILD_DOCS
),install-doc
) \
958 install-datadir install-localstatedir install-includedir \
959 $(if
$(INSTALL_BLOBS
),$(edk2-decompressed
)) \
962 $(call install-prog
,$(TOOLS
),$(DESTDIR
)$(bindir))
964 ifneq ($(CONFIG_MODULES
),)
965 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_moddir)"
966 for s in
$(modules-m
:.mo
=$(DSOSUF
)); do \
967 t
="$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
968 $(INSTALL_LIB
) $$s "$$t"; \
969 test -z
"$(STRIP)" ||
$(STRIP
) "$$t"; \
972 ifneq ($(HELPERS-y
),)
973 $(call install-prog
,$(HELPERS-y
),$(DESTDIR
)$(libexecdir
))
975 ifneq ($(vhost-user-json-y
),)
976 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/vhost-user/"
977 for x in
$(vhost-user-json-y
); do \
978 $(INSTALL_DATA
) $$x "$(DESTDIR)$(qemu_datadir)/vhost-user/"; \
981 ifdef CONFIG_TRACE_SYSTEMTAP
982 $(INSTALL_PROG
) "scripts/qemu-trace-stap" $(DESTDIR
)$(bindir)
985 set
-e
; for x in
$(BLOBS
); do \
986 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/$$x "$(DESTDIR)$(qemu_datadir)"; \
990 set
-e
; for x in
$(edk2-decompressed
); do \
991 $(INSTALL_DATA
) $$x "$(DESTDIR)$(qemu_datadir)"; \
995 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/firmware"
996 set
-e
; tmpf
=$$(mktemp
); trap
'rm -f -- "$$tmpf"' EXIT
; \
997 for x in
$(DESCS
); do \
998 sed
-e
's,@DATADIR@,$(qemu_datadir),' \
999 "$(SRC_PATH)/pc-bios/descriptors/$$x" > "$$tmpf"; \
1000 $(INSTALL_DATA
) "$$tmpf" \
1001 "$(DESTDIR)$(qemu_datadir)/firmware/$$x"; \
1004 for s in
$(ICON_SIZES
); do \
1005 mkdir
-p
"$(DESTDIR)$(qemu_icondir)/hicolor/$${s}/apps"; \
1006 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/icons
/qemu_
$${s}.png \
1007 "$(DESTDIR)$(qemu_icondir)/hicolor/$${s}/apps/qemu.png"; \
1009 mkdir
-p
"$(DESTDIR)$(qemu_icondir)/hicolor/32x32/apps"; \
1010 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/icons
/qemu_32x32.bmp \
1011 "$(DESTDIR)$(qemu_icondir)/hicolor/32x32/apps/qemu.bmp"; \
1012 mkdir
-p
"$(DESTDIR)$(qemu_icondir)/hicolor/scalable/apps"; \
1013 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/icons
/qemu.svg \
1014 "$(DESTDIR)$(qemu_icondir)/hicolor/scalable/apps/qemu.svg"
1015 mkdir
-p
"$(DESTDIR)$(qemu_desktopdir)"
1016 $(INSTALL_DATA
) $(SRC_PATH
)/ui
/qemu.desktop \
1017 "$(DESTDIR)$(qemu_desktopdir)/qemu.desktop"
1021 ifeq ($(CONFIG_PLUGIN
),y
)
1022 $(INSTALL_DATA
) $(SRC_PATH
)/include/qemu
/qemu-plugin.h
"$(DESTDIR)$(includedir)/qemu-plugin.h"
1024 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/keymaps"
1025 set
-e
; for x in
$(KEYMAPS
); do \
1026 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/keymaps
/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
1028 $(INSTALL_DATA
) $(BUILD_DIR
)/trace-events-all
"$(DESTDIR)$(qemu_datadir)/trace-events-all"
1030 # opengl shader programs
1031 ui
/shader
/%-vert.h
: $(SRC_PATH
)/ui
/shader
/%.vert
$(SRC_PATH
)/scripts
/shaderinclude.pl
1033 $(call quiet-command
,\
1034 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
1037 ui
/shader
/%-frag.h
: $(SRC_PATH
)/ui
/shader
/%.frag
$(SRC_PATH
)/scripts
/shaderinclude.pl
1039 $(call quiet-command
,\
1040 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
1043 ui
/shader.o
: $(SRC_PATH
)/ui
/shader.c \
1044 ui
/shader
/texture-blit-vert.h \
1045 ui
/shader
/texture-blit-flip-vert.h \
1046 ui
/shader
/texture-blit-frag.h
1050 MAKEINFOINCLUDES
= -I docs
-I
$(<D
) -I
$(@D
)
1051 MAKEINFOFLAGS
=--no-split
--number-sections
$(MAKEINFOINCLUDES
)
1052 TEXI2PODFLAGS
=$(MAKEINFOINCLUDES
) -DVERSION
="$(VERSION)" -DCONFDIR
="$(qemu_confdir)"
1053 TEXI2PDFFLAGS
=$(if
$(V
),,--quiet
) -I
$(SRC_PATH
) $(MAKEINFOINCLUDES
)
1055 docs
/version.texi
: $(SRC_PATH
)/VERSION config-host.mak
1056 $(call quiet-command
,(\
1057 echo
"@set VERSION $(VERSION)" && \
1058 echo
"@set CONFDIR $(qemu_confdir)" \
1061 %.html
: %.texi docs
/version.texi
1062 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
1063 --html
$< -o
$@
,"GEN","$@")
1065 %.
info: %.texi docs
/version.texi
1066 $(call quiet-command
,$(MAKEINFO
) $(MAKEINFOFLAGS
) $< -o
$@
,"GEN","$@")
1068 %.txt
: %.texi docs
/version.texi
1069 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
1070 --plaintext
$< -o
$@
,"GEN","$@")
1072 %.pdf
: %.texi docs
/version.texi
1073 $(call quiet-command
,texi2pdf
$(TEXI2PDFFLAGS
) $< -o
$@
,"GEN","$@")
1075 # Sphinx builds all its documentation at once in one invocation
1076 # and handles "don't rebuild things unless necessary" itself.
1077 # The '.doctrees' files are cached information to speed this up.
1079 sphinxdocs
: $(MANUAL_BUILDDIR
)/devel
/index.html \
1080 $(MANUAL_BUILDDIR
)/interop
/index.html \
1081 $(MANUAL_BUILDDIR
)/specs
/index.html \
1082 $(MANUAL_BUILDDIR
)/system
/index.html \
1083 $(MANUAL_BUILDDIR
)/tools
/index.html \
1084 $(MANUAL_BUILDDIR
)/user
/index.html
1086 # Canned command to build a single manual
1087 # Arguments: $1 = manual name, $2 = Sphinx builder ('html' or 'man')
1088 # Note the use of different doctree for each (manual, builder) tuple;
1089 # this works around Sphinx not handling parallel invocation on
1090 # a single doctree: https://github.com/sphinx-doc/sphinx/issues/2946
1091 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")
1092 # We assume all RST files in the manual's directory are used in it
1093 manual-deps
= $(wildcard $(SRC_PATH
)/docs
/$1/*.rst
$(SRC_PATH
)/docs
/$1/*/*.rst
) \
1094 $(SRC_PATH
)/docs
/defs.rst.inc \
1095 $(SRC_PATH
)/docs
/$1/conf.py
$(SRC_PATH
)/docs
/conf.py \
1096 $(SRC_PATH
)/docs
/sphinx
/*.py
1097 # Macro to write out the rule and dependencies for building manpages
1098 # Usage: $(call define-manpage-rule,manualname,manpage1 manpage2...[,extradeps])
1099 # 'extradeps' is optional, and specifies extra files (eg .hx files) that
1100 # the manual page depends on.
1101 define define-manpage-rule
1102 $(call atomic
,$(foreach manpage
,$2,$(MANUAL_BUILDDIR
)/$1/$(manpage
)),$(call manual-deps
,$1) $3)
1103 $(call build-manual
,$1,man
)
1106 $(MANUAL_BUILDDIR
)/devel
/index.html
: $(call manual-deps
,devel
)
1107 $(call build-manual
,devel
,html
)
1109 $(MANUAL_BUILDDIR
)/interop
/index.html
: $(call manual-deps
,interop
)
1110 $(call build-manual
,interop
,html
)
1112 $(MANUAL_BUILDDIR
)/specs
/index.html
: $(call manual-deps
,specs
)
1113 $(call build-manual
,specs
,html
)
1115 $(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
1116 $(call build-manual
,system
,html
)
1118 $(MANUAL_BUILDDIR
)/tools
/index.html
: $(call manual-deps
,tools
) $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/docs
/qemu-option-trace.rst.inc
1119 $(call build-manual
,tools
,html
)
1121 $(MANUAL_BUILDDIR
)/user
/index.html
: $(call manual-deps
,user
)
1122 $(call build-manual
,user
,html
)
1124 $(call define-manpage-rule
,interop
,qemu-ga
.8)
1126 $(call define-manpage-rule
,system
,qemu
.1 qemu-block-drivers
.7 qemu-cpu-models
.7)
1128 $(call define-manpage-rule
,tools
,\
1129 qemu-img
.1 qemu-nbd
.8 qemu-trace-stap
.1\
1130 virtiofsd
.1 virtfs-proxy-helper
.1,\
1131 $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/docs
/qemu-option-trace.rst.inc
)
1133 $(MANUAL_BUILDDIR
)/index.html
: $(SRC_PATH
)/docs
/index.html.in qemu-version.h
1134 @mkdir
-p
"$(MANUAL_BUILDDIR)"
1135 $(call quiet-command
, sed
"s|@@VERSION@@|${VERSION}|g" $< >$@
, \
1138 docs
/interop
/qemu-qmp-qapi.texi
: qapi
/qapi-doc.texi
1141 docs
/interop
/qemu-ga-qapi.texi
: qga
/qapi-generated
/qga-qapi-doc.texi
1144 html
: docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html sphinxdocs
1145 info: docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-ga-ref.
info
1146 pdf
: docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
1147 txt
: docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
1149 docs
/interop
/qemu-ga-ref.
dvi docs
/interop
/qemu-ga-ref.html \
1150 docs
/interop
/qemu-ga-ref.
info docs
/interop
/qemu-ga-ref.pdf \
1151 docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7: \
1152 docs
/interop
/qemu-ga-ref.texi docs
/interop
/qemu-ga-qapi.texi
1154 docs
/interop
/qemu-qmp-ref.
dvi docs
/interop
/qemu-qmp-ref.html \
1155 docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-qmp-ref.pdf \
1156 docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7: \
1157 docs
/interop
/qemu-qmp-ref.texi docs
/interop
/qemu-qmp-qapi.texi
1159 $(filter %.1 %.7 %.8,$(DOCS
)): scripts
/texi2pod.pl
1163 %/coverage-report.html
:
1165 $(call quiet-command
,\
1166 gcovr
-r
$(SRC_PATH
) \
1167 $(foreach t
, $(TARGET_DIRS
), --object-directory
$(BUILD_DIR
)/$(t
)) \
1168 --object-directory
$(BUILD_DIR
) \
1169 -p
--html
--html-details
-o
$@
, \
1170 "GEN", "coverage-report.html")
1172 .PHONY
: coverage-report
1173 coverage-report
: $(CURDIR
)/reports
/coverage
/coverage-report.html
1177 INSTALLER
= qemu-setup-
$(VERSION
)$(EXESUF
)
1179 nsisflags
= -V2
-NOCD
1181 ifneq ($(wildcard $(SRC_PATH
)/dll
),)
1182 ifeq ($(ARCH
),x86_64
)
1183 # 64 bit executables
1184 DLL_PATH
= $(SRC_PATH
)/dll
/w64
1187 # 32 bit executables
1188 DLL_PATH
= $(SRC_PATH
)/dll
/w32
1193 installer
: $(INSTALLER
)
1195 INSTDIR
=/tmp
/qemu-nsis
1197 $(INSTALLER
): $(SRC_PATH
)/qemu.nsi
1198 $(MAKE
) install DESTDIR
=${INSTDIR}
1200 (cd
${INSTDIR}/${bindir}; \
1201 for i in
*.exe
; do \
1202 $(SIGNCODE
) $${i}; \
1206 (cd
${INSTDIR}/${bindir}; \
1207 for i in qemu-system-
*.exe
; do \
1209 arch
=$${arch
#qemu-system-}; \
1210 echo Section
\"$$arch\" Section_
$$arch; \
1211 echo SetOutPath
\"\
$$INSTDIR\"; \
1212 echo File
\"\
$${BINDIR}\\$$i\"; \
1215 ) >${INSTDIR}/${bindir}/system-emulations.nsh
1216 makensis
$(nsisflags
) \
1217 $(if
$(BUILD_DOCS
),-DCONFIG_DOCUMENTATION
="y") \
1218 $(if
$(CONFIG_GTK
),-DCONFIG_GTK
="y") \
1219 -DBINDIR
="${INSTDIR}/${bindir}" \
1220 $(if
$(DLL_PATH
),-DDLLDIR
="$(DLL_PATH)") \
1221 -DSRCDIR
="$(SRC_PATH)" \
1222 -DOUTFILE
="$(INSTALLER)" \
1223 -DDISPLAYVERSION
="$(VERSION)" \
1224 $(SRC_PATH
)/qemu.nsi
1227 $(SIGNCODE
) $(INSTALLER
)
1231 # Add a dependency on the generated files, so that they are always
1232 # rebuilt before other object files
1233 ifneq ($(wildcard config-host.mak
),)
1234 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
1235 Makefile
: $(generated-files-y
)
1239 .SECONDARY
: $(TRACE_HEADERS
) $(TRACE_HEADERS
:%=%-timestamp
) \
1240 $(TRACE_SOURCES
) $(TRACE_SOURCES
:%=%-timestamp
) \
1241 $(TRACE_DTRACE
) $(TRACE_DTRACE
:%=%-timestamp
)
1243 # Include automatically generated dependency files
1244 # Dependencies in Makefile.objs files come from our recursive subdir rules
1245 -include $(wildcard *.d tests
/*.d
)
1247 include $(SRC_PATH
)/tests
/docker
/Makefile.
include
1248 include $(SRC_PATH
)/tests
/vm
/Makefile.
include
1250 print-help-run
= printf
" %-30s - %s\\n" "$1" "$2"
1251 print-help
= $(quiet-@
)$(call print-help-run
,$1,$2)
1255 @echo
'Generic targets:'
1256 $(call print-help
,all,Build
all)
1257 ifdef CONFIG_MODULES
1258 $(call print-help
,modules
,Build
all modules
)
1260 $(call print-help
,dir/file.o
,Build specified target only
)
1261 $(call print-help
,install,Install QEMU
, documentation and tools
)
1262 $(call print-help
,ctags
/TAGS
,Generate
tags file for editors
)
1263 $(call print-help
,cscope
,Generate cscope index
)
1264 $(call print-help
,sparse
,Run sparse on the QEMU source
)
1266 @
$(if
$(TARGET_DIRS
), \
1267 echo
'Architecture specific targets:'; \
1268 $(foreach t
, $(TARGET_DIRS
), \
1269 $(call print-help-run
,$(t
)/all,Build for
$(t
)); \
1270 $(if
$(CONFIG_FUZZ
), \
1271 $(if
$(findstring softmmu
,$(t
)), \
1272 $(call print-help-run
,$(t
)/fuzz
,Build fuzzer for
$(t
)); \
1275 @
$(if
$(HELPERS-y
), \
1276 echo
'Helper targets:'; \
1277 $(foreach t
, $(HELPERS-y
), \
1278 $(call print-help-run
,$(t
),Build
$(shell basename $(t
)));) \
1281 echo
'Tools targets:'; \
1282 $(foreach t
, $(TOOLS
), \
1283 $(call print-help-run
,$(t
),Build
$(shell basename $(t
)) tool
);) \
1285 @echo
'Cleaning targets:'
1286 $(call print-help
,clean,Remove most generated files but keep the config
)
1287 $(call print-help
,distclean,Remove
all generated files
)
1288 $(call print-help
,dist,Build a distributable tarball
)
1290 @echo
'Test targets:'
1291 $(call print-help
,check,Run
all tests
(check-help for details
))
1292 $(call print-help
,docker
,Help about targets running tests inside containers
)
1293 $(call print-help
,vm-help
,Help about targets running tests inside VM
)
1295 @echo
'Documentation targets:'
1296 $(call print-help
,html
info pdf txt
,Build documentation in specified format
)
1299 @echo
'Windows targets:'
1300 $(call print-help
,installer
,Build NSIS-based installer for QEMU
)
1301 ifdef QEMU_GA_MSI_ENABLED
1302 $(call print-help
,msi
,Build MSI-based installer for qemu-ga
)
1306 $(call print-help
,$(MAKE
) [targets
],(quiet build
, default
))
1307 $(call print-help
,$(MAKE
) V
=1 [targets
],(verbose build
))