summaryrefslogtreecommitdiffstats
path: root/xlators/features/qemu-block/src/Makefile.am
blob: de14a971e2aa1c2cf138e3ab41b3b26c100c3bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
if ENABLE_QEMU_BLOCK
xlator_LTLIBRARIES = qemu-block.la
xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/features

qemu_block_la_LDFLAGS = -module -avoid-version
qemu_block_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(GLIB_LIBS) $(ZLIB_LIBS) -lrt

qemu_block_la_SOURCES_qemu = \
	$(CONTRIBDIR)/qemu/qemu-coroutine.c \
	$(CONTRIBDIR)/qemu/qemu-coroutine-lock.c \
	$(CONTRIBDIR)/qemu/qemu-coroutine-sleep.c \
	$(CONTRIBDIR)/qemu/coroutine-ucontext.c \
	$(CONTRIBDIR)/qemu/block.c \
	$(CONTRIBDIR)/qemu/nop-symbols.c

qemu_block_la_SOURCES_qemu_util = \
	$(CONTRIBDIR)/qemu/util/aes.c \
	$(CONTRIBDIR)/qemu/util/bitmap.c \
	$(CONTRIBDIR)/qemu/util/bitops.c \
	$(CONTRIBDIR)/qemu/util/cutils.c \
	$(CONTRIBDIR)/qemu/util/error.c \
	$(CONTRIBDIR)/qemu/util/hbitmap.c \
	$(CONTRIBDIR)/qemu/util/iov.c \
	$(CONTRIBDIR)/qemu/util/module.c \
	$(CONTRIBDIR)/qemu/util/oslib-posix.c \
	$(CONTRIBDIR)/qemu/util/qemu-option.c \
	$(CONTRIBDIR)/qemu/util/qemu-error.c \
	$(CONTRIBDIR)/qemu/util/qemu-thread-posix.c \
	$(CONTRIBDIR)/qemu/util/unicode.c \
	$(CONTRIBDIR)/qemu/util/hexdump.c

qemu_block_la_SOURCES_qemu_block = \
	$(CONTRIBDIR)/qemu/block/snapshot.c \
	$(CONTRIBDIR)/qemu/block/qcow2-cache.c \
	$(CONTRIBDIR)/qemu/block/qcow2-cluster.c \
	$(CONTRIBDIR)/qemu/block/qcow2-refcount.c \
	$(CONTRIBDIR)/qemu/block/qcow2-snapshot.c \
	$(CONTRIBDIR)/qemu/block/qcow2.c \
	$(CONTRIBDIR)/qemu/block/qed-check.c \
	$(CONTRIBDIR)/qemu/block/qed-cluster.c \
	$(CONTRIBDIR)/qemu/block/qed-gencb.c \
	$(CONTRIBDIR)/qemu/block/qed-l2-cache.c \
	$(CONTRIBDIR)/qemu/block/qed-table.c \
	$(CONTRIBDIR)/qemu/block/qed.c

qemu_block_la_SOURCES_qemu_qobject = \
	$(CONTRIBDIR)/qemu/qobject/json-lexer.c \
	$(CONTRIBDIR)/qemu/qobject/json-parser.c \
	$(CONTRIBDIR)/qemu/qobject/json-streamer.c \
	$(CONTRIBDIR)/qemu/qobject/qbool.c \
	$(CONTRIBDIR)/qemu/qobject/qdict.c \
	$(CONTRIBDIR)/qemu/qobject/qerror.c \
	$(CONTRIBDIR)/qemu/qobject/qfloat.c \
	$(CONTRIBDIR)/qemu/qobject/qint.c \
	$(CONTRIBDIR)/qemu/qobject/qjson.c \
	$(CONTRIBDIR)/qemu/qobject/qlist.c \
	$(CONTRIBDIR)/qemu/qobject/qstring.c

qemu_block_la_SOURCES = \
	$(qemu_block_la_SOURCES_qemu) \
	$(qemu_block_la_SOURCES_qemu_util) \
	$(qemu_block_la_SOURCES_qemu_block) \
	$(qemu_block_la_SOURCES_qemu_qobject) \
	bdrv-xlator.c \
	coroutine-synctask.c \
	bh-syncop.c \
	monitor-logging.c \
	clock-timer.c \
	qemu-block.c \
	qb-coroutines.c

noinst_HEADERS_qemu = \
	$(CONTRIBDIR)/qemu/config-host.h \
	$(CONTRIBDIR)/qemu/qapi-types.h \
	$(CONTRIBDIR)/qemu/qmp-commands.h \
	$(CONTRIBDIR)/qemu/trace/generated-tracers.h \
	$(CONTRIBDIR)/qemu/include/config.h \
	$(CONTRIBDIR)/qemu/include/glib-compat.h \
	$(CONTRIBDIR)/qemu/include/qemu-common.h \
	$(CONTRIBDIR)/qemu/include/trace.h \
	$(CONTRIBDIR)/qemu/include/block/coroutine.h \
	$(CONTRIBDIR)/qemu/include/block/aio.h \
	$(CONTRIBDIR)/qemu/include/block/block.h \
	$(CONTRIBDIR)/qemu/include/block/block_int.h \
	$(CONTRIBDIR)/qemu/include/block/blockjob.h \
	$(CONTRIBDIR)/qemu/include/block/coroutine.h \
	$(CONTRIBDIR)/qemu/include/block/coroutine_int.h \
	$(CONTRIBDIR)/qemu/include/block/snapshot.h \
	$(CONTRIBDIR)/qemu/include/exec/cpu-common.h \
	$(CONTRIBDIR)/qemu/include/exec/hwaddr.h \
	$(CONTRIBDIR)/qemu/include/exec/poison.h \
	$(CONTRIBDIR)/qemu/include/fpu/softfloat.h \
	$(CONTRIBDIR)/qemu/include/migration/migration.h \
	$(CONTRIBDIR)/qemu/include/migration/qemu-file.h \
	$(CONTRIBDIR)/qemu/include/migration/vmstate.h \
	$(CONTRIBDIR)/qemu/include/monitor/monitor.h \
	$(CONTRIBDIR)/qemu/include/monitor/readline.h \
	$(CONTRIBDIR)/qemu/include/qapi/error.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/json-lexer.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/json-parser.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/json-streamer.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qbool.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qdict.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qerror.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qfloat.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qint.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qjson.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qlist.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qobject.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/qstring.h \
	$(CONTRIBDIR)/qemu/include/qapi/qmp/types.h \
	$(CONTRIBDIR)/qemu/include/qemu/aes.h \
	$(CONTRIBDIR)/qemu/include/qemu/atomic.h \
	$(CONTRIBDIR)/qemu/include/qemu/bitmap.h \
	$(CONTRIBDIR)/qemu/include/qemu/bitops.h \
	$(CONTRIBDIR)/qemu/include/qemu/bswap.h \
	$(CONTRIBDIR)/qemu/include/qemu/compiler.h \
	$(CONTRIBDIR)/qemu/include/qemu/error-report.h \
	$(CONTRIBDIR)/qemu/include/qemu/event_notifier.h \
	$(CONTRIBDIR)/qemu/include/qemu/hbitmap.h \
	$(CONTRIBDIR)/qemu/include/qemu/host-utils.h \
	$(CONTRIBDIR)/qemu/include/qemu/iov.h \
	$(CONTRIBDIR)/qemu/include/qemu/main-loop.h \
	$(CONTRIBDIR)/qemu/include/qemu/module.h \
	$(CONTRIBDIR)/qemu/include/qemu/notify.h \
	$(CONTRIBDIR)/qemu/include/qemu/option.h \
	$(CONTRIBDIR)/qemu/include/qemu/option_int.h \
	$(CONTRIBDIR)/qemu/include/qemu/osdep.h \
	$(CONTRIBDIR)/qemu/include/qemu/queue.h \
	$(CONTRIBDIR)/qemu/include/qemu/sockets.h \
	$(CONTRIBDIR)/qemu/include/qemu/thread-posix.h \
	$(CONTRIBDIR)/qemu/include/qemu/thread.h \
	$(CONTRIBDIR)/qemu/include/qemu/timer.h \
	$(CONTRIBDIR)/qemu/include/qemu/typedefs.h \
	$(CONTRIBDIR)/qemu/include/sysemu/sysemu.h \
	$(CONTRIBDIR)/qemu/include/sysemu/os-posix.h \
	$(CONTRIBDIR)/qemu/block/qcow2.h \
	$(CONTRIBDIR)/qemu/block/qed.h

noinst_HEADERS = \
	$(noinst_HEADERS_qemu) \
	qemu-block.h \
	qemu-block-memory-types.h \
	qb-coroutines.h

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
            -I$(CONTRIBDIR)/qemu \
            -I$(CONTRIBDIR)/qemu/include \
            -DGLUSTER_XLATOR

AM_CFLAGS = -fno-strict-aliasing -Wall $(GF_CFLAGS) $(GLIB_CFLAGS)

CLEANFILES =

endif