1 sbin_PROGRAMS
+= vswitchd
/ovs-vswitchd
2 man_MANS
+= vswitchd
/ovs-vswitchd
.8
4 man_MANS
+= vswitchd
/ovs-brcompatd
.8
7 vswitchd
/ovs-vswitchd
.8 \
8 vswitchd
/ovs-brcompatd
.8
10 vswitchd_ovs_vswitchd_SOURCES
= \
13 vswitchd
/ovs-vswitchd.c \
14 vswitchd
/system-stats.c \
15 vswitchd
/system-stats.h \
16 vswitchd
/vswitch-idl.c \
17 vswitchd
/vswitch-idl.h \
18 vswitchd
/xenserver.c \
20 vswitchd_ovs_vswitchd_LDADD
= \
21 ofproto
/libofproto.a \
23 lib
/libopenvswitch.a \
25 EXTRA_DIST
+= vswitchd
/INTERNALS
26 MAN_ROOTS
+= vswitchd
/ovs-vswitchd
.8.in
30 sbin_PROGRAMS
+= vswitchd
/ovs-brcompatd
31 vswitchd_ovs_brcompatd_SOURCES
= \
32 vswitchd
/ovs-brcompatd.c \
33 vswitchd
/vswitch-idl.c \
34 vswitchd
/vswitch-idl.h
35 vswitchd_ovs_brcompatd_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
37 MAN_ROOTS
+= vswitchd
/ovs-brcompatd
.8.in
40 # vswitch schema and IDL
42 vswitchd
/vswitch-idl.c \
43 vswitchd
/vswitch-idl.h \
44 vswitchd
/vswitch-idl.ovsidl
45 VSWITCH_IDL_FILES
= vswitchd
/vswitch.ovsschema vswitchd
/vswitch-idl.ann
46 EXTRA_DIST
+= $(VSWITCH_IDL_FILES
)
47 pkgdata_DATA
+= vswitchd
/vswitch.ovsschema
48 vswitchd
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
49 $(OVSDB_IDLC
) -C
$(srcdir) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
54 # There are two complications here. First, if "python" or "dot" is not
55 # available, then we have to just use the existing diagram. Second, different
56 # "dot" versions produce slightly different output for the same input, but we
57 # don't want to gratuitously change vswitch.pic if someone tweaks the schema in
58 # some minor way that doesn't affect the table structure. To avoid that we
59 # store a checksum of vswitch.gv in vswitch.pic and only regenerate vswitch.pic
60 # if vswitch.gv actually changes.
61 $(srcdir)/vswitchd
/vswitch.gv
: ovsdb
/ovsdb-dot.in vswitchd
/vswitch.ovsschema
63 $(OVSDB_DOT
) $(srcdir)/vswitchd
/vswitch.ovsschema
> $@
67 $(srcdir)/vswitchd
/vswitch.pic
: $(srcdir)/vswitchd
/vswitch.gv ovsdb
/dot2pic
69 sum
=`cksum < $(srcdir)/vswitchd/vswitch.gv`; \
70 if grep
"$$sum" $@
>/dev
/null
2>&1; then \
71 echo
"vswitch.gv unchanged, not regenerating vswitch.pic"; \
74 echo
"regenerating vswitch.pic"; \
75 (echo
".\\\" Generated from vswitch.gv with cksum \"$$sum\""; \
76 dot
-T plain
< $(srcdir)/vswitchd
/vswitch.gv \
77 |
$(srcdir)/ovsdb
/dot2pic
) > $@
; \
82 EXTRA_DIST
+= vswitchd
/vswitch.gv vswitchd
/vswitch.pic
84 # vswitch schema documentation
85 EXTRA_DIST
+= vswitchd
/vswitch.xml
86 dist_man_MANS
+= vswitchd
/ovs-vswitchd.conf.db
.5
87 $(srcdir)/vswitchd
/ovs-vswitchd.conf.db
.5: \
88 ovsdb
/ovsdb-doc.in vswitchd
/vswitch.xml vswitchd
/vswitch.ovsschema \
89 $(srcdir)/vswitchd
/vswitch.pic
91 --title
="ovs-vswitchd.conf.db" \
92 --er-diagram
=$(srcdir)/vswitchd
/vswitch.pic \
93 $(srcdir)/vswitchd
/vswitch.ovsschema \
94 $(srcdir)/vswitchd
/vswitch.xml
> $@.tmp
97 # Version checking for vswitch.ovsschema.
98 ALL_LOCAL
+= vswitchd
/vswitch.ovsschema.stamp
99 vswitchd
/vswitch.ovsschema.stamp
: vswitchd
/vswitch.ovsschema
100 @sum
=`sed '/cksum/d' $? | cksum`; \
101 expected
=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $?`; \
102 if
test "X$$sum" = "X$$expected"; then \
105 ln
=`sed -n '/"cksum":/=' $?`; \
106 echo
>&2 "$?:$$ln: checksum \"$$sum\" does not match (you should probably update the version number and fix the checksum)"; \
109 CLEANFILES
+= vswitchd
/vswitch.ovsschema.stamp