]> git.proxmox.com Git - mirror_ovs.git/blame - vswitchd/automake.mk
Merge branch 'dpdk_merge' of https://github.com/istokes/ovs into HEAD
[mirror_ovs.git] / vswitchd / automake.mk
CommitLineData
e75e8930 1sbin_PROGRAMS += vswitchd/ovs-vswitchd
d8965755 2man_MANS += vswitchd/ovs-vswitchd.8
70969b09 3CLEANFILES += \
5ca1ba48 4 vswitchd/ovs-vswitchd.8
064af421
BP
5
6vswitchd_ovs_vswitchd_SOURCES = \
7 vswitchd/bridge.c \
8 vswitchd/bridge.h \
064af421 9 vswitchd/ovs-vswitchd.c \
ce887677 10 vswitchd/system-stats.c \
fca426ef 11 vswitchd/system-stats.h \
064af421
BP
12 vswitchd/xenserver.c \
13 vswitchd/xenserver.h
14vswitchd_ovs_vswitchd_LDADD = \
38b7a52b
HS
15 ofproto/libofproto.la \
16 lib/libsflow.la \
96d87817 17 lib/libopenvswitch.la
9475dfeb 18vswitchd_ovs_vswitchd_LDFLAGS = $(AM_LDFLAGS) $(DPDK_vswitchd_LDFLAGS)
6ca37677 19MAN_ROOTS += vswitchd/ovs-vswitchd.8.in
064af421 20
00732bf5 21# vswitch schema and IDL
6e037e3c 22EXTRA_DIST += vswitchd/vswitch.ovsschema
9c16ed64 23pkgdata_DATA += vswitchd/vswitch.ovsschema
89365653 24
f8d739a9 25# vswitch E-R diagram
7c9b0073 26#
a5ae88ff
AA
27# If "python" or "dot" is not available, then we do not add graphical diagram
28# to the documentation.
7c9b0073 29if HAVE_PYTHON
a5ae88ff
AA
30if HAVE_DOT
31vswitchd/vswitch.gv: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
ef44aa50 32 $(AM_V_GEN)$(OVSDB_DOT) --no-arrows $(srcdir)/vswitchd/vswitch.ovsschema > $@
9e3c9532 33vswitchd/vswitch.pic: vswitchd/vswitch.gv ovsdb/dot2pic
ddd7d381 34 $(AM_V_GEN)(dot -T plain < vswitchd/vswitch.gv | $(PYTHON) $(srcdir)/ovsdb/dot2pic -f 3) > $@.tmp && \
88aff48d 35 mv $@.tmp $@
a5ae88ff 36VSWITCH_PIC = vswitchd/vswitch.pic
29894c88 37VSWITCH_DOT_DIAGRAM_ARG = --er-diagram=$(VSWITCH_PIC)
70969b09 38CLEANFILES += vswitchd/vswitch.gv vswitchd/vswitch.pic
7c9b0073 39endif
f8d739a9 40endif
f8d739a9 41
89365653
BP
42# vswitch schema documentation
43EXTRA_DIST += vswitchd/vswitch.xml
70969b09 44CLEANFILES += vswitchd/ovs-vswitchd.conf.db.5
a5ae88ff
AA
45man_MANS += vswitchd/ovs-vswitchd.conf.db.5
46vswitchd/ovs-vswitchd.conf.db.5: \
e627259a 47 ovsdb/ovsdb-doc vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \
a5ae88ff 48 $(VSWITCH_PIC)
ef44aa50 49 $(AM_V_GEN)$(OVSDB_DOC) \
29894c88 50 $(VSWITCH_DOT_DIAGRAM_ARG) \
54c18b66 51 --version=$(VERSION) \
89365653 52 $(srcdir)/vswitchd/vswitch.ovsschema \
ef44aa50 53 $(srcdir)/vswitchd/vswitch.xml > $@.tmp && \
89365653 54 mv $@.tmp $@
8159b984
BP
55
56# Version checking for vswitch.ovsschema.
57ALL_LOCAL += vswitchd/vswitch.ovsschema.stamp
58vswitchd/vswitch.ovsschema.stamp: vswitchd/vswitch.ovsschema
abc67c1e 59 $(srcdir)/build-aux/cksum-schema-check $? $@
a87c35f1 60CLEANFILES += vswitchd/vswitch.ovsschema.stamp
eaa67ba8
BP
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.)
64CLEANFILES += vswitchd/vswitch-idl.c vswitchd/vswitch-idl.h