]>
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 | ||
0e8c9214 | 36 | ###################################################################### |
050d9940 CWR |
37 | # Target independent part of system emulation. The long term path is to |
38 | # suppress *all* target specific code in case of system emulation, i.e. a | |
39 | # single QEMU executable should support all CPUs and machines. | |
0e8c9214 | 40 | |
00082344 | 41 | ifeq ($(CONFIG_SOFTMMU),y) |
ff219dca | 42 | common-obj-y = net/ |
ee20477d | 43 | common-obj-$(CONFIG_LINUX) += fsdev/ |
ee20477d | 44 | |
03a7a196 | 45 | common-obj-y += accel/ |
0e8c9214 | 46 | |
478e943f PB |
47 | common-obj-$(CONFIG_AUDIO_ALSA) += audio-alsa$(DSOSUF) |
48 | common-obj-$(CONFIG_AUDIO_OSS) += audio-oss$(DSOSUF) | |
49 | common-obj-$(CONFIG_AUDIO_PA) += audio-pa$(DSOSUF) | |
50 | common-obj-$(CONFIG_AUDIO_SDL) += audio-sdl$(DSOSUF) | |
51 | ||
2b1ccdf4 MAL |
52 | common-obj-$(if $(CONFIG_CURSES),m) += ui-curses$(DSOSUF) |
53 | common-obj-$(if $(CONFIG_GTK),m) += ui-gtk$(DSOSUF) | |
54 | common-obj-$(if $(CONFIG_SDL),m) += ui-sdl$(DSOSUF) | |
55 | common-obj-$(if $(CONFIG_SPICE),m) += ui-spice-app$(DSOSUF) | |
56 | ||
5e5733e5 MAL |
57 | common-obj-$(if $(CONFIG_CURL),m) += block-curl$(DSOSUF) |
58 | common-obj-$(if $(CONFIG_GLUSTERFS),m) += block-gluster$(DSOSUF) | |
59 | common-obj-$(if $(CONFIG_LIBISCSI),m) += block-iscsi$(DSOSUF) | |
60 | common-obj-$(if $(CONFIG_LIBNFS),m) += block-nfs$(DSOSUF) | |
61 | common-obj-$(if $(CONFIG_LIBSSH),m) += block-ssh$(DSOSUF) | |
62 | common-obj-$(if $(CONFIG_RBD),m) += block-rbd$(DSOSUF) | |
63 | ||
64 | common-obj-$(if $(CONFIG_LZFSE),m) += block-dmg-lzfse$(DSOSUF) | |
65 | common-obj-$(if $(and $(CONFIG_BZIP2),$(CONFIG_DMG)),m) += block-dmg-bz2$(DSOSUF) | |
66 | ||
3d5a3f9a | 67 | common-obj-y += hw/ |
8887312b | 68 | common-obj-m += hw/ |
6f991980 | 69 | |
a9b7b2ad AL |
70 | common-obj-y += backends/ |
71 | ||
88554a20 | 72 | common-obj-y += qapi/ |
553ea760 | 73 | |
ff219dca PB |
74 | common-obj-y += libqmp.fa |
75 | ||
553ea760 | 76 | endif # CONFIG_SOFTMMU |
e3193601 | 77 | |
9444e9e6 PB |
78 | ####################################################################### |
79 | # Target-independent parts used in system and user emulation | |
4a96337d | 80 | |
00082344 PB |
81 | common-obj-y += hw/ |
82 | common-obj-y += qom/ | |
83 | common-obj-y += disas/ | |
ce008c1f | 84 | |
0b516ef0 SW |
85 | ###################################################################### |
86 | # Resource file for Windows executables | |
87 | version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o |