xenserver: Block until change in poll loop to avoid 100% CPU consumption.
[sliver-openvswitch.git] / vswitchd / automake.mk
1 sbin_PROGRAMS += vswitchd/ovs-vswitchd
2 man_MANS += \
3         vswitchd/ovs-vswitchd.8 \
4         vswitchd/ovs-brcompatd.8
5 DISTCLEANFILES += \
6         vswitchd/ovs-vswitchd.8 \
7         vswitchd/ovs-brcompatd.8
8
9 vswitchd_ovs_vswitchd_SOURCES = \
10         vswitchd/bridge.c \
11         vswitchd/bridge.h \
12         vswitchd/proc-net-compat.c \
13         vswitchd/proc-net-compat.h \
14         vswitchd/ovs-vswitchd.c \
15         vswitchd/vswitch-idl.c \
16         vswitchd/vswitch-idl.h \
17         vswitchd/xenserver.c \
18         vswitchd/xenserver.h
19 vswitchd_ovs_vswitchd_LDADD = \
20         ofproto/libofproto.a \
21         lib/libsflow.a \
22         lib/libopenvswitch.a \
23         $(SSL_LIBS)
24 EXTRA_DIST += \
25         vswitchd/ovs-vswitchd.8.in \
26         vswitchd/INTERNALS
27
28 if HAVE_NETLINK
29 sbin_PROGRAMS += vswitchd/ovs-brcompatd
30 vswitchd_ovs_brcompatd_SOURCES = \
31         vswitchd/ovs-brcompatd.c \
32         vswitchd/vswitch-idl.c \
33         vswitchd/vswitch-idl.h
34 vswitchd_ovs_brcompatd_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
35 endif
36 EXTRA_DIST += vswitchd/ovs-brcompatd.8.in
37
38 # vswitch schema and IDL
39 OVSIDL_BUILT += \
40         vswitchd/vswitch-idl.c \
41         vswitchd/vswitch-idl.h \
42         vswitchd/vswitch-idl.ovsidl
43 VSWITCH_IDL_FILES = vswitchd/vswitch.ovsschema vswitchd/vswitch-idl.ann
44 EXTRA_DIST += $(VSWITCH_IDL_FILES)
45 vswitchd/vswitch-idl.ovsidl: $(VSWITCH_IDL_FILES)
46         $(OVSDB_IDLC) -C $(srcdir) annotate $(VSWITCH_IDL_FILES) > $@.tmp
47         mv $@.tmp $@
48
49 # vswitch E-R diagram
50 if BUILD_ER_DIAGRAMS
51 $(srcdir)/vswitchd/vswitch.pic: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
52         $(OVSDB_DOT) $(srcdir)/vswitchd/vswitch.ovsschema \
53                 | dot -T pic \
54                 | sed -e "/^'/d" \
55                       -e '/^box attrs0/d' \
56                       -e 's/linethick = 0;/linethick = 1;/' \
57                 > $@.tmp
58         mv $@.tmp $@
59 else
60 $(srcdir)/vswitchd/vswitch.pic: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
61         touch $@
62 endif
63 EXTRA_DIST += vswitchd/vswitch.pic
64
65 # vswitch schema documentation
66 EXTRA_DIST += vswitchd/vswitch.xml
67 dist_man_MANS += vswitchd/ovs-vswitchd.conf.db.5
68 vswitchd/ovs-vswitchd.conf.db.5: \
69         ovsdb/ovsdb-doc.in vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \
70         $(srcdir)/vswitchd/vswitch.pic
71         $(OVSDB_DOC) \
72                 --title="ovs-vswitchd.conf.db" \
73                 --er-diagram=$(srcdir)/vswitchd/vswitch.pic \
74                 $(srcdir)/vswitchd/vswitch.ovsschema \
75                 $(srcdir)/vswitchd/vswitch.xml > $@.tmp
76         mv $@.tmp $@