netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / vswitchd / automake.mk
1 sbin_PROGRAMS += vswitchd/ovs-vswitchd
2 man_MANS += vswitchd/ovs-vswitchd.8
3 DISTCLEANFILES += \
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 EXTRA_DIST += vswitchd/INTERNALS
20 MAN_ROOTS += vswitchd/ovs-vswitchd.8.in
21
22 # vswitch schema and IDL
23 EXTRA_DIST += vswitchd/vswitch.ovsschema
24 pkgdata_DATA += vswitchd/vswitch.ovsschema
25
26 # vswitch E-R diagram
27 #
28 # If "python" or "dot" is not available, then we do not add graphical diagram
29 # to the documentation.
30 if HAVE_PYTHON
31 if HAVE_DOT
32 vswitchd/vswitch.gv: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
33         $(AM_V_GEN)$(OVSDB_DOT) --no-arrows $(srcdir)/vswitchd/vswitch.ovsschema > $@
34 vswitchd/vswitch.pic: vswitchd/vswitch.gv ovsdb/dot2pic
35         $(AM_V_GEN)(dot -T plain < vswitchd/vswitch.gv | $(PERL) $(srcdir)/ovsdb/dot2pic -f 3) > $@.tmp && \
36         mv $@.tmp $@
37 VSWITCH_PIC = vswitchd/vswitch.pic
38 VSWITCH_DOT_DIAGRAM_ARG = --er-diagram=$(VSWITCH_PIC)
39 DISTCLEANFILES += vswitchd/vswitch.gv vswitchd/vswitch.pic
40 endif
41 endif
42
43 # vswitch schema documentation
44 EXTRA_DIST += vswitchd/vswitch.xml
45 DISTCLEANFILES += vswitchd/ovs-vswitchd.conf.db.5
46 man_MANS += vswitchd/ovs-vswitchd.conf.db.5
47 vswitchd/ovs-vswitchd.conf.db.5: \
48         ovsdb/ovsdb-doc vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \
49         $(VSWITCH_PIC)
50         $(AM_V_GEN)$(OVSDB_DOC) \
51                 $(VSWITCH_DOT_DIAGRAM_ARG) \
52                 --version=$(VERSION) \
53                 $(srcdir)/vswitchd/vswitch.ovsschema \
54                 $(srcdir)/vswitchd/vswitch.xml > $@.tmp && \
55         mv $@.tmp $@
56
57 # Version checking for vswitch.ovsschema.
58 ALL_LOCAL += vswitchd/vswitch.ovsschema.stamp
59 vswitchd/vswitch.ovsschema.stamp: vswitchd/vswitch.ovsschema
60         $(srcdir)/build-aux/cksum-schema-check $? $@
61 CLEANFILES += vswitchd/vswitch.ovsschema.stamp
62
63 # Clean up generated files from older OVS versions.  (This is important so that
64 # #include "vswitch-idl.h" doesn't get the wrong copy.)
65 CLEANFILES += vswitchd/vswitch-idl.c vswitchd/vswitch-idl.h