]>
Commit | Line | Data |
---|---|---|
3bc2f570 | 1 | ####################################################################### |
a372823a | 2 | # Common libraries for tools and emulators |
de59dda3 | 3 | qom-obj-y = qom/libqom.fa |
32d955a4 | 4 | |
5b76dd13 | 5 | ####################################################################### |
4dd9c3d0 | 6 | # code used by both qemu system emulation and qemu-img |
5b76dd13 | 7 | |
4dd9c3d0 | 8 | ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y) |
5b76dd13 | 9 | |
5e7fbd25 MAL |
10 | authz-obj-y = authz/libauthz.fa |
11 | authz/libauthz.fa-libs = $(if $(CONFIG_AUTH_PAM),-lpam) | |
0e8c9214 | 12 | |
5e5733e5 MAL |
13 | block-obj-y += libblock.fa |
14 | ||
15 | libblock.fa-libs = $(ZSTD_LIBS) | |
16 | libblock.fa-libs += $(LIBNFS_LIBS) | |
17 | libblock.fa-libs += $(LIBISCSI_LIBS) | |
18 | libblock.fa-libs += $(CURL_LIBS) | |
19 | libblock.fa-libs += $(RBD_LIBS) | |
20 | libblock.fa-libs += $(GLUSTERFS_LIBS) | |
21 | libblock.fa-libs += $(VXHS_LIBS) | |
22 | libblock.fa-libs += $(LIBSSH_LIBS) | |
23 | libblock.fa-libs += $(BZIP2_LIBS) | |
24 | libblock.fa-libs += $(LZFSE_LIBS) | |
25 | libblock.fa-libs += $(if $(CONFIG_LINUX_AIO),-laio) | |
26 | libblock.fa-libs += $(LIBXML2_LIBS) | |
cc475698 | 27 | |
848e8ff6 MAL |
28 | chardev-obj-y = chardev/libchardev.fa |
29 | ||
5582c58f | 30 | crypto-obj-y = crypto/libcrypto.fa |
74db920c | 31 | |
7fcfd456 | 32 | io-obj-y = io/libio.fa |
666a3af9 | 33 | |
4dd9c3d0 PMD |
34 | endif # CONFIG_SOFTMMU or CONFIG_TOOLS |
35 | ||
14837c64 KW |
36 | ####################################################################### |
37 | # storage-daemon-obj-y is code used by qemu-storage-daemon (these objects are | |
38 | # used for system emulation, too, but specified separately there) | |
39 | ||
2af282ec KW |
40 | storage-daemon-obj-y = block/ monitor/ qapi/ qom/ storage-daemon/ |
41 | storage-daemon-obj-y += blockdev.o blockdev-nbd.o iothread.o job-qmp.o | |
aa70683d KW |
42 | storage-daemon-obj-$(CONFIG_WIN32) += os-win32.o |
43 | storage-daemon-obj-$(CONFIG_POSIX) += os-posix.o | |
14837c64 | 44 | |
0e8c9214 | 45 | ###################################################################### |
050d9940 CWR |
46 | # Target independent part of system emulation. The long term path is to |
47 | # suppress *all* target specific code in case of system emulation, i.e. a | |
48 | # single QEMU executable should support all CPUs and machines. | |
0e8c9214 | 49 | |
00082344 | 50 | ifeq ($(CONFIG_SOFTMMU),y) |
5e5733e5 | 51 | common-obj-y = blockdev.o blockdev-nbd.o |
5ddc6482 | 52 | common-obj-y += bootdevice.o iothread.o |
2608b3df | 53 | common-obj-y += dump/ |
1a90bc81 | 54 | common-obj-y += job-qmp.o |
7e3c0dea | 55 | common-obj-y += monitor/ |
fd9400b3 | 56 | common-obj-y += net/ |
a2dde2f2 | 57 | common-obj-y += qdev-monitor.o |
b0cb640a BS |
58 | common-obj-$(CONFIG_WIN32) += os-win32.o |
59 | common-obj-$(CONFIG_POSIX) += os-posix.o | |
254e5950 | 60 | |
ee20477d | 61 | common-obj-$(CONFIG_LINUX) += fsdev/ |
ee20477d | 62 | |
03a7a196 | 63 | common-obj-y += accel/ |
60fe637b | 64 | common-obj-y += migration/ |
0e8c9214 | 65 | |
5e5733e5 MAL |
66 | common-obj-$(if $(CONFIG_CURL),m) += block-curl$(DSOSUF) |
67 | common-obj-$(if $(CONFIG_GLUSTERFS),m) += block-gluster$(DSOSUF) | |
68 | common-obj-$(if $(CONFIG_LIBISCSI),m) += block-iscsi$(DSOSUF) | |
69 | common-obj-$(if $(CONFIG_LIBNFS),m) += block-nfs$(DSOSUF) | |
70 | common-obj-$(if $(CONFIG_LIBSSH),m) += block-ssh$(DSOSUF) | |
71 | common-obj-$(if $(CONFIG_RBD),m) += block-rbd$(DSOSUF) | |
72 | ||
73 | common-obj-$(if $(CONFIG_LZFSE),m) += block-dmg-lzfse$(DSOSUF) | |
74 | common-obj-$(if $(and $(CONFIG_BZIP2),$(CONFIG_DMG)),m) += block-dmg-bz2$(DSOSUF) | |
75 | ||
b0b68fc6 | 76 | common-obj-y += audio/ |
08a05b37 | 77 | common-obj-m += audio/ |
3d5a3f9a | 78 | common-obj-y += hw/ |
8887312b | 79 | common-obj-m += hw/ |
6f991980 | 80 | |
d73abd6d PD |
81 | common-obj-y += replay/ |
82 | ||
8867aef0 | 83 | common-obj-y += ui/ |
61b4d9a2 | 84 | common-obj-m += ui/ |
3e230dd2 | 85 | |
c9159fe9 | 86 | common-obj-y += dma-helpers.o |
c39f95dc | 87 | common-obj-$(CONFIG_TPM) += tpm.o |
0e8c9214 | 88 | |
a9b7b2ad | 89 | common-obj-y += backends/ |
6b10e573 | 90 | common-obj-y += chardev/ |
ef138c77 | 91 | common-obj-m += chardev/ |
a9b7b2ad | 92 | |
737f3518 | 93 | common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o |
c3883e1f FZ |
94 | qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS) |
95 | qemu-seccomp.o-libs := $(SECCOMP_LIBS) | |
f794573e | 96 | |
7df057ba PC |
97 | common-obj-$(CONFIG_FDT) += device_tree.o |
98 | ||
88554a20 | 99 | common-obj-y += qapi/ |
553ea760 PMD |
100 | |
101 | endif # CONFIG_SOFTMMU | |
e3193601 | 102 | |
9444e9e6 PB |
103 | ####################################################################### |
104 | # Target-independent parts used in system and user emulation | |
c482cb11 | 105 | common-obj-y += cpus-common.o |
00082344 PB |
106 | common-obj-y += hw/ |
107 | common-obj-y += qom/ | |
108 | common-obj-y += disas/ | |
ce008c1f | 109 | |
0b516ef0 SW |
110 | ###################################################################### |
111 | # Resource file for Windows executables | |
112 | version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o |