3 # Always point to the root of the build tree (needs GNU make).
6 # Before including a proper config-host.mak, assume we are in the source tree
9 UNCHECKED_GOALS
:= %clean TAGS cscope ctags docker docker-
%
11 # All following code might depend on configuration variables
12 ifneq ($(wildcard config-host.mak
),)
13 # Put the all: rule here so that config-host.mak can contain dependencies.
15 include config-host.mak
19 .PHONY
: git-submodule-update
21 git_module_status
:= $(shell \
23 GIT
="$(GIT)" .
/scripts
/git-submodule.sh status
$(GIT_SUBMODULES
); \
27 ifeq (1,$(git_module_status
))
28 ifeq (no
,$(GIT_UPDATE
))
30 $(call quiet-command
, \
32 echo
"GIT submodule checkout is out of date. Please run" && \
33 echo
" scripts/git-submodule.sh update $(GIT_SUBMODULES)" && \
34 echo
"from the source directory checkout $(SRC_PATH)" && \
39 $(call quiet-command
, \
40 (cd
$(SRC_PATH
) && GIT
="$(GIT)" .
/scripts
/git-submodule.sh update
$(GIT_SUBMODULES
)), \
41 "GIT","$(GIT_SUBMODULES)")
45 .git-submodule-status
: git-submodule-update config-host.mak
47 # Check that we're not trying to do an out-of-tree build from
48 # a tree that's been used for an in-tree build.
49 ifneq ($(realpath
$(SRC_PATH
)),$(realpath .
))
50 ifneq ($(wildcard $(SRC_PATH
)/config-host.mak
),)
51 $(error This is an out of tree build but your source tree
($(SRC_PATH
)) \
52 seems to have been used for an in-tree build. You can fix this by running \
53 "make distclean && rm -rf *-linux-user *-softmmu" in your source tree
)
57 CONFIG_SOFTMMU
:= $(if
$(filter %-softmmu
,$(TARGET_DIRS
)),y
)
58 CONFIG_USER_ONLY
:= $(if
$(filter %-user
,$(TARGET_DIRS
)),y
)
59 CONFIG_XEN
:= $(CONFIG_XEN_BACKEND
)
61 -include config-all-devices.mak
62 -include config-all-disas.mak
64 config-host.mak
: $(SRC_PATH
)/configure
$(SRC_PATH
)/pc-bios
65 @echo
$@ is out-of-date
, running configure
66 @
# TODO: The next lines include code which supports a smooth
67 @
# transition from old configurations without config.status.
68 @
# This code can be removed after QEMU 1.7.
69 @if
test -x config.status
; then \
72 sed
-n
"/.*Configured with/s/[^:]*: //p" $@ | sh
; \
76 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
77 @echo
"Please call configure before running make!"
82 include $(SRC_PATH
)/rules.mak
84 GENERATED_FILES
= qemu-version.h config-host.h qemu-options.def
85 GENERATED_FILES
+= qmp-commands.h qapi-types.h qapi-visit.h qapi-event.h
86 GENERATED_FILES
+= qmp-marshal.c qapi-types.c qapi-visit.c qapi-event.c
87 GENERATED_FILES
+= qmp-introspect.h
88 GENERATED_FILES
+= qmp-introspect.c
90 GENERATED_FILES
+= trace
/generated-tcg-tracers.h
92 GENERATED_FILES
+= trace
/generated-helpers-wrappers.h
93 GENERATED_FILES
+= trace
/generated-helpers.h
94 GENERATED_FILES
+= trace
/generated-helpers.c
96 ifdef CONFIG_TRACE_UST
97 GENERATED_FILES
+= trace-ust-all.h
98 GENERATED_FILES
+= trace-ust-all.c
101 GENERATED_FILES
+= module_block.h
103 TRACE_HEADERS
= trace-root.h
$(trace-events-subdirs
:%=%/trace.h
)
104 TRACE_SOURCES
= trace-root.c
$(trace-events-subdirs
:%=%/trace.c
)
106 ifdef CONFIG_TRACE_DTRACE
107 TRACE_HEADERS
+= trace-dtrace-root.h
$(trace-events-subdirs
:%=%/trace-dtrace.h
)
108 TRACE_DTRACE
+= trace-dtrace-root.dtrace
$(trace-events-subdirs
:%=%/trace-dtrace.dtrace
)
110 ifdef CONFIG_TRACE_UST
111 TRACE_HEADERS
+= trace-ust-root.h
$(trace-events-subdirs
:%=%/trace-ust.h
)
114 GENERATED_FILES
+= $(TRACE_HEADERS
)
115 GENERATED_FILES
+= $(TRACE_SOURCES
)
116 GENERATED_FILES
+= $(BUILD_DIR
)/trace-events-all
117 GENERATED_FILES
+= .git-submodule-status
119 trace-group-name
= $(shell dirname
$1 | sed
-e
's/[^a-zA-Z0-9]/_/g')
121 tracetool-y
= $(SRC_PATH
)/scripts
/tracetool.py
122 tracetool-y
+= $(shell find
$(SRC_PATH
)/scripts
/tracetool
-name
"*.py")
124 %/trace.h
: %/trace.h-timestamp
125 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
126 %/trace.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
127 $(call quiet-command
,$(TRACETOOL
) \
128 --group
=$(call trace-group-name
,$@
) \
130 --backends
=$(TRACE_BACKENDS
) \
131 $< > $@
,"GEN","$(@:%-timestamp=%)")
133 %/trace.c
: %/trace.c-timestamp
134 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
135 %/trace.c-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
136 $(call quiet-command
,$(TRACETOOL
) \
137 --group
=$(call trace-group-name
,$@
) \
139 --backends
=$(TRACE_BACKENDS
) \
140 $< > $@
,"GEN","$(@:%-timestamp=%)")
142 %/trace-ust.h
: %/trace-ust.h-timestamp
143 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
144 %/trace-ust.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
145 $(call quiet-command
,$(TRACETOOL
) \
146 --group
=$(call trace-group-name
,$@
) \
147 --format
=ust-events-h \
148 --backends
=$(TRACE_BACKENDS
) \
149 $< > $@
,"GEN","$(@:%-timestamp=%)")
151 %/trace-dtrace.dtrace
: %/trace-dtrace.dtrace-timestamp
152 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
153 %/trace-dtrace.dtrace-timestamp
: $(SRC_PATH
)/%/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
154 $(call quiet-command
,$(TRACETOOL
) \
155 --group
=$(call trace-group-name
,$@
) \
157 --backends
=$(TRACE_BACKENDS
) \
158 $< > $@
,"GEN","$(@:%-timestamp=%)")
160 %/trace-dtrace.h
: %/trace-dtrace.dtrace
$(tracetool-y
)
161 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
163 %/trace-dtrace.o
: %/trace-dtrace.dtrace
$(tracetool-y
)
166 trace-root.h
: trace-root.h-timestamp
167 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
168 trace-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
169 $(call quiet-command
,$(TRACETOOL
) \
172 --backends
=$(TRACE_BACKENDS
) \
173 $< > $@
,"GEN","$(@:%-timestamp=%)")
175 trace-root.c
: trace-root.c-timestamp
176 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
177 trace-root.c-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
178 $(call quiet-command
,$(TRACETOOL
) \
181 --backends
=$(TRACE_BACKENDS
) \
182 $< > $@
,"GEN","$(@:%-timestamp=%)")
184 trace-ust-root.h
: trace-ust-root.h-timestamp
185 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
186 trace-ust-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
187 $(call quiet-command
,$(TRACETOOL
) \
189 --format
=ust-events-h \
190 --backends
=$(TRACE_BACKENDS
) \
191 $< > $@
,"GEN","$(@:%-timestamp=%)")
193 trace-ust-all.h
: trace-ust-all.h-timestamp
194 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
195 trace-ust-all.h-timestamp
: $(trace-events-files
) $(tracetool-y
)
196 $(call quiet-command
,$(TRACETOOL
) \
198 --format
=ust-events-h \
199 --backends
=$(TRACE_BACKENDS
) \
200 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
202 trace-ust-all.c
: trace-ust-all.c-timestamp
203 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
204 trace-ust-all.c-timestamp
: $(trace-events-files
) $(tracetool-y
)
205 $(call quiet-command
,$(TRACETOOL
) \
207 --format
=ust-events-c \
208 --backends
=$(TRACE_BACKENDS
) \
209 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
211 trace-dtrace-root.dtrace
: trace-dtrace-root.dtrace-timestamp
212 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
213 trace-dtrace-root.dtrace-timestamp
: $(SRC_PATH
)/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
214 $(call quiet-command
,$(TRACETOOL
) \
217 --backends
=$(TRACE_BACKENDS
) \
218 $< > $@
,"GEN","$(@:%-timestamp=%)")
220 trace-dtrace-root.h
: trace-dtrace-root.dtrace
221 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
223 trace-dtrace-root.o
: trace-dtrace-root.dtrace
225 KEYCODEMAP_GEN
= $(SRC_PATH
)/ui
/keycodemapdb
/tools
/keymap-gen
226 KEYCODEMAP_CSV
= $(SRC_PATH
)/ui
/keycodemapdb
/data
/keymaps.csv
229 ui
/input-keymap-linux-to-qcode.c \
230 ui
/input-keymap-qcode-to-qnum.c \
231 ui
/input-keymap-qnum-to-qcode.c \
234 GENERATED_FILES
+= $(KEYCODEMAP_FILES
)
236 ui
/input-keymap-
%.c
: $(KEYCODEMAP_GEN
) $(KEYCODEMAP_CSV
) $(SRC_PATH
)/ui
/Makefile.objs
237 $(call quiet-command
,\
238 src
=$$(echo
$@ | sed
-E
-e
"s,^ui/input-keymap-(.+)-to-(.+)\.c$$,\1,") && \
239 dst
=$$(echo
$@ | sed
-E
-e
"s,^ui/input-keymap-(.+)-to-(.+)\.c$$,\2,") && \
240 test -e
$(KEYCODEMAP_GEN
) && \
241 $(PYTHON
) $(KEYCODEMAP_GEN
) \
243 --varname qemu_input_map_
$${src}_to_
$${dst} \
244 code-map
$(KEYCODEMAP_CSV
) $${src} $${dst} \
245 > $@ ||
rm -f
$@
, "GEN", "$@")
247 $(KEYCODEMAP_GEN
): .git-submodule-status
248 $(KEYCODEMAP_CSV
): .git-submodule-status
250 # Don't try to regenerate Makefile or configure
251 # We don't generate any of them
255 .PHONY
: all clean cscope
dist distclean doc
dvi html \
256 info install install-doc install-tools msi \
257 pdf txt recurse-all speed
test tools FORCE
259 $(call set-vpath
, $(SRC_PATH
))
261 LIBS
+=-lz
$(LIBS_TOOLS
)
263 HELPERS-
$(CONFIG_LINUX
) = qemu-bridge-helper
$(EXESUF
)
265 DOCS
=qemu-doc.html qemu-doc.txt qemu
.1 qemu-img
.1 qemu-nbd
.8 qemu-ga
.8
266 DOCS
+=docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7
267 DOCS
+=docs
/interop
/qemu-ga-ref.html docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7
268 DOCS
+=docs
/qemu-block-drivers
.7
270 DOCS
+=fsdev
/virtfs-proxy-helper
.1
273 SUBDIR_MAKEFLAGS
=$(if
$(V
),,--no-print-directory
) BUILD_DIR
=$(BUILD_DIR
)
274 SUBDIR_DEVICES_MAK
=$(patsubst %, %/config-devices.mak
, $(TARGET_DIRS
))
275 SUBDIR_DEVICES_MAK_DEP
=$(patsubst %, %-config-devices.mak.d
, $(TARGET_DIRS
))
277 ifeq ($(SUBDIR_DEVICES_MAK
),)
278 config-all-devices.mak
:
279 $(call quiet-command
,echo
'# no devices' > $@
,"GEN","$@")
281 config-all-devices.mak
: $(SUBDIR_DEVICES_MAK
)
282 $(call quiet-command
, sed
-n \
283 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \
284 $(SUBDIR_DEVICES_MAK
) |
sort -u
> $@
, \
288 -include $(SUBDIR_DEVICES_MAK_DEP
)
290 %/config-devices.mak
: default-configs
/%.mak
$(SRC_PATH
)/scripts
/make_device_config.sh
291 $(call quiet-command
, \
292 $(SHELL
) $(SRC_PATH
)/scripts
/make_device_config.sh
$< $*-config-devices.mak.d
$@
> $@.tmp
,"GEN","$@.tmp")
293 $(call quiet-command
, if
test -f
$@
; then \
294 if cmp
-s
$@.old
$@
; then \
298 if
test -f
$@.old
; then \
299 echo
"WARNING: $@ (user modified) out of date.";\
301 echo
"WARNING: $@ out of date.";\
303 echo
"Run \"make defconfig\" to regenerate."; \
312 rm -f config-all-devices.mak
$(SUBDIR_DEVICES_MAK
)
314 ifneq ($(wildcard config-host.mak
),)
315 include $(SRC_PATH
)/Makefile.objs
318 dummy
:= $(call unnest-vars
,, \
323 ivshmem-client-obj-y \
324 ivshmem-server-obj-y \
325 libvhost-user-obj-y \
326 vhost-user-scsi-obj-y \
338 include $(SRC_PATH
)/tests
/Makefile.
include
356 qemu-version.h
: FORCE
357 $(call quiet-command
, \
359 printf
'#define QEMU_PKGVERSION '; \
360 if
test -n
"$(PKGVERSION)"; then \
361 printf
'"$(PKGVERSION)"\n'; \
363 if
test -d .git
; then \
365 git describe
--match
'v*' 2>/dev
/null | tr
-d
'\n'; \
366 if
! git diff-index
--quiet HEAD
&>/dev
/null
; then \
367 printf
-- '-dirty'; \
374 $(call quiet-command
, if
! cmp
-s
$@
$@.tmp
; then \
380 config-host.h
: config-host.h-timestamp
381 config-host.h-timestamp
: config-host.mak
382 qemu-options.def
: $(SRC_PATH
)/qemu-options.hx
$(SRC_PATH
)/scripts
/hxtool
383 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
385 SUBDIR_RULES
=$(patsubst %,subdir-
%, $(TARGET_DIRS
))
386 SOFTMMU_SUBDIR_RULES
=$(filter %-softmmu
,$(SUBDIR_RULES
))
388 $(SOFTMMU_SUBDIR_RULES
): $(block-obj-y
)
389 $(SOFTMMU_SUBDIR_RULES
): $(crypto-obj-y
)
390 $(SOFTMMU_SUBDIR_RULES
): $(io-obj-y
)
391 $(SOFTMMU_SUBDIR_RULES
): config-all-devices.mak
394 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$* V
="$(V)" TARGET_DIR
="$*/" all,)
396 DTC_MAKE_ARGS
=-I
$(SRC_PATH
)/dtc VPATH
=$(SRC_PATH
)/dtc
-C dtc V
="$(V)" LIBFDT_srcdir
=$(SRC_PATH
)/dtc
/libfdt
397 DTC_CFLAGS
=$(CFLAGS
) $(QEMU_CFLAGS
)
398 DTC_CPPFLAGS
=-I
$(BUILD_DIR
)/dtc
-I
$(SRC_PATH
)/dtc
-I
$(SRC_PATH
)/dtc
/libfdt
400 subdir-dtc
: .git-submodule-status dtc
/libfdt dtc
/tests
401 $(call quiet-command
,$(MAKE
) $(DTC_MAKE_ARGS
) CPPFLAGS
="$(DTC_CPPFLAGS)" CFLAGS
="$(DTC_CFLAGS)" LDFLAGS
="$(LDFLAGS)" ARFLAGS
="$(ARFLAGS)" CC
="$(CC)" AR
="$(AR)" LD
="$(LD)" $(SUBDIR_MAKEFLAGS
) libfdt
/libfdt.a
,)
403 dtc
/%: .git-submodule-status
406 # Overriding CFLAGS causes us to lose defines added in the sub-makefile.
407 # Not overriding CFLAGS leads to mis-matches between compilation modes.
408 # Therefore we replicate some of the logic in the sub-makefile.
409 # Remove all the extra -Warning flags that QEMU uses that Capstone doesn't;
410 # no need to annoy QEMU developers with such things.
411 CAP_CFLAGS
= $(patsubst -W
%,,$(CFLAGS
) $(QEMU_CFLAGS
))
412 CAP_CFLAGS
+= -DCAPSTONE_USE_SYS_DYN_MEM
413 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM
414 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM64
415 CAP_CFLAGS
+= -DCAPSTONE_HAS_POWERPC
416 CAP_CFLAGS
+= -DCAPSTONE_HAS_X86
418 subdir-capstone
: .git-submodule-status
419 $(call quiet-command
,$(MAKE
) -C
$(SRC_PATH
)/capstone CAPSTONE_SHARED
=no BUILDDIR
="$(BUILD_DIR)/capstone" CC
="$(CC)" AR
="$(AR)" LD
="$(LD)" CFLAGS
="$(CAP_CFLAGS)" $(SUBDIR_MAKEFLAGS
) $(BUILD_DIR
)/capstone
/$(LIBCAPSTONE
))
421 $(SUBDIR_RULES
): libqemuutil.a
$(common-obj-y
) $(chardev-obj-y
) \
422 $(qom-obj-y
) $(crypto-aes-obj-
$(CONFIG_USER_ONLY
))
424 ROMSUBDIR_RULES
=$(patsubst %,romsubdir-
%, $(ROMS
))
425 # Only keep -O and -g cflags
427 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C pc-bios
/$* V
="$(V)" TARGET_DIR
="$*/" CFLAGS
="$(filter -O% -g%,$(CFLAGS))",)
429 ALL_SUBDIRS
=$(TARGET_DIRS
) $(patsubst %,pc-bios
/%, $(ROMS
))
431 recurse-all
: $(SUBDIR_RULES
) $(ROMSUBDIR_RULES
)
433 $(BUILD_DIR
)/version.o
: $(SRC_PATH
)/version.rc config-host.h
434 $(call quiet-command
,$(WINDRES
) -I
$(BUILD_DIR
) -o
$@
$<,"RC","version.o")
436 Makefile
: $(version-obj-y
)
438 ######################################################################
441 libqemuutil.a
: $(util-obj-y
) $(trace-obj-y
) $(stub-obj-y
)
442 libvhost-user.a
: $(libvhost-user-obj-y
)
444 ######################################################################
446 COMMON_LDADDS
= libqemuutil.a
448 qemu-img.o
: qemu-img-cmds.h
450 qemu-img
$(EXESUF
): qemu-img.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
451 qemu-nbd
$(EXESUF
): qemu-nbd.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
452 qemu-io
$(EXESUF
): qemu-io.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
454 qemu-bridge-helper
$(EXESUF
): qemu-bridge-helper.o
$(COMMON_LDADDS
)
456 qemu-keymap
$(EXESUF
): qemu-keymap.o ui
/input-keymap.o
$(COMMON_LDADDS
)
458 fsdev
/virtfs-proxy-helper
$(EXESUF
): fsdev
/virtfs-proxy-helper.o fsdev
/9p-marshal.o fsdev
/9p-iov-marshal.o
$(COMMON_LDADDS
)
459 fsdev
/virtfs-proxy-helper
$(EXESUF
): LIBS
+= -lcap
461 scsi
/qemu-pr-helper
$(EXESUF
): scsi
/qemu-pr-helper.o scsi
/utils.o
$(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
463 scsi
/qemu-pr-helper
$(EXESUF
): LIBS
+= -ludev
-lmultipath
-lmpathpersist
466 qemu-img-cmds.h
: $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/scripts
/hxtool
467 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
469 qemu-ga
$(EXESUF
): LIBS
= $(LIBS_QGA
)
470 qemu-ga
$(EXESUF
): QEMU_CFLAGS
+= -I qga
/qapi-generated
472 qemu-keymap
$(EXESUF
): LIBS
+= $(XKBCOMMON_LIBS
)
473 qemu-keymap
$(EXESUF
): QEMU_CFLAGS
+= $(XKBCOMMON_CFLAGS
)
475 gen-out-type
= $(subst .
,-,$(suffix $@
))
477 qapi-py
= $(SRC_PATH
)/scripts
/qapi.py
$(SRC_PATH
)/scripts
/ordereddict.py
479 qga
/qapi-generated
/qga-qapi-types.c qga
/qapi-generated
/qga-qapi-types.h
:\
480 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
481 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
482 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
484 qga
/qapi-generated
/qga-qapi-visit.c qga
/qapi-generated
/qga-qapi-visit.h
:\
485 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
486 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
487 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
489 qga
/qapi-generated
/qga-qmp-commands.h qga
/qapi-generated
/qga-qmp-marshal.c
:\
490 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
491 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
492 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
495 qapi-modules
= $(SRC_PATH
)/qapi-schema.json
$(SRC_PATH
)/qapi
/common.json \
496 $(SRC_PATH
)/qapi
/block.json
$(SRC_PATH
)/qapi
/block-core.json \
497 $(SRC_PATH
)/qapi
/char.json \
498 $(SRC_PATH
)/qapi
/crypto.json \
499 $(SRC_PATH
)/qapi
/introspect.json \
500 $(SRC_PATH
)/qapi
/migration.json \
501 $(SRC_PATH
)/qapi
/net.json \
502 $(SRC_PATH
)/qapi
/rocker.json \
503 $(SRC_PATH
)/qapi
/run-state.json \
504 $(SRC_PATH
)/qapi
/sockets.json \
505 $(SRC_PATH
)/qapi
/tpm.json \
506 $(SRC_PATH
)/qapi
/trace.json \
507 $(SRC_PATH
)/qapi
/transaction.json \
508 $(SRC_PATH
)/qapi
/ui.json
510 qapi-types.c qapi-types.h
:\
511 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
512 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
513 $(gen-out-type
) -o
"." -b
$<, \
515 qapi-visit.c qapi-visit.h
:\
516 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
517 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
518 $(gen-out-type
) -o
"." -b
$<, \
520 qapi-event.c qapi-event.h
:\
521 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-event.py
$(qapi-py
)
522 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-event.py \
523 $(gen-out-type
) -o
"." $<, \
525 qmp-commands.h qmp-marshal.c
:\
526 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
527 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
528 $(gen-out-type
) -o
"." $<, \
530 qmp-introspect.h qmp-introspect.c
:\
531 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-introspect.py
$(qapi-py
)
532 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-introspect.py \
533 $(gen-out-type
) -o
"." $<, \
536 QGALIB_GEN
=$(addprefix qga
/qapi-generated
/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h
)
537 $(qga-obj-y
): $(QGALIB_GEN
)
539 qemu-ga
$(EXESUF
): $(qga-obj-y
) $(COMMON_LDADDS
)
542 ifdef QEMU_GA_MSI_ENABLED
543 QEMU_GA_MSI
=qemu-ga-
$(ARCH
).msi
547 $(QEMU_GA_MSI
): qemu-ga.exe
$(QGA_VSS_PROVIDER
)
549 $(QEMU_GA_MSI
): config-host.mak
551 $(QEMU_GA_MSI
): $(SRC_PATH
)/qga
/installer
/qemu-ga.wxs
552 $(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)" \
553 wixl
-o
$@
$(QEMU_GA_MSI_ARCH
) $(QEMU_GA_MSI_WITH_VSS
) $(QEMU_GA_MSI_MINGW_DLL_PATH
) $<,"WIXL","$@")
556 @echo
"MSI build not configured or dependency resolution failed (reconfigure with --enable-guest-agent-msi option)"
561 qemu-ga
: qemu-ga
$(EXESUF
) $(QGA_VSS_PROVIDER
) $(QEMU_GA_MSI
)
565 ivshmem-client
$(EXESUF
): $(ivshmem-client-obj-y
) $(COMMON_LDADDS
)
567 ivshmem-server
$(EXESUF
): $(ivshmem-server-obj-y
) $(COMMON_LDADDS
)
570 vhost-user-scsi
$(EXESUF
): $(vhost-user-scsi-obj-y
) libvhost-user.a
573 module_block.h
: $(SRC_PATH
)/scripts
/modules
/module_block.py config-host.mak
574 $(call quiet-command
,$(PYTHON
) $< $@ \
575 $(addprefix $(SRC_PATH
)/,$(patsubst %.mo
,%.c
,$(block-obj-m
))), \
579 # avoid old build problems by removing potentially incorrect old files
580 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
581 rm -f qemu-options.def
583 find . \
( -name
'*.so' -o
-name
'*.dll' -o
-name
'*.mo' -o
-name
'*.[oda]' \
) -type f
-exec
rm {} +
584 rm -f
$(filter-out %.tlb
,$(TOOLS
)) $(HELPERS-y
) qemu-ga TAGS cscope.
* *.pod
*~
*/*~
585 rm -f fsdev
/*.pod scsi
/*.pod
586 rm -f qemu-img-cmds.h
587 rm -f ui
/shader
/*-vert.h ui
/shader
/*-frag.h
588 @
# May not be present in GENERATED_FILES
589 rm -f trace
/generated-tracers-dtrace.dtrace
*
590 rm -f trace
/generated-tracers-dtrace.h
*
591 rm -f
$(foreach f
,$(GENERATED_FILES
),$(f
) $(f
)-timestamp
)
592 rm -rf qapi-generated
593 rm -rf qga
/qapi-generated
594 for d in
$(ALL_SUBDIRS
); do \
595 if
test -d
$$d; then
$(MAKE
) -C
$$d $@ || exit
1; fi
; \
596 rm -f
$$d/qemu-options.def
; \
598 rm -f
$(SUBDIR_DEVICES_MAK
) config-all-devices.mak
600 VERSION ?
= $(shell cat VERSION
)
602 dist: qemu-
$(VERSION
).
tar.bz2
605 $(SRC_PATH
)/scripts
/make-release
"$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
608 rm -f config-host.mak config-host.h
* config-host.
ld $(DOCS
) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi qemu-monitor-info.texi
609 rm -f config-all-devices.mak config-all-disas.mak config.status
610 rm -f po
/*.mo tests
/qemu-iotests
/common.env
611 rm -f roms
/seabios
/config.mak roms
/vgabios
/config.mak
612 rm -f qemu-doc.
info qemu-doc.aux qemu-doc.cp qemu-doc.cps
613 rm -f qemu-doc.fn qemu-doc.fns qemu-doc.
info qemu-doc.ky qemu-doc.kys
614 rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp
615 rm -f qemu-doc.vr qemu-doc.txt
617 rm -f linux-headers
/asm
618 rm -f docs
/version.texi
619 rm -f docs
/interop
/qemu-ga-qapi.texi docs
/interop
/qemu-qmp-qapi.texi
620 rm -f docs
/interop
/qemu-qmp-ref
.7 docs
/interop
/qemu-ga-ref
.7
621 rm -f docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
622 rm -f docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
623 rm -f docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html
624 rm -f docs
/qemu-block-drivers
.7
625 for d in
$(TARGET_DIRS
); do \
626 rm -rf
$$d || exit
1 ; \
629 if
test -f dtc
/version_gen.h
; then
$(MAKE
) $(DTC_MAKE_ARGS
) clean; fi
631 KEYMAPS
=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
632 ar de en-us fi fr-be hr it lv nl pl ru th \
633 common de-ch es fo fr-ca hu ja mk nl-be pt sl tr \
637 BLOBS
=bios.bin bios-256k.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
638 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin vgabios-virtio.bin \
640 ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc QEMU
,tcx.bin QEMU
,cgthree.bin \
641 pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
642 pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
643 efi-e1000.rom efi-eepro100.rom efi-ne2k_pci.rom \
644 efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
645 efi-e1000e.rom efi-vmxnet3.rom \
646 qemu-icon.bmp qemu_logo_no_text.svg \
647 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
648 multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin \
649 s390-ccw.img s390-netboot.img \
650 spapr-rtas.bin slof.bin skiboot.lid \
659 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)"
660 $(INSTALL_DATA
) qemu-doc.html
"$(DESTDIR)$(qemu_docdir)"
661 $(INSTALL_DATA
) qemu-doc.txt
"$(DESTDIR)$(qemu_docdir)"
662 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.html
"$(DESTDIR)$(qemu_docdir)"
663 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.txt
"$(DESTDIR)$(qemu_docdir)"
665 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
666 $(INSTALL_DATA
) qemu
.1 "$(DESTDIR)$(mandir)/man1"
667 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man7"
668 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref
.7 "$(DESTDIR)$(mandir)/man7"
669 $(INSTALL_DATA
) docs
/qemu-block-drivers
.7 "$(DESTDIR)$(mandir)/man7"
671 $(INSTALL_DATA
) qemu-img
.1 "$(DESTDIR)$(mandir)/man1"
672 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man8"
673 $(INSTALL_DATA
) qemu-nbd
.8 "$(DESTDIR)$(mandir)/man8"
675 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
676 $(INSTALL_DATA
) qemu-ga
.8 "$(DESTDIR)$(mandir)/man8"
677 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.html
"$(DESTDIR)$(qemu_docdir)"
678 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.txt
"$(DESTDIR)$(qemu_docdir)"
679 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref
.7 "$(DESTDIR)$(mandir)/man7"
683 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
684 $(INSTALL_DATA
) fsdev
/virtfs-proxy-helper
.1 "$(DESTDIR)$(mandir)/man1"
688 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)"
690 install-localstatedir
:
692 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
693 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_localstatedir)"/run
699 $(call install-prog
,$(filter-out qemu-ga
,$(TOOLS
)),$(DESTDIR
)$(bindir))
700 # qemu-ga is included in TOOLS, but we need special install rules for w32
702 install: all $(if
$(BUILD_DOCS
),install-doc
) $(if
$(BUILD_TOOLS
),install-tools
) \
703 install-datadir install-localstatedir
705 $(call install-prog
,$(subst qemu-ga
,qemu-ga
$(EXESUF
),$(TOOLS
)),$(DESTDIR
)$(bindir))
707 ifneq ($(CONFIG_MODULES
),)
708 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_moddir)"
709 for s in
$(modules-m
:.mo
=$(DSOSUF
)); do \
710 t
="$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
711 $(INSTALL_LIB
) $$s "$$t"; \
712 test -z
"$(STRIP)" ||
$(STRIP
) "$$t"; \
715 ifneq ($(HELPERS-y
),)
716 $(call install-prog
,$(HELPERS-y
),$(DESTDIR
)$(libexecdir
))
719 set
-e
; for x in
$(BLOBS
); do \
720 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/$$x "$(DESTDIR)$(qemu_datadir)"; \
723 ifeq ($(CONFIG_GTK
),y
)
726 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/keymaps"
727 set
-e
; for x in
$(KEYMAPS
); do \
728 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/keymaps
/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
730 $(INSTALL_DATA
) $(BUILD_DIR
)/trace-events-all
"$(DESTDIR)$(qemu_datadir)/trace-events-all"
731 for d in
$(TARGET_DIRS
); do \
732 $(MAKE
) $(SUBDIR_MAKEFLAGS
) TARGET_DIR
=$$d/ -C
$$d $@ || exit
1 ; \
735 # various test targets
737 $(MAKE
) -C tests
/tcg
$@
742 find
"$(SRC_PATH)" -name
'*.[hc]' -exec ctags
--append
{} +
747 find
"$(SRC_PATH)" -name
'*.[hc]' -exec etags
--append
{} +
750 rm -f
"$(SRC_PATH)"/cscope.
*
751 find
"$(SRC_PATH)/" -name
"*.[chsS]" -print | sed
's,^\./,,' > "$(SRC_PATH)/cscope.files"
752 cscope
-b
-i
"$(SRC_PATH)/cscope.files"
754 # opengl shader programs
755 ui
/shader
/%-vert.h
: $(SRC_PATH
)/ui
/shader
/%.vert
$(SRC_PATH
)/scripts
/shaderinclude.pl
757 $(call quiet-command
,\
758 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
761 ui
/shader
/%-frag.h
: $(SRC_PATH
)/ui
/shader
/%.frag
$(SRC_PATH
)/scripts
/shaderinclude.pl
763 $(call quiet-command
,\
764 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
767 ui
/shader.o
: $(SRC_PATH
)/ui
/shader.c \
768 ui
/shader
/texture-blit-vert.h \
769 ui
/shader
/texture-blit-flip-vert.h \
770 ui
/shader
/texture-blit-frag.h
774 MAKEINFOINCLUDES
= -I docs
-I
$(<D
) -I
$(@D
)
775 MAKEINFOFLAGS
=--no-split
--number-sections
$(MAKEINFOINCLUDES
)
776 TEXI2PODFLAGS
=$(MAKEINFOINCLUDES
) "-DVERSION=$(VERSION)"
777 TEXI2PDFFLAGS
=$(if
$(V
),,--quiet
) -I
$(SRC_PATH
) $(MAKEINFOINCLUDES
)
779 docs
/version.texi
: $(SRC_PATH
)/VERSION
780 $(call quiet-command
,echo
"@set VERSION $(VERSION)" > $@
,"GEN","$@")
782 %.html
: %.texi docs
/version.texi
783 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
784 --html
$< -o
$@
,"GEN","$@")
786 %.
info: %.texi docs
/version.texi
787 $(call quiet-command
,$(MAKEINFO
) $(MAKEINFOFLAGS
) $< -o
$@
,"GEN","$@")
789 %.txt
: %.texi docs
/version.texi
790 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
791 --plaintext
$< -o
$@
,"GEN","$@")
793 %.pdf
: %.texi docs
/version.texi
794 $(call quiet-command
,texi2pdf
$(TEXI2PDFFLAGS
) $< -o
$@
,"GEN","$@")
796 qemu-options.texi
: $(SRC_PATH
)/qemu-options.hx
$(SRC_PATH
)/scripts
/hxtool
797 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
799 qemu-monitor.texi
: $(SRC_PATH
)/hmp-commands.hx
$(SRC_PATH
)/scripts
/hxtool
800 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
802 qemu-monitor-info.texi
: $(SRC_PATH
)/hmp-commands-info.hx
$(SRC_PATH
)/scripts
/hxtool
803 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
805 qemu-img-cmds.texi
: $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/scripts
/hxtool
806 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
808 docs
/interop
/qemu-qmp-qapi.texi docs
/interop
/qemu-ga-qapi.texi
: $(SRC_PATH
)/scripts
/qapi2texi.py
$(qapi-py
)
810 docs
/interop
/qemu-qmp-qapi.texi
: $(qapi-modules
)
811 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi2texi.py
$< > $@
,"GEN","$@")
813 docs
/interop
/qemu-ga-qapi.texi
: $(SRC_PATH
)/qga
/qapi-schema.json
814 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi2texi.py
$< > $@
,"GEN","$@")
816 qemu
.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi
817 qemu
.1: qemu-option-trace.texi
818 qemu-img
.1: qemu-img.texi qemu-option-trace.texi qemu-img-cmds.texi
819 fsdev
/virtfs-proxy-helper
.1: fsdev
/virtfs-proxy-helper.texi
820 qemu-nbd
.8: qemu-nbd.texi qemu-option-trace.texi
821 qemu-ga
.8: qemu-ga.texi
822 docs
/qemu-block-drivers
.7: docs
/qemu-block-drivers.texi
824 html
: qemu-doc.html docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html
825 info: qemu-doc.
info docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-ga-ref.
info
826 pdf
: qemu-doc.pdf docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
827 txt
: qemu-doc.txt docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
829 qemu-doc.html qemu-doc.
info qemu-doc.pdf qemu-doc.txt
: \
830 qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-option-trace.texi \
831 qemu-monitor.texi qemu-img-cmds.texi qemu-ga.texi \
832 qemu-monitor-info.texi docs
/qemu-block-drivers.texi
834 docs
/interop
/qemu-ga-ref.
dvi docs
/interop
/qemu-ga-ref.html \
835 docs
/interop
/qemu-ga-ref.
info docs
/interop
/qemu-ga-ref.pdf \
836 docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7: \
837 docs
/interop
/qemu-ga-ref.texi docs
/interop
/qemu-ga-qapi.texi
839 docs
/interop
/qemu-qmp-ref.
dvi docs
/interop
/qemu-qmp-ref.html \
840 docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-qmp-ref.pdf \
841 docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7: \
842 docs
/interop
/qemu-qmp-ref.texi docs
/interop
/qemu-qmp-qapi.texi
847 INSTALLER
= qemu-setup-
$(VERSION
)$(EXESUF
)
849 nsisflags
= -V2
-NOCD
851 ifneq ($(wildcard $(SRC_PATH
)/dll
),)
852 ifeq ($(ARCH
),x86_64
)
854 DLL_PATH
= $(SRC_PATH
)/dll
/w64
858 DLL_PATH
= $(SRC_PATH
)/dll
/w32
863 installer
: $(INSTALLER
)
865 INSTDIR
=/tmp
/qemu-nsis
867 $(INSTALLER
): $(SRC_PATH
)/qemu.nsi
868 $(MAKE
) install prefix=${INSTDIR}
877 for i in qemu-system-
*.exe
; do \
879 arch
=$${arch
#qemu-system-}; \
880 echo Section
\"$$arch\" Section_
$$arch; \
881 echo SetOutPath
\"\
$$INSTDIR\"; \
882 echo File
\"\
$${BINDIR}\\$$i\"; \
885 ) >${INSTDIR}/system-emulations.nsh
886 makensis
$(nsisflags
) \
887 $(if
$(BUILD_DOCS
),-DCONFIG_DOCUMENTATION
="y") \
888 $(if
$(CONFIG_GTK
),-DCONFIG_GTK
="y") \
889 -DBINDIR
="${INSTDIR}" \
890 $(if
$(DLL_PATH
),-DDLLDIR
="$(DLL_PATH)") \
891 -DSRCDIR
="$(SRC_PATH)" \
892 -DOUTFILE
="$(INSTALLER)" \
893 -DDISPLAYVERSION
="$(VERSION)" \
897 $(SIGNCODE
) $(INSTALLER
)
901 # Add a dependency on the generated files, so that they are always
902 # rebuilt before other object files
903 ifneq ($(wildcard config-host.mak
),)
904 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
905 Makefile
: $(GENERATED_FILES
)
909 .SECONDARY
: $(TRACE_HEADERS
) $(TRACE_HEADERS
:%=%-timestamp
) \
910 $(TRACE_SOURCES
) $(TRACE_SOURCES
:%=%-timestamp
) \
911 $(TRACE_DTRACE
) $(TRACE_DTRACE
:%=%-timestamp
)
913 # Include automatically generated dependency files
914 # Dependencies in Makefile.objs files come from our recursive subdir rules
915 -include $(wildcard *.d tests
/*.d
)
917 include $(SRC_PATH
)/tests
/docker
/Makefile.
include
918 include $(SRC_PATH
)/tests
/vm
/Makefile.
include
922 @echo
'Generic targets:'
923 @echo
' all - Build all'
924 @echo
' dir/file.o - Build specified target only'
925 @echo
' install - Install QEMU, documentation and tools'
926 @echo
' ctags/TAGS - Generate tags file for editors'
927 @echo
' cscope - Generate cscope index'
929 @
$(if
$(TARGET_DIRS
), \
930 echo
'Architecture specific targets:'; \
931 $(foreach t
, $(TARGET_DIRS
), \
932 printf
" %-30s - Build for %s\\n" $(patsubst %,subdir-
%,$(t
)) $(t
);) \
934 @echo
'Cleaning targets:'
935 @echo
' clean - Remove most generated files but keep the config'
936 @echo
' distclean - Remove all generated files'
937 @echo
' dist - Build a distributable tarball'
939 @echo
'Test targets:'
940 @echo
' check - Run all tests (check-help for details)'
941 @echo
' docker - Help about targets running tests inside Docker containers'
942 @echo
' vm-test - Help about targets running tests inside VM'
944 @echo
'Documentation targets:'
945 @echo
' html info pdf txt'
946 @echo
' - Build documentation in specified format'
949 @echo
'Windows targets:'
950 @echo
' installer - Build NSIS-based installer for QEMU'
951 ifdef QEMU_GA_MSI_ENABLED
952 @echo
' msi - Build MSI-based installer for qemu-ga'
956 @echo
' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'