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 \
11 help check-help print-
% \
12 docker docker-
% vm-test vm-build-
%
17 # All following code might depend on configuration variables
18 ifneq ($(wildcard config-host.mak
),)
19 # Put the all: rule here so that config-host.mak can contain dependencies.
21 include config-host.mak
25 .PHONY
: git-submodule-update
27 git_module_status
:= $(shell \
29 GIT
="$(GIT)" .
/scripts
/git-submodule.sh status
$(GIT_SUBMODULES
); \
33 ifeq (1,$(git_module_status
))
34 ifeq (no
,$(GIT_UPDATE
))
36 $(call quiet-command
, \
38 echo
"GIT submodule checkout is out of date. Please run" && \
39 echo
" scripts/git-submodule.sh update $(GIT_SUBMODULES)" && \
40 echo
"from the source directory checkout $(SRC_PATH)" && \
45 $(call quiet-command
, \
46 (cd
$(SRC_PATH
) && GIT
="$(GIT)" .
/scripts
/git-submodule.sh update
$(GIT_SUBMODULES
)), \
47 "GIT","$(GIT_SUBMODULES)")
51 .git-submodule-status
: git-submodule-update config-host.mak
53 # Check that we're not trying to do an out-of-tree build from
54 # a tree that's been used for an in-tree build.
55 ifneq ($(realpath
$(SRC_PATH
)),$(realpath .
))
56 ifneq ($(wildcard $(SRC_PATH
)/config-host.mak
),)
57 $(error This is an out of tree build but your source tree
($(SRC_PATH
)) \
58 seems to have been used for an in-tree build. You can fix this by running \
59 "$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree
)
63 CONFIG_SOFTMMU
:= $(if
$(filter %-softmmu
,$(TARGET_DIRS
)),y
)
64 CONFIG_USER_ONLY
:= $(if
$(filter %-user
,$(TARGET_DIRS
)),y
)
65 CONFIG_XEN
:= $(CONFIG_XEN_BACKEND
)
67 -include config-all-devices.mak
68 -include config-all-disas.mak
70 config-host.mak
: $(SRC_PATH
)/configure
$(SRC_PATH
)/pc-bios
71 @echo
$@ is out-of-date
, running configure
72 @
# TODO: The next lines include code which supports a smooth
73 @
# transition from old configurations without config.status.
74 @
# This code can be removed after QEMU 1.7.
75 @if
test -x config.status
; then \
78 sed
-n
"/.*Configured with/s/[^:]*: //p" $@ | sh
; \
82 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
83 @echo
"Please call configure before running make!"
88 include $(SRC_PATH
)/rules.mak
90 GENERATED_FILES
= qemu-version.h config-host.h qemu-options.def
91 GENERATED_FILES
+= qmp-commands.h qapi-types.h qapi-visit.h qapi-event.h
92 GENERATED_FILES
+= qmp-marshal.c qapi-types.c qapi-visit.c qapi-event.c
93 GENERATED_FILES
+= qmp-introspect.h
94 GENERATED_FILES
+= qmp-introspect.c
96 GENERATED_FILES
+= trace
/generated-tcg-tracers.h
98 GENERATED_FILES
+= trace
/generated-helpers-wrappers.h
99 GENERATED_FILES
+= trace
/generated-helpers.h
100 GENERATED_FILES
+= trace
/generated-helpers.c
102 ifdef CONFIG_TRACE_UST
103 GENERATED_FILES
+= trace-ust-all.h
104 GENERATED_FILES
+= trace-ust-all.c
107 GENERATED_FILES
+= module_block.h
109 TRACE_HEADERS
= trace-root.h
$(trace-events-subdirs
:%=%/trace.h
)
110 TRACE_SOURCES
= trace-root.c
$(trace-events-subdirs
:%=%/trace.c
)
112 ifdef CONFIG_TRACE_DTRACE
113 TRACE_HEADERS
+= trace-dtrace-root.h
$(trace-events-subdirs
:%=%/trace-dtrace.h
)
114 TRACE_DTRACE
+= trace-dtrace-root.dtrace
$(trace-events-subdirs
:%=%/trace-dtrace.dtrace
)
116 ifdef CONFIG_TRACE_UST
117 TRACE_HEADERS
+= trace-ust-root.h
$(trace-events-subdirs
:%=%/trace-ust.h
)
120 GENERATED_FILES
+= $(TRACE_HEADERS
)
121 GENERATED_FILES
+= $(TRACE_SOURCES
)
122 GENERATED_FILES
+= $(BUILD_DIR
)/trace-events-all
123 GENERATED_FILES
+= .git-submodule-status
125 trace-group-name
= $(shell dirname
$1 | sed
-e
's/[^a-zA-Z0-9]/_/g')
127 tracetool-y
= $(SRC_PATH
)/scripts
/tracetool.py
128 tracetool-y
+= $(shell find
$(SRC_PATH
)/scripts
/tracetool
-name
"*.py")
130 %/trace.h
: %/trace.h-timestamp
131 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
132 %/trace.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
133 $(call quiet-command
,$(TRACETOOL
) \
134 --group
=$(call trace-group-name
,$@
) \
136 --backends
=$(TRACE_BACKENDS
) \
137 $< > $@
,"GEN","$(@:%-timestamp=%)")
139 %/trace.c
: %/trace.c-timestamp
140 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
141 %/trace.c-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
142 $(call quiet-command
,$(TRACETOOL
) \
143 --group
=$(call trace-group-name
,$@
) \
145 --backends
=$(TRACE_BACKENDS
) \
146 $< > $@
,"GEN","$(@:%-timestamp=%)")
148 %/trace-ust.h
: %/trace-ust.h-timestamp
149 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
150 %/trace-ust.h-timestamp
: $(SRC_PATH
)/%/trace-events
$(tracetool-y
)
151 $(call quiet-command
,$(TRACETOOL
) \
152 --group
=$(call trace-group-name
,$@
) \
153 --format
=ust-events-h \
154 --backends
=$(TRACE_BACKENDS
) \
155 $< > $@
,"GEN","$(@:%-timestamp=%)")
157 %/trace-dtrace.dtrace
: %/trace-dtrace.dtrace-timestamp
158 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
159 %/trace-dtrace.dtrace-timestamp
: $(SRC_PATH
)/%/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
160 $(call quiet-command
,$(TRACETOOL
) \
161 --group
=$(call trace-group-name
,$@
) \
163 --backends
=$(TRACE_BACKENDS
) \
164 $< > $@
,"GEN","$(@:%-timestamp=%)")
166 %/trace-dtrace.h
: %/trace-dtrace.dtrace
$(tracetool-y
)
167 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
169 %/trace-dtrace.o
: %/trace-dtrace.dtrace
$(tracetool-y
)
172 trace-root.h
: trace-root.h-timestamp
173 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
174 trace-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
175 $(call quiet-command
,$(TRACETOOL
) \
178 --backends
=$(TRACE_BACKENDS
) \
179 $< > $@
,"GEN","$(@:%-timestamp=%)")
181 trace-root.c
: trace-root.c-timestamp
182 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
183 trace-root.c-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
184 $(call quiet-command
,$(TRACETOOL
) \
187 --backends
=$(TRACE_BACKENDS
) \
188 $< > $@
,"GEN","$(@:%-timestamp=%)")
190 trace-ust-root.h
: trace-ust-root.h-timestamp
191 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
192 trace-ust-root.h-timestamp
: $(SRC_PATH
)/trace-events
$(tracetool-y
)
193 $(call quiet-command
,$(TRACETOOL
) \
195 --format
=ust-events-h \
196 --backends
=$(TRACE_BACKENDS
) \
197 $< > $@
,"GEN","$(@:%-timestamp=%)")
199 trace-ust-all.h
: trace-ust-all.h-timestamp
200 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
201 trace-ust-all.h-timestamp
: $(trace-events-files
) $(tracetool-y
)
202 $(call quiet-command
,$(TRACETOOL
) \
204 --format
=ust-events-h \
205 --backends
=$(TRACE_BACKENDS
) \
206 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
208 trace-ust-all.c
: trace-ust-all.c-timestamp
209 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
210 trace-ust-all.c-timestamp
: $(trace-events-files
) $(tracetool-y
)
211 $(call quiet-command
,$(TRACETOOL
) \
213 --format
=ust-events-c \
214 --backends
=$(TRACE_BACKENDS
) \
215 $(trace-events-files
) > $@
,"GEN","$(@:%-timestamp=%)")
217 trace-dtrace-root.dtrace
: trace-dtrace-root.dtrace-timestamp
218 @cmp
$< $@
>/dev
/null
2>&1 || cp
$< $@
219 trace-dtrace-root.dtrace-timestamp
: $(SRC_PATH
)/trace-events
$(BUILD_DIR
)/config-host.mak
$(tracetool-y
)
220 $(call quiet-command
,$(TRACETOOL
) \
223 --backends
=$(TRACE_BACKENDS
) \
224 $< > $@
,"GEN","$(@:%-timestamp=%)")
226 trace-dtrace-root.h
: trace-dtrace-root.dtrace
227 $(call quiet-command
,dtrace
-o
$@
-h
-s
$<, "GEN","$@")
229 trace-dtrace-root.o
: trace-dtrace-root.dtrace
231 KEYCODEMAP_GEN
= $(SRC_PATH
)/ui
/keycodemapdb
/tools
/keymap-gen
232 KEYCODEMAP_CSV
= $(SRC_PATH
)/ui
/keycodemapdb
/data
/keymaps.csv
235 ui
/input-keymap-atset1-to-qcode.c \
236 ui
/input-keymap-linux-to-qcode.c \
237 ui
/input-keymap-qcode-to-atset1.c \
238 ui
/input-keymap-qcode-to-atset2.c \
239 ui
/input-keymap-qcode-to-atset3.c \
240 ui
/input-keymap-qcode-to-linux.c \
241 ui
/input-keymap-qcode-to-qnum.c \
242 ui
/input-keymap-qcode-to-sun.c \
243 ui
/input-keymap-qnum-to-qcode.c \
244 ui
/input-keymap-usb-to-qcode.c \
245 ui
/input-keymap-win32-to-qcode.c \
246 ui
/input-keymap-x11-to-qcode.c \
247 ui
/input-keymap-xorgevdev-to-qcode.c \
248 ui
/input-keymap-xorgkbd-to-qcode.c \
249 ui
/input-keymap-xorgxquartz-to-qcode.c \
250 ui
/input-keymap-xorgxwin-to-qcode.c \
253 GENERATED_FILES
+= $(KEYCODEMAP_FILES
)
255 ui
/input-keymap-
%.c
: $(KEYCODEMAP_GEN
) $(KEYCODEMAP_CSV
) $(SRC_PATH
)/ui
/Makefile.objs
256 $(call quiet-command
,\
257 src
=$$(echo
$@ | sed
-E
-e
"s,^ui/input-keymap-(.+)-to-(.+)\.c$$,\1,") && \
258 dst
=$$(echo
$@ | sed
-E
-e
"s,^ui/input-keymap-(.+)-to-(.+)\.c$$,\2,") && \
259 test -e
$(KEYCODEMAP_GEN
) && \
260 $(PYTHON
) $(KEYCODEMAP_GEN
) \
262 --varname qemu_input_map_
$${src}_to_
$${dst} \
263 code-map
$(KEYCODEMAP_CSV
) $${src} $${dst} \
264 > $@ ||
rm -f
$@
, "GEN", "$@")
266 $(KEYCODEMAP_GEN
): .git-submodule-status
267 $(KEYCODEMAP_CSV
): .git-submodule-status
269 # Don't try to regenerate Makefile or configure
270 # We don't generate any of them
274 .PHONY
: all clean cscope
distclean html
info install install-doc \
275 pdf txt recurse-all
dist msi FORCE
277 $(call set-vpath
, $(SRC_PATH
))
279 LIBS
+=-lz
$(LIBS_TOOLS
)
281 HELPERS-
$(CONFIG_LINUX
) = qemu-bridge-helper
$(EXESUF
)
284 DOCS
=qemu-doc.html qemu-doc.txt qemu
.1 qemu-img
.1 qemu-nbd
.8 qemu-ga
.8
285 DOCS
+=docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7
286 DOCS
+=docs
/interop
/qemu-ga-ref.html docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7
287 DOCS
+=docs
/qemu-block-drivers
.7
289 DOCS
+=fsdev
/virtfs-proxy-helper
.1
295 SUBDIR_MAKEFLAGS
=BUILD_DIR
=$(BUILD_DIR
)
296 SUBDIR_DEVICES_MAK
=$(patsubst %, %/config-devices.mak
, $(TARGET_DIRS
))
297 SUBDIR_DEVICES_MAK_DEP
=$(patsubst %, %-config-devices.mak.d
, $(TARGET_DIRS
))
299 ifeq ($(SUBDIR_DEVICES_MAK
),)
300 config-all-devices.mak
:
301 $(call quiet-command
,echo
'# no devices' > $@
,"GEN","$@")
303 config-all-devices.mak
: $(SUBDIR_DEVICES_MAK
)
304 $(call quiet-command
, sed
-n \
305 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \
306 $(SUBDIR_DEVICES_MAK
) |
sort -u
> $@
, \
310 -include $(SUBDIR_DEVICES_MAK_DEP
)
312 %/config-devices.mak
: default-configs
/%.mak
$(SRC_PATH
)/scripts
/make_device_config.sh
313 $(call quiet-command
, \
314 $(SHELL
) $(SRC_PATH
)/scripts
/make_device_config.sh
$< $*-config-devices.mak.d
$@
> $@.tmp
,"GEN","$@.tmp")
315 $(call quiet-command
, if
test -f
$@
; then \
316 if cmp
-s
$@.old
$@
; then \
320 if
test -f
$@.old
; then \
321 echo
"WARNING: $@ (user modified) out of date.";\
323 echo
"WARNING: $@ out of date.";\
325 echo
"Run \"$(MAKE) defconfig\" to regenerate."; \
334 rm -f config-all-devices.mak
$(SUBDIR_DEVICES_MAK
)
336 ifneq ($(wildcard config-host.mak
),)
337 include $(SRC_PATH
)/Makefile.objs
340 dummy
:= $(call unnest-vars
,, \
345 ivshmem-client-obj-y \
346 ivshmem-server-obj-y \
347 libvhost-user-obj-y \
348 vhost-user-scsi-obj-y \
349 vhost-user-blk-obj-y \
361 include $(SRC_PATH
)/tests
/Makefile.
include
363 all: $(DOCS
) $(TOOLS
) $(HELPERS-y
) recurse-all modules
365 qemu-version.h
: FORCE
366 $(call quiet-command
, \
368 printf
'#define QEMU_PKGVERSION '; \
369 if
test -n
"$(PKGVERSION)"; then \
370 printf
'"$(PKGVERSION)"\n'; \
372 if
test -d .git
; then \
374 git describe
--match
'v*' 2>/dev
/null | tr
-d
'\n'; \
375 if
! git diff-index
--quiet HEAD
&>/dev
/null
; then \
376 printf
-- '-dirty'; \
383 $(call quiet-command
, if
! cmp
-s
$@
$@.tmp
; then \
389 config-host.h
: config-host.h-timestamp
390 config-host.h-timestamp
: config-host.mak
391 qemu-options.def
: $(SRC_PATH
)/qemu-options.hx
$(SRC_PATH
)/scripts
/hxtool
392 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
394 SUBDIR_RULES
=$(patsubst %,subdir-
%, $(TARGET_DIRS
))
395 SOFTMMU_SUBDIR_RULES
=$(filter %-softmmu
,$(SUBDIR_RULES
))
397 $(SOFTMMU_SUBDIR_RULES
): $(block-obj-y
)
398 $(SOFTMMU_SUBDIR_RULES
): $(crypto-obj-y
)
399 $(SOFTMMU_SUBDIR_RULES
): $(io-obj-y
)
400 $(SOFTMMU_SUBDIR_RULES
): config-all-devices.mak
403 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C
$* V
="$(V)" TARGET_DIR
="$*/" all,)
405 DTC_MAKE_ARGS
=-I
$(SRC_PATH
)/dtc VPATH
=$(SRC_PATH
)/dtc
-C dtc V
="$(V)" LIBFDT_srcdir
=$(SRC_PATH
)/dtc
/libfdt
406 DTC_CFLAGS
=$(CFLAGS
) $(QEMU_CFLAGS
)
407 DTC_CPPFLAGS
=-I
$(BUILD_DIR
)/dtc
-I
$(SRC_PATH
)/dtc
-I
$(SRC_PATH
)/dtc
/libfdt
409 subdir-dtc
: .git-submodule-status dtc
/libfdt dtc
/tests
410 $(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
,)
412 dtc
/%: .git-submodule-status
415 # Overriding CFLAGS causes us to lose defines added in the sub-makefile.
416 # Not overriding CFLAGS leads to mis-matches between compilation modes.
417 # Therefore we replicate some of the logic in the sub-makefile.
418 # Remove all the extra -Warning flags that QEMU uses that Capstone doesn't;
419 # no need to annoy QEMU developers with such things.
420 CAP_CFLAGS
= $(patsubst -W
%,,$(CFLAGS
) $(QEMU_CFLAGS
))
421 CAP_CFLAGS
+= -DCAPSTONE_USE_SYS_DYN_MEM
422 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM
423 CAP_CFLAGS
+= -DCAPSTONE_HAS_ARM64
424 CAP_CFLAGS
+= -DCAPSTONE_HAS_POWERPC
425 CAP_CFLAGS
+= -DCAPSTONE_HAS_X86
427 subdir-capstone
: .git-submodule-status
428 $(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
))
430 $(SUBDIR_RULES
): libqemuutil.a
$(common-obj-y
) $(chardev-obj-y
) \
431 $(qom-obj-y
) $(crypto-aes-obj-
$(CONFIG_USER_ONLY
))
433 ROMSUBDIR_RULES
=$(patsubst %,romsubdir-
%, $(ROMS
))
434 # Only keep -O and -g cflags
436 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C pc-bios
/$* V
="$(V)" TARGET_DIR
="$*/" CFLAGS
="$(filter -O% -g%,$(CFLAGS))",)
438 ALL_SUBDIRS
=$(TARGET_DIRS
) $(patsubst %,pc-bios
/%, $(ROMS
))
440 recurse-all
: $(SUBDIR_RULES
) $(ROMSUBDIR_RULES
)
442 $(BUILD_DIR
)/version.o
: $(SRC_PATH
)/version.rc config-host.h
443 $(call quiet-command
,$(WINDRES
) -I
$(BUILD_DIR
) -o
$@
$<,"RC","version.o")
445 Makefile
: $(version-obj-y
)
447 ######################################################################
450 libqemuutil.a
: $(util-obj-y
) $(trace-obj-y
) $(stub-obj-y
)
451 libvhost-user.a
: $(libvhost-user-obj-y
)
453 ######################################################################
455 COMMON_LDADDS
= libqemuutil.a
457 qemu-img.o
: qemu-img-cmds.h
459 qemu-img
$(EXESUF
): qemu-img.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
460 qemu-nbd
$(EXESUF
): qemu-nbd.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
461 qemu-io
$(EXESUF
): qemu-io.o
$(block-obj-y
) $(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
463 qemu-bridge-helper
$(EXESUF
): qemu-bridge-helper.o
$(COMMON_LDADDS
)
465 qemu-keymap
$(EXESUF
): qemu-keymap.o ui
/input-keymap.o
$(COMMON_LDADDS
)
467 fsdev
/virtfs-proxy-helper
$(EXESUF
): fsdev
/virtfs-proxy-helper.o fsdev
/9p-marshal.o fsdev
/9p-iov-marshal.o
$(COMMON_LDADDS
)
468 fsdev
/virtfs-proxy-helper
$(EXESUF
): LIBS
+= -lcap
470 scsi
/qemu-pr-helper
$(EXESUF
): scsi
/qemu-pr-helper.o scsi
/utils.o
$(crypto-obj-y
) $(io-obj-y
) $(qom-obj-y
) $(COMMON_LDADDS
)
472 scsi
/qemu-pr-helper
$(EXESUF
): LIBS
+= -ludev
-lmultipath
-lmpathpersist
475 qemu-img-cmds.h
: $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/scripts
/hxtool
476 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-h
< $< > $@
,"GEN","$@")
478 qemu-ga
$(EXESUF
): LIBS
= $(LIBS_QGA
)
479 qemu-ga
$(EXESUF
): QEMU_CFLAGS
+= -I qga
/qapi-generated
481 qemu-keymap
$(EXESUF
): LIBS
+= $(XKBCOMMON_LIBS
)
482 qemu-keymap
$(EXESUF
): QEMU_CFLAGS
+= $(XKBCOMMON_CFLAGS
)
484 gen-out-type
= $(subst .
,-,$(suffix $@
))
486 qapi-py
= $(SRC_PATH
)/scripts
/qapi.py
$(SRC_PATH
)/scripts
/ordereddict.py
488 qga
/qapi-generated
/qga-qapi-types.c qga
/qapi-generated
/qga-qapi-types.h
:\
489 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
490 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
491 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
493 qga
/qapi-generated
/qga-qapi-visit.c qga
/qapi-generated
/qga-qapi-visit.h
:\
494 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
495 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
496 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
498 qga
/qapi-generated
/qga-qmp-commands.h qga
/qapi-generated
/qga-qmp-marshal.c
:\
499 $(SRC_PATH
)/qga
/qapi-schema.json
$(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
500 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
501 $(gen-out-type
) -o qga
/qapi-generated
-p
"qga-" $<, \
504 qapi-modules
= $(SRC_PATH
)/qapi-schema.json
$(SRC_PATH
)/qapi
/common.json \
505 $(SRC_PATH
)/qapi
/block.json
$(SRC_PATH
)/qapi
/block-core.json \
506 $(SRC_PATH
)/qapi
/char.json \
507 $(SRC_PATH
)/qapi
/crypto.json \
508 $(SRC_PATH
)/qapi
/introspect.json \
509 $(SRC_PATH
)/qapi
/migration.json \
510 $(SRC_PATH
)/qapi
/net.json \
511 $(SRC_PATH
)/qapi
/rocker.json \
512 $(SRC_PATH
)/qapi
/run-state.json \
513 $(SRC_PATH
)/qapi
/sockets.json \
514 $(SRC_PATH
)/qapi
/tpm.json \
515 $(SRC_PATH
)/qapi
/trace.json \
516 $(SRC_PATH
)/qapi
/transaction.json \
517 $(SRC_PATH
)/qapi
/ui.json
519 qapi-types.c qapi-types.h
:\
520 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-types.py
$(qapi-py
)
521 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-types.py \
522 $(gen-out-type
) -o
"." -b
$<, \
524 qapi-visit.c qapi-visit.h
:\
525 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-visit.py
$(qapi-py
)
526 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-visit.py \
527 $(gen-out-type
) -o
"." -b
$<, \
529 qapi-event.c qapi-event.h
:\
530 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-event.py
$(qapi-py
)
531 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-event.py \
532 $(gen-out-type
) -o
"." $<, \
534 qmp-commands.h qmp-marshal.c
:\
535 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-commands.py
$(qapi-py
)
536 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-commands.py \
537 $(gen-out-type
) -o
"." $<, \
539 qmp-introspect.h qmp-introspect.c
:\
540 $(qapi-modules
) $(SRC_PATH
)/scripts
/qapi-introspect.py
$(qapi-py
)
541 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi-introspect.py \
542 $(gen-out-type
) -o
"." $<, \
545 QGALIB_GEN
=$(addprefix qga
/qapi-generated
/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h
)
546 $(qga-obj-y
): $(QGALIB_GEN
)
548 qemu-ga
$(EXESUF
): $(qga-obj-y
) $(COMMON_LDADDS
)
551 ifdef QEMU_GA_MSI_ENABLED
552 QEMU_GA_MSI
=qemu-ga-
$(ARCH
).msi
556 $(QEMU_GA_MSI
): qemu-ga.exe
$(QGA_VSS_PROVIDER
)
558 $(QEMU_GA_MSI
): config-host.mak
560 $(QEMU_GA_MSI
): $(SRC_PATH
)/qga
/installer
/qemu-ga.wxs
561 $(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)" \
562 wixl
-o
$@
$(QEMU_GA_MSI_ARCH
) $(QEMU_GA_MSI_WITH_VSS
) $(QEMU_GA_MSI_MINGW_DLL_PATH
) $<,"WIXL","$@")
565 @echo
"MSI build not configured or dependency resolution failed (reconfigure with --enable-guest-agent-msi option)"
570 qemu-ga
: qemu-ga
$(EXESUF
) $(QGA_VSS_PROVIDER
) $(QEMU_GA_MSI
)
574 ivshmem-client
$(EXESUF
): $(ivshmem-client-obj-y
) $(COMMON_LDADDS
)
576 ivshmem-server
$(EXESUF
): $(ivshmem-server-obj-y
) $(COMMON_LDADDS
)
579 vhost-user-scsi
$(EXESUF
): $(vhost-user-scsi-obj-y
) libvhost-user.a
581 vhost-user-blk
$(EXESUF
): $(vhost-user-blk-obj-y
) libvhost-user.a
584 module_block.h
: $(SRC_PATH
)/scripts
/modules
/module_block.py config-host.mak
585 $(call quiet-command
,$(PYTHON
) $< $@ \
586 $(addprefix $(SRC_PATH
)/,$(patsubst %.mo
,%.c
,$(block-obj-m
))), \
590 # avoid old build problems by removing potentially incorrect old files
591 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
592 rm -f qemu-options.def
594 find . \
( -name
'*.so' -o
-name
'*.dll' -o
-name
'*.mo' -o
-name
'*.[oda]' \
) -type f
-exec
rm {} +
595 rm -f
$(filter-out %.tlb
,$(TOOLS
)) $(HELPERS-y
) qemu-ga TAGS cscope.
* *.pod
*~
*/*~
596 rm -f fsdev
/*.pod scsi
/*.pod
597 rm -f qemu-img-cmds.h
598 rm -f ui
/shader
/*-vert.h ui
/shader
/*-frag.h
599 @
# May not be present in GENERATED_FILES
600 rm -f trace
/generated-tracers-dtrace.dtrace
*
601 rm -f trace
/generated-tracers-dtrace.h
*
602 rm -f
$(foreach f
,$(GENERATED_FILES
),$(f
) $(f
)-timestamp
)
603 rm -rf qapi-generated
604 rm -rf qga
/qapi-generated
605 for d in
$(ALL_SUBDIRS
); do \
606 if
test -d
$$d; then
$(MAKE
) -C
$$d $@ || exit
1; fi
; \
607 rm -f
$$d/qemu-options.def
; \
609 rm -f
$(SUBDIR_DEVICES_MAK
) config-all-devices.mak
611 VERSION ?
= $(shell cat VERSION
)
613 dist: qemu-
$(VERSION
).
tar.bz2
616 $(SRC_PATH
)/scripts
/make-release
"$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
619 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
620 rm -f config-all-devices.mak config-all-disas.mak config.status
621 rm -f po
/*.mo tests
/qemu-iotests
/common.env
622 rm -f roms
/seabios
/config.mak roms
/vgabios
/config.mak
623 rm -f qemu-doc.
info qemu-doc.aux qemu-doc.cp qemu-doc.cps
624 rm -f qemu-doc.fn qemu-doc.fns qemu-doc.
info qemu-doc.ky qemu-doc.kys
625 rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp
626 rm -f qemu-doc.vr qemu-doc.txt
628 rm -f linux-headers
/asm
629 rm -f docs
/version.texi
630 rm -f docs
/interop
/qemu-ga-qapi.texi docs
/interop
/qemu-qmp-qapi.texi
631 rm -f docs
/interop
/qemu-qmp-ref
.7 docs
/interop
/qemu-ga-ref
.7
632 rm -f docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
633 rm -f docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
634 rm -f docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html
635 rm -f docs
/qemu-block-drivers
.7
636 for d in
$(TARGET_DIRS
); do \
637 rm -rf
$$d || exit
1 ; \
640 if
test -f dtc
/version_gen.h
; then
$(MAKE
) $(DTC_MAKE_ARGS
) clean; fi
642 KEYMAPS
=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
643 ar de en-us fi fr-be hr it lv nl pl ru th \
644 common de-ch es fo fr-ca hu ja mk nl-be pt sl tr \
648 BLOBS
=bios.bin bios-256k.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
649 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin vgabios-virtio.bin \
651 ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc QEMU
,tcx.bin QEMU
,cgthree.bin \
652 pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
653 pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
654 efi-e1000.rom efi-eepro100.rom efi-ne2k_pci.rom \
655 efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
656 efi-e1000e.rom efi-vmxnet3.rom \
657 qemu-icon.bmp qemu_logo_no_text.svg \
658 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
659 multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin \
660 s390-ccw.img s390-netboot.img \
661 spapr-rtas.bin slof.bin skiboot.lid \
671 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_docdir)"
672 $(INSTALL_DATA
) qemu-doc.html
"$(DESTDIR)$(qemu_docdir)"
673 $(INSTALL_DATA
) qemu-doc.txt
"$(DESTDIR)$(qemu_docdir)"
674 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.html
"$(DESTDIR)$(qemu_docdir)"
675 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref.txt
"$(DESTDIR)$(qemu_docdir)"
677 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
678 $(INSTALL_DATA
) qemu
.1 "$(DESTDIR)$(mandir)/man1"
679 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man7"
680 $(INSTALL_DATA
) docs
/interop
/qemu-qmp-ref
.7 "$(DESTDIR)$(mandir)/man7"
681 $(INSTALL_DATA
) docs
/qemu-block-drivers
.7 "$(DESTDIR)$(mandir)/man7"
683 $(INSTALL_DATA
) qemu-img
.1 "$(DESTDIR)$(mandir)/man1"
684 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man8"
685 $(INSTALL_DATA
) qemu-nbd
.8 "$(DESTDIR)$(mandir)/man8"
687 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
688 $(INSTALL_DATA
) qemu-ga
.8 "$(DESTDIR)$(mandir)/man8"
689 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.html
"$(DESTDIR)$(qemu_docdir)"
690 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref.txt
"$(DESTDIR)$(qemu_docdir)"
691 $(INSTALL_DATA
) docs
/interop
/qemu-ga-ref
.7 "$(DESTDIR)$(mandir)/man7"
695 $(INSTALL_DIR
) "$(DESTDIR)$(mandir)/man1"
696 $(INSTALL_DATA
) fsdev
/virtfs-proxy-helper
.1 "$(DESTDIR)$(mandir)/man1"
700 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)"
702 install-localstatedir
:
704 ifneq (,$(findstring qemu-ga
,$(TOOLS
)))
705 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_localstatedir)"/run
710 install: all $(if
$(BUILD_DOCS
),install-doc
) install-datadir install-localstatedir
712 $(call install-prog
,$(subst qemu-ga
,qemu-ga
$(EXESUF
),$(TOOLS
)),$(DESTDIR
)$(bindir))
714 ifneq ($(CONFIG_MODULES
),)
715 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_moddir)"
716 for s in
$(modules-m
:.mo
=$(DSOSUF
)); do \
717 t
="$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
718 $(INSTALL_LIB
) $$s "$$t"; \
719 test -z
"$(STRIP)" ||
$(STRIP
) "$$t"; \
722 ifneq ($(HELPERS-y
),)
723 $(call install-prog
,$(HELPERS-y
),$(DESTDIR
)$(libexecdir
))
726 set
-e
; for x in
$(BLOBS
); do \
727 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/$$x "$(DESTDIR)$(qemu_datadir)"; \
730 ifeq ($(CONFIG_GTK
),y
)
733 $(INSTALL_DIR
) "$(DESTDIR)$(qemu_datadir)/keymaps"
734 set
-e
; for x in
$(KEYMAPS
); do \
735 $(INSTALL_DATA
) $(SRC_PATH
)/pc-bios
/keymaps
/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
737 $(INSTALL_DATA
) $(BUILD_DIR
)/trace-events-all
"$(DESTDIR)$(qemu_datadir)/trace-events-all"
738 for d in
$(TARGET_DIRS
); do \
739 $(MAKE
) $(SUBDIR_MAKEFLAGS
) TARGET_DIR
=$$d/ -C
$$d $@ || exit
1 ; \
745 find
"$(SRC_PATH)" -name
'*.[hc]' -exec ctags
--append
{} +
750 find
"$(SRC_PATH)" -name
'*.[hc]' -exec etags
--append
{} +
753 rm -f
"$(SRC_PATH)"/cscope.
*
754 find
"$(SRC_PATH)/" -name
"*.[chsS]" -print | sed
's,^\./,,' > "$(SRC_PATH)/cscope.files"
755 cscope
-b
-i
"$(SRC_PATH)/cscope.files"
757 # opengl shader programs
758 ui
/shader
/%-vert.h
: $(SRC_PATH
)/ui
/shader
/%.vert
$(SRC_PATH
)/scripts
/shaderinclude.pl
760 $(call quiet-command
,\
761 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
764 ui
/shader
/%-frag.h
: $(SRC_PATH
)/ui
/shader
/%.frag
$(SRC_PATH
)/scripts
/shaderinclude.pl
766 $(call quiet-command
,\
767 perl
$(SRC_PATH
)/scripts
/shaderinclude.pl
$< > $@
,\
770 ui
/shader.o
: $(SRC_PATH
)/ui
/shader.c \
771 ui
/shader
/texture-blit-vert.h \
772 ui
/shader
/texture-blit-flip-vert.h \
773 ui
/shader
/texture-blit-frag.h
777 MAKEINFOINCLUDES
= -I docs
-I
$(<D
) -I
$(@D
)
778 MAKEINFOFLAGS
=--no-split
--number-sections
$(MAKEINFOINCLUDES
)
779 TEXI2PODFLAGS
=$(MAKEINFOINCLUDES
) "-DVERSION=$(VERSION)"
780 TEXI2PDFFLAGS
=$(if
$(V
),,--quiet
) -I
$(SRC_PATH
) $(MAKEINFOINCLUDES
)
782 docs
/version.texi
: $(SRC_PATH
)/VERSION
783 $(call quiet-command
,echo
"@set VERSION $(VERSION)" > $@
,"GEN","$@")
785 %.html
: %.texi docs
/version.texi
786 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
787 --html
$< -o
$@
,"GEN","$@")
789 %.
info: %.texi docs
/version.texi
790 $(call quiet-command
,$(MAKEINFO
) $(MAKEINFOFLAGS
) $< -o
$@
,"GEN","$@")
792 %.txt
: %.texi docs
/version.texi
793 $(call quiet-command
,LC_ALL
=C
$(MAKEINFO
) $(MAKEINFOFLAGS
) --no-headers \
794 --plaintext
$< -o
$@
,"GEN","$@")
796 %.pdf
: %.texi docs
/version.texi
797 $(call quiet-command
,texi2pdf
$(TEXI2PDFFLAGS
) $< -o
$@
,"GEN","$@")
799 qemu-options.texi
: $(SRC_PATH
)/qemu-options.hx
$(SRC_PATH
)/scripts
/hxtool
800 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
802 qemu-monitor.texi
: $(SRC_PATH
)/hmp-commands.hx
$(SRC_PATH
)/scripts
/hxtool
803 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
805 qemu-monitor-info.texi
: $(SRC_PATH
)/hmp-commands-info.hx
$(SRC_PATH
)/scripts
/hxtool
806 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
808 qemu-img-cmds.texi
: $(SRC_PATH
)/qemu-img-cmds.hx
$(SRC_PATH
)/scripts
/hxtool
809 $(call quiet-command
,sh
$(SRC_PATH
)/scripts
/hxtool
-t
< $< > $@
,"GEN","$@")
811 docs
/interop
/qemu-qmp-qapi.texi docs
/interop
/qemu-ga-qapi.texi
: $(SRC_PATH
)/scripts
/qapi2texi.py
$(qapi-py
)
813 docs
/interop
/qemu-qmp-qapi.texi
: $(qapi-modules
)
814 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi2texi.py
$< > $@
,"GEN","$@")
816 docs
/interop
/qemu-ga-qapi.texi
: $(SRC_PATH
)/qga
/qapi-schema.json
817 $(call quiet-command
,$(PYTHON
) $(SRC_PATH
)/scripts
/qapi2texi.py
$< > $@
,"GEN","$@")
819 qemu
.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi
820 qemu
.1: qemu-option-trace.texi
821 qemu-img
.1: qemu-img.texi qemu-option-trace.texi qemu-img-cmds.texi
822 fsdev
/virtfs-proxy-helper
.1: fsdev
/virtfs-proxy-helper.texi
823 qemu-nbd
.8: qemu-nbd.texi qemu-option-trace.texi
824 qemu-ga
.8: qemu-ga.texi
825 docs
/qemu-block-drivers
.7: docs
/qemu-block-drivers.texi
827 html
: qemu-doc.html docs
/interop
/qemu-qmp-ref.html docs
/interop
/qemu-ga-ref.html
828 info: qemu-doc.
info docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-ga-ref.
info
829 pdf
: qemu-doc.pdf docs
/interop
/qemu-qmp-ref.pdf docs
/interop
/qemu-ga-ref.pdf
830 txt
: qemu-doc.txt docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-ga-ref.txt
832 qemu-doc.html qemu-doc.
info qemu-doc.pdf qemu-doc.txt
: \
833 qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-option-trace.texi \
834 qemu-monitor.texi qemu-img-cmds.texi qemu-ga.texi \
835 qemu-monitor-info.texi docs
/qemu-block-drivers.texi
837 docs
/interop
/qemu-ga-ref.
dvi docs
/interop
/qemu-ga-ref.html \
838 docs
/interop
/qemu-ga-ref.
info docs
/interop
/qemu-ga-ref.pdf \
839 docs
/interop
/qemu-ga-ref.txt docs
/interop
/qemu-ga-ref
.7: \
840 docs
/interop
/qemu-ga-ref.texi docs
/interop
/qemu-ga-qapi.texi
842 docs
/interop
/qemu-qmp-ref.
dvi docs
/interop
/qemu-qmp-ref.html \
843 docs
/interop
/qemu-qmp-ref.
info docs
/interop
/qemu-qmp-ref.pdf \
844 docs
/interop
/qemu-qmp-ref.txt docs
/interop
/qemu-qmp-ref
.7: \
845 docs
/interop
/qemu-qmp-ref.texi docs
/interop
/qemu-qmp-qapi.texi
850 INSTALLER
= qemu-setup-
$(VERSION
)$(EXESUF
)
852 nsisflags
= -V2
-NOCD
854 ifneq ($(wildcard $(SRC_PATH
)/dll
),)
855 ifeq ($(ARCH
),x86_64
)
857 DLL_PATH
= $(SRC_PATH
)/dll
/w64
861 DLL_PATH
= $(SRC_PATH
)/dll
/w32
866 installer
: $(INSTALLER
)
868 INSTDIR
=/tmp
/qemu-nsis
870 $(INSTALLER
): $(SRC_PATH
)/qemu.nsi
871 $(MAKE
) install prefix=${INSTDIR}
880 for i in qemu-system-
*.exe
; do \
882 arch
=$${arch
#qemu-system-}; \
883 echo Section
\"$$arch\" Section_
$$arch; \
884 echo SetOutPath
\"\
$$INSTDIR\"; \
885 echo File
\"\
$${BINDIR}\\$$i\"; \
888 ) >${INSTDIR}/system-emulations.nsh
889 makensis
$(nsisflags
) \
890 $(if
$(BUILD_DOCS
),-DCONFIG_DOCUMENTATION
="y") \
891 $(if
$(CONFIG_GTK
),-DCONFIG_GTK
="y") \
892 -DBINDIR
="${INSTDIR}" \
893 $(if
$(DLL_PATH
),-DDLLDIR
="$(DLL_PATH)") \
894 -DSRCDIR
="$(SRC_PATH)" \
895 -DOUTFILE
="$(INSTALLER)" \
896 -DDISPLAYVERSION
="$(VERSION)" \
900 $(SIGNCODE
) $(INSTALLER
)
904 # Add a dependency on the generated files, so that they are always
905 # rebuilt before other object files
906 ifneq ($(wildcard config-host.mak
),)
907 ifneq ($(filter-out $(UNCHECKED_GOALS
),$(MAKECMDGOALS
)),$(if
$(MAKECMDGOALS
),,fail
))
908 Makefile
: $(GENERATED_FILES
)
912 .SECONDARY
: $(TRACE_HEADERS
) $(TRACE_HEADERS
:%=%-timestamp
) \
913 $(TRACE_SOURCES
) $(TRACE_SOURCES
:%=%-timestamp
) \
914 $(TRACE_DTRACE
) $(TRACE_DTRACE
:%=%-timestamp
)
916 # Include automatically generated dependency files
917 # Dependencies in Makefile.objs files come from our recursive subdir rules
918 -include $(wildcard *.d tests
/*.d
)
920 include $(SRC_PATH
)/tests
/docker
/Makefile.
include
921 include $(SRC_PATH
)/tests
/vm
/Makefile.
include
925 @echo
'Generic targets:'
926 @echo
' all - Build all'
927 @echo
' dir/file.o - Build specified target only'
928 @echo
' install - Install QEMU, documentation and tools'
929 @echo
' ctags/TAGS - Generate tags file for editors'
930 @echo
' cscope - Generate cscope index'
932 @
$(if
$(TARGET_DIRS
), \
933 echo
'Architecture specific targets:'; \
934 $(foreach t
, $(TARGET_DIRS
), \
935 printf
" %-30s - Build for %s\\n" $(patsubst %,subdir-
%,$(t
)) $(t
);) \
937 @echo
'Cleaning targets:'
938 @echo
' clean - Remove most generated files but keep the config'
939 @echo
' distclean - Remove all generated files'
940 @echo
' dist - Build a distributable tarball'
942 @echo
'Test targets:'
943 @echo
' check - Run all tests (check-help for details)'
944 @echo
' docker - Help about targets running tests inside Docker containers'
945 @echo
' vm-test - Help about targets running tests inside VM'
947 @echo
'Documentation targets:'
948 @echo
' html info pdf txt'
949 @echo
' - Build documentation in specified format'
952 @echo
'Windows targets:'
953 @echo
' installer - Build NSIS-based installer for QEMU'
954 ifdef QEMU_GA_MSI_ENABLED
955 @echo
' msi - Build MSI-based installer for qemu-ga'
959 @echo
' $(MAKE) V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'