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
dist \
12 docker docker-
% vm-test vm-build-
%
14 # All following code might depend on configuration variables
15 ifneq ($(wildcard config-host.mak
),)
16 # Put the all: rule here so that config-host.mak can contain dependencies.
18 include config-host.mak
22 .PHONY
: git-submodule-update
24 git_module_status
:= $(shell \
26 GIT
="$(GIT)" .
/scripts
/git-submodule.sh status
$(GIT_SUBMODULES
); \
30 ifeq (1,$(git_module_status
))
31 ifeq (no
,$(GIT_UPDATE
))
33 $(call quiet-command
, \
35 echo
"GIT submodule checkout is out of date. Please run" && \
36 echo
" scripts/git-submodule.sh update $(GIT_SUBMODULES)" && \
37 echo
"from the source directory checkout $(SRC_PATH)" && \
42 $(call quiet-command
, \
43 (cd
$(SRC_PATH
) && GIT
="$(GIT)" .
/scripts
/git-submodule.sh update
$(GIT_SUBMODULES
)), \
44 "GIT","$(GIT_SUBMODULES)")
48 .git-submodule-status
: git-submodule-update config-host.mak
50 # Check that we're not trying to do an out-of-tree build from
51 # a tree that's been used for an in-tree build.
52 ifneq ($(realpath
$(SRC_PATH
)),$(realpath .
))
53 ifneq ($(wildcard $(SRC_PATH
)/config-host.mak
),)
54 $(error This is an out of tree build but your source tree
($(SRC_PATH
)) \
55 seems to have been used for an in-tree build. You can fix this by running \
56 "$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree
)
60 CONFIG_SOFTMMU
:= $(if
$(filter %-softmmu
,$(TARGET_DIRS
)),y
)
61 CONFIG_USER_ONLY
:= $(if
$(filter %-user
,$(TARGET_DIRS
)),y
)
62 CONFIG_XEN
:= $(CONFIG_XEN_BACKEND
)
64 -include config-all-devices.mak
65 -include config-all-disas.mak
67 config-host.mak
: $(SRC_PATH
)/configure
$(SRC_PATH
)/pc-bios
68 @echo
$@ is out-of-date
, running configure
69 @
# TODO: The next lines include code which supports a smooth
70 @
# transition from old configurations without config.status.
71 @
# This code can be removed after QEMU 1.7.
72 @if
test -x config.status
; then \
75 sed
-n
"/.*Configured with/s/[^:]*: //p" $@ | sh
; \
79 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
80 @echo
"Please call configure before running make!"
85 include $(SRC_PATH
)/rules.mak
87 GENERATED_FILES
= qemu-version.h config-host.h qemu-options.def
88 GENERATED_FILES
+= qmp-commands.h qapi-types.h qapi-visit.h qapi-event.h
89 GENERATED_FILES
+= qmp-marshal.c qapi-types.c qapi-visit.c qapi-event.c
90 GENERATED_FILES
+= qmp-introspect.h
91 GENERATED_FILES
+= qmp-introspect.c
93 GENERATED_FILES
+= trace
/generated-tcg-tracers.h
95 GENERATED_FILES
+= trace
/generated-helpers-wrappers.h
96 GENERATED_FILES
+= trace
/generated-helpers.h
97 GENERATED_FILES
+= trace
/generated-helpers.c
99 ifdef CONFIG_TRACE_UST
100 GENERATED_FILES
+= trace-ust-all.h
101 GENERATED_FILES
+= trace-ust-all.c
104 GENERATED_FILES
+= module_block.h
106 TRACE_HEADERS
= trace-root.h
$(trace-events-subdirs
:%=%/trace.h
)
107 TRACE_SOURCES
= trace-root.c
$(trace-events-subdirs
:%=%/trace.c
)
109 ifdef CONFIG_TRACE_DTRACE
110 TRACE_HEADERS
+= trace-dtrace-root.h
$(trace-events-subdirs
:%=%/trace-dtrace.h
)
111 TRACE_DTRACE
+= trace-dtrace-root.dtrace
$(trace-events-subdirs
:%=%/trace-dtrace.dtrace
)
113 ifdef CONFIG_TRACE_UST
114 TRACE_HEADERS
+= trace-ust-root.h
$(trace-events-subdirs
:%=%/trace-ust.h
)
117 GENERATED_FILES
+= $(TRACE_HEADERS
)
118 GENERATED_FILES
+= $(TRACE_SOURCES
)
119 GENERATED_FILES
+= $(BUILD_DIR
)/trace-events-all
120 GENERATED_FILES
+= .git-submodule-status
122 trace-group-name
= $(shell dirname
$1 | sed
-e
's/[^a-zA-Z0-9]/_/g')
124 tracetool-y
= $(SRC_PATH
)/scripts
/tracetool.py
125 tracetool-y
+= $(shell find
$(SRC_PATH
)/scripts
/tracetool
-name
"*.py")
127 %/trace.h
: %/trace.h-timestamp
128 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
129 %/trace.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
130 $(call quiet-command
,$(TRACETOOL
) \
131 --group
=$(call trace-group-name
,$@
) \
133 --backends
=$(TRACE_BACKENDS
) \
134 $< > $@
,"GEN","$(@:%-timestamp=%)")
136 %/trace.c
: %/trace.c-timestamp
137 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
138 %/trace.c-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
139 $(call quiet-command
,$(TRACETOOL
) \
140 --group
=$(call trace-group-name
,$@
) \
142 --backends
=$(TRACE_BACKENDS
) \
143 $< > $@
,"GEN","$(@:%-timestamp=%)")
145 %/trace-ust.h
: %/trace-ust.h-timestamp
146 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
147 %/trace-ust.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
148 $(call quiet-command
,$(TRACETOOL
) \
149 --group
=$(call trace-group-name
,$@
) \
150 --format
=ust-events-h \
151 --backends
=$(TRACE_BACKENDS
) \
152 $< > $@
,"GEN","$(@:%-timestamp=%)")
154 %/trace-dtrace.dtrace
: %/trace-dtrace.dtrace-timestamp
155 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
156 %/trace-dtrace.dtrace-timestamp
: $(SRC_PATH
)/%/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
157 $(call quiet-command
,$(TRACETOOL
) \
158 --group
=$(call trace-group-name
,$@
) \
160 --backends
=$(TRACE_BACKENDS
) \
161 $< > $@
,"GEN","$(@:%-timestamp=%)")
163 %/trace-dtrace.h
: %/trace-dtrace.dtrace
$(tracetool-y
)
164 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
166 %/trace-dtrace.o
: %/trace-dtrace.dtrace
$(tracetool-y
)
169 trace-root.h
: trace-root.h-timestamp
170 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
171 trace-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
172 $(call quiet-command
,$(TRACETOOL
) \
175 --backends
=$(TRACE_BACKENDS
) \
176 $< > $@
,"GEN","$(@:%-timestamp=%)")
178 trace-root.c
: trace-root.c-timestamp
179 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
180 trace-root.c-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
181 $(call quiet-command
,$(TRACETOOL
) \
184 --backends
=$(TRACE_BACKENDS
) \
185 $< > $@
,"GEN","$(@:%-timestamp=%)")
187 trace-ust-root.h
: trace-ust-root.h-timestamp
188 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
189 trace-ust-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
190 $(call quiet-command
,$(TRACETOOL
) \
192 --format
=ust-events-h \
193 --backends
=$(TRACE_BACKENDS
) \
194 $< > $@
,"GEN","$(@:%-timestamp=%)")
196 trace-ust-all.h
: trace-ust-all.h-timestamp
197 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
198 trace-ust-all.h-timestamp
: $(trace-events-files
) $(tracetool-y
)
199 $(call quiet-command
,$(TRACETOOL
) \
201 --format
=ust-events-h \
202 --backends
=$(TRACE_BACKENDS
) \
203 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
205 trace-ust-all.c
: trace-ust-all.c-timestamp
206 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
207 trace-ust-all.c-timestamp
: $(trace-events-files
) $(tracetool-y
)
208 $(call quiet-command
,$(TRACETOOL
) \
210 --format
=ust-events-c \
211 --backends
=$(TRACE_BACKENDS
) \
212 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
214 trace-dtrace-root.dtrace
: trace-dtrace-root.dtrace-timestamp
215 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
216 trace-dtrace-root.dtrace-timestamp
: $(SRC_PATH
)/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
217 $(call quiet-command
,$(TRACETOOL
) \
220 --backends
=$(TRACE_BACKENDS
) \
221 $< > $@
,"GEN","$(@:%-timestamp=%)")
223 trace-dtrace-root.h
: trace-dtrace-root.dtrace
224 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
226 trace-dtrace-root.o
: trace-dtrace-root.dtrace
228 KEYCODEMAP_GEN
= $(SRC_PATH
)/ui
/keycodemapdb
/tools
/keymap-gen
229 KEYCODEMAP_CSV
= $(SRC_PATH
)/ui
/keycodemapdb
/data
/keymaps.csv
232 ui
/input-keymap-linux-to-qcode.c \
233 ui
/input-keymap-qcode-to-qnum.c \
234 ui
/input-keymap-qnum-to-qcode.c \
235 ui
/input-keymap-qcode-to-linux.c \
238 GENERATED_FILES
+= $(KEYCODEMAP_FILES
)
240 ui
/input-keymap-
%.c
: $(KEYCODEMAP_GEN
) $(KEYCODEMAP_CSV
) $(SRC_PATH
)/ui
/Makefile.objs
241 $(call quiet-command
,\
242 src
=$$(echo
$@ | sed
-E
-e
"s,^ui/input-keymap-(.+)-to-(.+)\.c$$,\1,") && \
243 dst
=$$(echo
$@ | sed
-E
-e
"s,^ui/input-keymap-(.+)-to-(.+)\.c$$,\2,") && \
244 test -e
$(KEYCODEMAP_GEN
) && \
245 $(PYTHON
) $(KEYCODEMAP_GEN
) \
247 --varname qemu_input_map_
$${src}_to_
$${dst} \
248 code-map
$(KEYCODEMAP_CSV
) $${src} $${dst} \
249 > $@ ||
rm -f
$@
, "GEN", "$@")
251 $(KEYCODEMAP_GEN
): .git-submodule-status
252 $(KEYCODEMAP_CSV
): .git-submodule-status
254 # Don't try to regenerate Makefile or configure
255 # We don't generate any of them
259 .PHONY
: all clean cscope
dist distclean doc
dvi html \
260 info install install-doc install-tools msi \
261 pdf txt recurse-all speed
test tools FORCE
263 $(call set-vpath
, $(SRC_PATH
))
265 LIBS
+=-lz
$(LIBS_TOOLS
)
267 HELPERS-
$(CONFIG_LINUX
) = qemu-bridge-helper
$(EXESUF
)
269 DOCS
=qemu-doc.html qemu-doc.txt qemu
.1 qemu-img
.1 qemu-nbd
.8 qemu-ga
.8
270 DOCS
+=docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7
271 DOCS
+=docs
/interop
/qemu-ga-ref.html docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7
272 DOCS
+=docs
/qemu-block-drivers
.7
274 DOCS
+=fsdev
/virtfs-proxy-helper
.1
277 SUBDIR_MAKEFLAGS
=$(if
$(V
),,--no-print-directory
) BUILD_DIR
=$(BUILD_DIR
)
278 SUBDIR_DEVICES_MAK
=$(patsubst %, %/config-devices.mak
, $(TARGET_DIRS
))
279 SUBDIR_DEVICES_MAK_DEP
=$(patsubst %, %-config-devices.mak.d
, $(TARGET_DIRS
))
281 ifeq ($(SUBDIR_DEVICES_MAK
),)
282 config-all-devices.mak
:
283 $(call quiet-command
,echo
'# no devices' > $@
,"GEN","$@")
285 config-all-devices.mak
: $(SUBDIR_DEVICES_MAK
)
286 $(call quiet-command
, sed
-n \
287 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \
288 $(SUBDIR_DEVICES_MAK
) |
sort -u
> $@
, \
292 -include $(SUBDIR_DEVICES_MAK_DEP
)
294 %/config-devices.mak
: default-configs
/%.mak
$(SRC_PATH
)/scripts
/make_device_config.sh
295 $(call quiet-command
, \
296 $(SHELL
) $(SRC_PATH
)/scripts
/make_device_config.sh
$< $*-config-devices.mak.d
$@
> $@.tmp
,"GEN","$@.tmp")
297 $(call quiet-command
, if
test -f
$@
; then \
298 if cmp
-s
$@.old
$@
; then \
302 if
test -f
$@.old
; then \
303 echo
"WARNING: $@ (user modified) out of date.";\
305 echo
"WARNING: $@ out of date.";\
307 echo
"Run \"$(MAKE) defconfig\" to regenerate."; \
316 rm -f config-all-devices.mak
$(SUBDIR_DEVICES_MAK
)
318 ifneq ($(wildcard config-host.mak
),)
319 include $(SRC_PATH
)/Makefile.objs
322 dummy
:= $(call unnest-vars
,, \
327 ivshmem-client-obj-y \
328 ivshmem-server-obj-y \
329 libvhost-user-obj-y \
330 vhost-user-scsi-obj-y \
342 include $(SRC_PATH
)/tests
/Makefile.
include
360 qemu-version.h
: FORCE
361 $(call quiet-command
, \
363 printf
'#define QEMU_PKGVERSION '; \
364 if
test -n
"$(PKGVERSION)"; then \
365 printf
'"$(PKGVERSION)"\n'; \
367 if
test -d .git
; then \
369 git describe
--match
'v*' 2>/dev
/null | tr
-d
'\n'; \
370 if
! git diff-index
--quiet HEAD
&>/dev
/null
; then \
371 printf
-- '-dirty'; \
378 $(call quiet-command
, if
! cmp
-s
$@
$@.tmp
; then \
384 config-host.h
: config-host.h-timestamp
385 config-host.h-timestamp
: config-host.mak
386 qemu-options.def
: $(SRC_PATH
)/qemu-options.hx
$(SRC_PATH
)/scripts
/hxtool
387 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
389 SUBDIR_RULES
=$(patsubst %,subdir-
%, $(TARGET_DIRS
))
390 SOFTMMU_SUBDIR_RULES
=$(filter %-softmmu
,$(SUBDIR_RULES
))
392 $(SOFTMMU_SUBDIR_RULES
): $(block-obj-y
)
393 $(SOFTMMU_SUBDIR_RULES
): $(crypto-obj-y
)
394 $(SOFTMMU_SUBDIR_RULES
): $(io-obj-y
)
395 $(SOFTMMU_SUBDIR_RULES
): config-all-devices.mak
398 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$* V
="$(V)" TARGET_DIR
="$*/" all,)
400 DTC_MAKE_ARGS
=-I
$(SRC_PATH
)/dtc VPATH
=$(SRC_PATH
)/dtc
-C dtc V
="$(V)" LIBFDT_srcdir
=$(SRC_PATH
)/dtc
/libfdt
401 DTC_CFLAGS
=$(CFLAGS
) $(QEMU_CFLAGS
)
402 DTC_CPPFLAGS
=-I
$(BUILD_DIR
)/dtc
-I
$(SRC_PATH
)/dtc
-I
$(SRC_PATH
)/dtc
/libfdt
404 subdir-dtc
: .git-submodule-status dtc
/libfdt dtc
/tests
405 $(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
,)
407 dtc
/%: .git-submodule-status
410 # Overriding CFLAGS causes us to lose defines added in the sub-makefile.
411 # Not overriding CFLAGS leads to mis-matches between compilation modes.
412 # Therefore we replicate some of the logic in the sub-makefile.
413 # Remove all the extra -Warning flags that QEMU uses that Capstone doesn't;
414 # no need to annoy QEMU developers with such things.
415 CAP_CFLAGS
= $(patsubst -W
%,,$(CFLAGS
) $(QEMU_CFLAGS
))
416 CAP_CFLAGS
+= -DCAPSTONE_USE_SYS_DYN_MEM
417 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM
418 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM64
419 CAP_CFLAGS
+= -DCAPSTONE_HAS_POWERPC
420 CAP_CFLAGS
+= -DCAPSTONE_HAS_X86
422 subdir-capstone
: .git-submodule-status
423 $(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
))
425 $(SUBDIR_RULES
): libqemuutil.a
$(common-obj-y
) $(chardev-obj-y
) \
426 $(qom-obj-y
) $(crypto-aes-obj-
$(CONFIG_USER_ONLY
))
428 ROMSUBDIR_RULES
=$(patsubst %,romsubdir-
%, $(ROMS
))
429 # Only keep -O and -g cflags
431 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C pc-bios
/$* V
="$(V)" TARGET_DIR
="$*/" CFLAGS
="$(filter -O% -g%,$(CFLAGS))",)
433 ALL_SUBDIRS
=$(TARGET_DIRS
) $(patsubst %,pc-bios
/%, $(ROMS
))
435 recurse-all
: $(SUBDIR_RULES
) $(ROMSUBDIR_RULES
)
437 $(BUILD_DIR
)/version.o
: $(SRC_PATH
)/version.rc config-host.h
438 $(call quiet-command
,$(WINDRES
) -I
$(BUILD_DIR
) -o
$@
$<,"RC","version.o")
440 Makefile
: $(version-obj-y
)
442 ######################################################################
445 libqemuutil.a
: $(util-obj-y
) $(trace-obj-y
) $(stub-obj-y
)
446 libvhost-user.a
: $(libvhost-user-obj-y
)
448 ######################################################################
450 COMMON_LDADDS
= libqemuutil.a
452 qemu-img.o
: qemu-img-cmds.h
454 qemu-img
$(EXESUF
): qemu-img.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
455 qemu-nbd
$(EXESUF
): qemu-nbd.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
456 qemu-io
$(EXESUF
): qemu-io.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
458 qemu-bridge-helper
$(EXESUF
): qemu-bridge-helper.o
$(COMMON_LDADDS
)
460 qemu-keymap
$(EXESUF
): qemu-keymap.o ui
/input-keymap.o
$(COMMON_LDADDS
)
462 fsdev
/virtfs-proxy-helper
$(EXESUF
): fsdev
/virtfs-proxy-helper.o fsdev
/9p-marshal.o fsdev
/9p-iov-marshal.o
$(COMMON_LDADDS
)
463 fsdev
/virtfs-proxy-helper
$(EXESUF
): LIBS
+= -lcap
465 scsi
/qemu-pr-helper
$(EXESUF
): scsi
/qemu-pr-helper.o scsi
/utils.o
$(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
467 scsi
/qemu-pr-helper
$(EXESUF
): LIBS
+= -ludev
-lmultipath
-lmpathpersist
470 qemu-img-cmds.h
: $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/scripts
/hxtool
471 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
473 qemu-ga
$(EXESUF
): LIBS
= $(LIBS_QGA
)
474 qemu-ga
$(EXESUF
): QEMU_CFLAGS
+= -I qga
/qapi-generated
476 qemu-keymap
$(EXESUF
): LIBS
+= $(XKBCOMMON_LIBS
)
477 qemu-keymap
$(EXESUF
): QEMU_CFLAGS
+= $(XKBCOMMON_CFLAGS
)
479 gen-out-type
= $(subst .
,-,$(suffix $@
))
481 qapi-py
= $(SRC_PATH
)/scripts
/qapi.py
$(SRC_PATH
)/scripts
/ordereddict.py
483 qga
/qapi-generated
/qga-qapi-types.c qga
/qapi-generated
/qga-qapi-types.h
:\
484 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
485 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
486 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
488 qga
/qapi-generated
/qga-qapi-visit.c qga
/qapi-generated
/qga-qapi-visit.h
:\
489 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
490 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
491 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
493 qga
/qapi-generated
/qga-qmp-commands.h qga
/qapi-generated
/qga-qmp-marshal.c
:\
494 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
495 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
496 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
499 qapi-modules
= $(SRC_PATH
)/qapi-schema.json
$(SRC_PATH
)/qapi
/common.json \
500 $(SRC_PATH
)/qapi
/block.json
$(SRC_PATH
)/qapi
/block-core.json \
501 $(SRC_PATH
)/qapi
/char.json \
502 $(SRC_PATH
)/qapi
/crypto.json \
503 $(SRC_PATH
)/qapi
/introspect.json \
504 $(SRC_PATH
)/qapi
/migration.json \
505 $(SRC_PATH
)/qapi
/net.json \
506 $(SRC_PATH
)/qapi
/rocker.json \
507 $(SRC_PATH
)/qapi
/run-state.json \
508 $(SRC_PATH
)/qapi
/sockets.json \
509 $(SRC_PATH
)/qapi
/tpm.json \
510 $(SRC_PATH
)/qapi
/trace.json \
511 $(SRC_PATH
)/qapi
/transaction.json \
512 $(SRC_PATH
)/qapi
/ui.json
514 qapi-types.c qapi-types.h
:\
515 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
516 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
517 $(gen-out-type
) -o
"." -b
$<, \
519 qapi-visit.c qapi-visit.h
:\
520 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
521 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
522 $(gen-out-type
) -o
"." -b
$<, \
524 qapi-event.c qapi-event.h
:\
525 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-event.py
$(qapi-py
)
526 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-event.py \
527 $(gen-out-type
) -o
"." $<, \
529 qmp-commands.h qmp-marshal.c
:\
530 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
531 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
532 $(gen-out-type
) -o
"." $<, \
534 qmp-introspect.h qmp-introspect.c
:\
535 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-introspect.py
$(qapi-py
)
536 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-introspect.py \
537 $(gen-out-type
) -o
"." $<, \
540 QGALIB_GEN
=$(addprefix qga
/qapi-generated
/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h
)
541 $(qga-obj-y
): $(QGALIB_GEN
)
543 qemu-ga
$(EXESUF
): $(qga-obj-y
) $(COMMON_LDADDS
)
546 ifdef QEMU_GA_MSI_ENABLED
547 QEMU_GA_MSI
=qemu-ga-
$(ARCH
).msi
551 $(QEMU_GA_MSI
): qemu-ga.exe
$(QGA_VSS_PROVIDER
)
553 $(QEMU_GA_MSI
): config-host.mak
555 $(QEMU_GA_MSI
): $(SRC_PATH
)/qga
/installer
/qemu-ga.wxs
556 $(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)" \
557 wixl
-o
$@
$(QEMU_GA_MSI_ARCH
) $(QEMU_GA_MSI_WITH_VSS
) $(QEMU_GA_MSI_MINGW_DLL_PATH
) $<,"WIXL","$@")
560 @echo
"MSI build not configured or dependency resolution failed (reconfigure with --enable-guest-agent-msi option)"
565 qemu-ga
: qemu-ga
$(EXESUF
) $(QGA_VSS_PROVIDER
) $(QEMU_GA_MSI
)
569 ivshmem-client
$(EXESUF
): $(ivshmem-client-obj-y
) $(COMMON_LDADDS
)
571 ivshmem-server
$(EXESUF
): $(ivshmem-server-obj-y
) $(COMMON_LDADDS
)
574 vhost-user-scsi
$(EXESUF
): $(vhost-user-scsi-obj-y
) libvhost-user.a
577 module_block.h
: $(SRC_PATH
)/scripts
/modules
/module_block.py config-host.mak
578 $(call quiet-command
,$(PYTHON
) $< $@ \
579 $(addprefix $(SRC_PATH
)/,$(patsubst %.mo
,%.c
,$(block-obj-m
))), \
583 # avoid old build problems by removing potentially incorrect old files
584 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
585 rm -f qemu-options.def
587 find . \
( -name
'*.so' -o
-name
'*.dll' -o
-name
'*.mo' -o
-name
'*.[oda]' \
) -type f
-exec
rm {} +
588 rm -f
$(filter-out %.tlb
,$(TOOLS
)) $(HELPERS-y
) qemu-ga TAGS cscope.
* *.pod
*~
*/*~
589 rm -f fsdev
/*.pod scsi
/*.pod
590 rm -f qemu-img-cmds.h
591 rm -f ui
/shader
/*-vert.h ui
/shader
/*-frag.h
592 @
# May not be present in GENERATED_FILES
593 rm -f trace
/generated-tracers-dtrace.dtrace
*
594 rm -f trace
/generated-tracers-dtrace.h
*
595 rm -f
$(foreach f
,$(GENERATED_FILES
),$(f
) $(f
)-timestamp
)
596 rm -rf qapi-generated
597 rm -rf qga
/qapi-generated
598 for d in
$(ALL_SUBDIRS
); do \
599 if
test -d
$$d; then
$(MAKE
) -C
$$d $@ || exit
1; fi
; \
600 rm -f
$$d/qemu-options.def
; \
602 rm -f
$(SUBDIR_DEVICES_MAK
) config-all-devices.mak
604 VERSION ?
= $(shell cat VERSION
)
606 dist: qemu-
$(VERSION
).
tar.bz2
609 $(SRC_PATH
)/scripts
/make-release
"$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
612 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
613 rm -f config-all-devices.mak config-all-disas.mak config.status
614 rm -f po
/*.mo tests
/qemu-iotests
/common.env
615 rm -f roms
/seabios
/config.mak roms
/vgabios
/config.mak
616 rm -f qemu-doc.
info qemu-doc.aux qemu-doc.cp qemu-doc.cps
617 rm -f qemu-doc.fn qemu-doc.fns qemu-doc.
info qemu-doc.ky qemu-doc.kys
618 rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp
619 rm -f qemu-doc.vr qemu-doc.txt
621 rm -f linux-headers
/asm
622 rm -f docs
/version.texi
623 rm -f docs
/interop
/qemu-ga-qapi.texi docs
/interop
/qemu-qmp-qapi.texi
624 rm -f docs
/interop
/qemu-qmp-ref
.7 docs
/interop
/qemu-ga-ref
.7
625 rm -f docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
626 rm -f docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
627 rm -f docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html
628 rm -f docs
/qemu-block-drivers
.7
629 for d in
$(TARGET_DIRS
); do \
630 rm -rf
$$d || exit
1 ; \
633 if
test -f dtc
/version_gen.h
; then
$(MAKE
) $(DTC_MAKE_ARGS
) clean; fi
635 KEYMAPS
=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
636 ar de en-us fi fr-be hr it lv nl pl ru th \
637 common de-ch es fo fr-ca hu ja mk nl-be pt sl tr \
641 BLOBS
=bios.bin bios-256k.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
642 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin vgabios-virtio.bin \
644 ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc QEMU
,tcx.bin QEMU
,cgthree.bin \
645 pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
646 pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
647 efi-e1000.rom efi-eepro100.rom efi-ne2k_pci.rom \
648 efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
649 efi-e1000e.rom efi-vmxnet3.rom \
650 qemu-icon.bmp qemu_logo_no_text.svg \
651 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
652 multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin \
653 s390-ccw.img s390-netboot.img \
654 spapr-rtas.bin slof.bin skiboot.lid \
663 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)"
664 $(INSTALL_DATA
) qemu-doc.html
"$(DESTDIR)$(qemu_docdir)"
665 $(INSTALL_DATA
) qemu-doc.txt
"$(DESTDIR)$(qemu_docdir)"
666 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.html
"$(DESTDIR)$(qemu_docdir)"
667 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.txt
"$(DESTDIR)$(qemu_docdir)"
669 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
670 $(INSTALL_DATA
) qemu
.1 "$(DESTDIR)$(mandir)/man1"
671 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man7"
672 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref
.7 "$(DESTDIR)$(mandir)/man7"
673 $(INSTALL_DATA
) docs
/qemu-block-drivers
.7 "$(DESTDIR)$(mandir)/man7"
675 $(INSTALL_DATA
) qemu-img
.1 "$(DESTDIR)$(mandir)/man1"
676 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man8"
677 $(INSTALL_DATA
) qemu-nbd
.8 "$(DESTDIR)$(mandir)/man8"
679 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
680 $(INSTALL_DATA
) qemu-ga
.8 "$(DESTDIR)$(mandir)/man8"
681 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.html
"$(DESTDIR)$(qemu_docdir)"
682 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.txt
"$(DESTDIR)$(qemu_docdir)"
683 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref
.7 "$(DESTDIR)$(mandir)/man7"
687 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
688 $(INSTALL_DATA
) fsdev
/virtfs-proxy-helper
.1 "$(DESTDIR)$(mandir)/man1"
692 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)"
694 install-localstatedir
:
696 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
697 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_localstatedir)"/run
703 $(call install-prog
,$(filter-out qemu-ga
,$(TOOLS
)),$(DESTDIR
)$(bindir))
704 # qemu-ga is included in TOOLS, but we need special install rules for w32
706 install: all $(if
$(BUILD_DOCS
),install-doc
) $(if
$(BUILD_TOOLS
),install-tools
) \
707 install-datadir install-localstatedir
709 $(call install-prog
,$(subst qemu-ga
,qemu-ga
$(EXESUF
),$(TOOLS
)),$(DESTDIR
)$(bindir))
711 ifneq ($(CONFIG_MODULES
),)
712 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_moddir)"
713 for s in
$(modules-m
:.mo
=$(DSOSUF
)); do \
714 t
="$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
715 $(INSTALL_LIB
) $$s "$$t"; \
716 test -z
"$(STRIP)" ||
$(STRIP
) "$$t"; \
719 ifneq ($(HELPERS-y
),)
720 $(call install-prog
,$(HELPERS-y
),$(DESTDIR
)$(libexecdir
))
723 set
-e
; for x in
$(BLOBS
); do \
724 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/$$x "$(DESTDIR)$(qemu_datadir)"; \
727 ifeq ($(CONFIG_GTK
),y
)
730 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/keymaps"
731 set
-e
; for x in
$(KEYMAPS
); do \
732 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/keymaps
/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
734 $(INSTALL_DATA
) $(BUILD_DIR
)/trace-events-all
"$(DESTDIR)$(qemu_datadir)/trace-events-all"
735 for d in
$(TARGET_DIRS
); do \
736 $(MAKE
) $(SUBDIR_MAKEFLAGS
) TARGET_DIR
=$$d/ -C
$$d $@ || exit
1 ; \
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'