]> git.proxmox.com Git - mirror_ovs.git/blob - vswitchd/automake.mk
upcall: Configure datapath min-revalidate-pps through ovs-vsctl.
[mirror_ovs.git] / vswitchd / automake.mk
1 sbin_PROGRAMS += vswitchd/ovs-vswitchd
2 man_MANS += vswitchd/ovs-vswitchd.8
3 CLEANFILES += \
4 vswitchd/ovs-vswitchd.8
5
6 vswitchd_ovs_vswitchd_SOURCES = \
7 vswitchd/bridge.c \
8 vswitchd/bridge.h \
9 vswitchd/ovs-vswitchd.c \
10 vswitchd/system-stats.c \
11 vswitchd/system-stats.h \
12 vswitchd/xenserver.c \
13 vswitchd/xenserver.h
14 vswitchd_ovs_vswitchd_LDADD = \
15 ofproto/libofproto.la \
16 lib/libsflow.la \
17 lib/libopenvswitch.la
18 vswitchd_ovs_vswitchd_LDFLAGS = $(AM_LDFLAGS) $(DPDK_vswitchd_LDFLAGS)
19 MAN_ROOTS += vswitchd/ovs-vswitchd.8.in
20
21 # vswitch schema and IDL
22 EXTRA_DIST += vswitchd/vswitch.ovsschema
23 pkgdata_DATA += vswitchd/vswitch.ovsschema
24
25 # vswitch E-R diagram
26 #
27 # If "python" or "dot" is not available, then we do not add graphical diagram
28 # to the documentation.
29 if HAVE_PYTHON
30 if HAVE_DOT
31 vswitchd/vswitch.gv: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
32 $(AM_V_GEN)$(OVSDB_DOT) --no-arrows $(srcdir)/vswitchd/vswitch.ovsschema > $@
33 vswitchd/vswitch.pic: vswitchd/vswitch.gv ovsdb/dot2pic
34 $(AM_V_GEN)(dot -T plain < vswitchd/vswitch.gv | $(PYTHON) $(srcdir)/ovsdb/dot2pic -f 3) > $@.tmp && \
35 mv $@.tmp $@
36 VSWITCH_PIC = vswitchd/vswitch.pic
37 VSWITCH_DOT_DIAGRAM_ARG = --er-diagram=$(VSWITCH_PIC)
38 CLEANFILES += vswitchd/vswitch.gv vswitchd/vswitch.pic
39 endif
40 endif
41
42 # vswitch schema documentation
43 EXTRA_DIST += vswitchd/vswitch.xml
44 CLEANFILES += vswitchd/ovs-vswitchd.conf.db.5
45 man_MANS += vswitchd/ovs-vswitchd.conf.db.5
46 vswitchd/ovs-vswitchd.conf.db.5: \
47 ovsdb/ovsdb-doc vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \
48 $(VSWITCH_PIC)
49 $(AM_V_GEN)$(OVSDB_DOC) \
50 $(VSWITCH_DOT_DIAGRAM_ARG) \
51 --version=$(VERSION) \
52 $(srcdir)/vswitchd/vswitch.ovsschema \
53 $(srcdir)/vswitchd/vswitch.xml > $@.tmp && \
54 mv $@.tmp $@
55
56 # Version checking for vswitch.ovsschema.
57 ALL_LOCAL += vswitchd/vswitch.ovsschema.stamp
58 vswitchd/vswitch.ovsschema.stamp: vswitchd/vswitch.ovsschema
59 $(srcdir)/build-aux/cksum-schema-check $? $@
60 CLEANFILES += vswitchd/vswitch.ovsschema.stamp
61
62 # Clean up generated files from older OVS versions. (This is important so that
63 # #include "vswitch-idl.h" doesn't get the wrong copy.)
64 CLEANFILES += vswitchd/vswitch-idl.c vswitchd/vswitch-idl.h