]> git.proxmox.com Git - mirror_ovs.git/blob - vtep/automake.mk
vconn: Allow timeout configuration for blocking connection.
[mirror_ovs.git] / vtep / automake.mk
1 # vtep IDL
2 OVSIDL_BUILT += \
3 vtep/vtep-idl.c \
4 vtep/vtep-idl.h \
5 vtep/vtep-idl.ovsidl
6 EXTRA_DIST += vtep/vtep-idl.ann
7 VTEP_IDL_FILES = \
8 $(srcdir)/vtep/vtep.ovsschema \
9 $(srcdir)/vtep/vtep-idl.ann
10 vtep/vtep-idl.ovsidl: $(VTEP_IDL_FILES)
11 $(AM_V_GEN)$(OVSDB_IDLC) annotate $(VTEP_IDL_FILES) > $@.tmp && \
12 mv $@.tmp $@
13
14 # libvtep
15 lib_LTLIBRARIES += vtep/libvtep.la
16 vtep_libvtep_la_LDFLAGS = \
17 $(OVS_LTINFO) \
18 -Wl,--version-script=$(top_builddir)/vtep/libvtep.sym \
19 $(AM_LDFLAGS)
20 nodist_vtep_libvtep_la_SOURCES = \
21 vtep/vtep-idl.c \
22 vtep/vtep-idl.h
23
24 bin_PROGRAMS += \
25 vtep/vtep-ctl
26
27 MAN_ROOTS += \
28 vtep/vtep-ctl.8.in
29
30 CLEANFILES += \
31 vtep/vtep-ctl.8
32
33 man_MANS += \
34 vtep/vtep-ctl.8
35
36 vtep_vtep_ctl_SOURCES = vtep/vtep-ctl.c
37 vtep_vtep_ctl_LDADD = vtep/libvtep.la lib/libopenvswitch.la
38
39 # ovs-vtep
40 scripts_SCRIPTS += \
41 vtep/ovs-vtep
42
43 EXTRA_DIST += vtep/ovs-vtep.in
44 CLEANFILES += vtep/ovs-vtep
45
46 FLAKE8_PYFILES += vtep/ovs-vtep
47
48 # VTEP schema and IDL
49 EXTRA_DIST += vtep/vtep.ovsschema
50 pkgdata_DATA += vtep/vtep.ovsschema
51
52 # VTEP E-R diagram
53 #
54 # If "python" or "dot" is not available, then we do not add graphical diagram
55 # to the documentation.
56 if HAVE_PYTHON
57 if HAVE_DOT
58 vtep/vtep.gv: ovsdb/ovsdb-dot.in vtep/vtep.ovsschema
59 $(AM_V_GEN)$(OVSDB_DOT) --no-arrows $(srcdir)/vtep/vtep.ovsschema > $@
60 vtep/vtep.pic: vtep/vtep.gv ovsdb/dot2pic
61 $(AM_V_GEN)(dot -T plain < vtep/vtep.gv | $(PYTHON) $(srcdir)/ovsdb/dot2pic -f 3) > $@.tmp && \
62 mv $@.tmp $@
63 VTEP_PIC = vtep/vtep.pic
64 VTEP_DOT_DIAGRAM_ARG = --er-diagram=$(VTEP_PIC)
65 CLEANFILES += vtep/vtep.gv vtep/vtep.pic
66 endif
67 endif
68
69 # VTEP schema documentation
70 EXTRA_DIST += vtep/vtep.xml
71 CLEANFILES += vtep/vtep.5
72 man_MANS += vtep/vtep.5
73 vtep/vtep.5: \
74 ovsdb/ovsdb-doc vtep/vtep.xml $(srcdir)/vtep/vtep.ovsschema $(VTEP_PIC)
75 $(AM_V_GEN)$(OVSDB_DOC) \
76 $(VTEP_DOT_DIAGRAM_ARG) \
77 --version=$(VERSION) \
78 $(srcdir)/vtep/vtep.ovsschema \
79 $(srcdir)/vtep/vtep.xml > $@.tmp && \
80 mv $@.tmp $@
81
82 # Version checking for vtep.ovsschema.
83 ALL_LOCAL += vtep/vtep.ovsschema.stamp
84 vtep/vtep.ovsschema.stamp: vtep/vtep.ovsschema
85 $(srcdir)/build-aux/cksum-schema-check $? $@
86 CLEANFILES += vtep/vtep.ovsschema.stamp