X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fautomake.mk;h=6c2019118828a8cedc015ba3db86f81eaa202a6d;hb=f19f25a44b30f090d5cad0c51414998c4ddbae6a;hp=6860488f63f57b19786ae245e002bbc4ffd90424;hpb=d879a707a38eff0335e1b5c12ae4c61f4aa0296b;p=openvswitch diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index 6860488f..6c201911 100644 --- a/vswitchd/automake.mk +++ b/vswitchd/automake.mk @@ -1,47 +1,58 @@ -sbin_PROGRAMS += vswitchd/ovs-vswitchd vswitchd/ovs-brcompatd +sbin_PROGRAMS += vswitchd/ovs-vswitchd man_MANS += \ - vswitchd/ovs-vswitchd.conf.5 \ vswitchd/ovs-vswitchd.8 \ vswitchd/ovs-brcompatd.8 DISTCLEANFILES += \ - vswitchd/ovs-vswitchd.conf.5 \ vswitchd/ovs-vswitchd.8 \ vswitchd/ovs-brcompatd.8 vswitchd_ovs_vswitchd_SOURCES = \ vswitchd/bridge.c \ vswitchd/bridge.h \ - vswitchd/mgmt.c \ - vswitchd/mgmt.h \ vswitchd/proc-net-compat.c \ vswitchd/proc-net-compat.h \ vswitchd/ovs-vswitchd.c \ - vswitchd/ovs-vswitchd.h \ + vswitchd/vswitch-idl.c \ vswitchd/vswitch-idl.h \ vswitchd/xenserver.c \ vswitchd/xenserver.h vswitchd_ovs_vswitchd_LDADD = \ ofproto/libofproto.a \ + lib/libsflow.a \ lib/libopenvswitch.a \ - $(FAULT_LIBS) \ $(SSL_LIBS) - -vswitchd_ovs_brcompatd_SOURCES = \ - vswitchd/ovs-brcompatd.c - -vswitchd_ovs_brcompatd_LDADD = \ - lib/libopenvswitch.a \ - $(FAULT_LIBS) - EXTRA_DIST += \ - vswitchd/ovs-vswitchd.conf.5.in \ vswitchd/ovs-vswitchd.8.in \ - vswitchd/ovs-brcompatd.8.in + vswitchd/INTERNALS -EXTRA_DIST += vswitchd/vswitch.ovsidl -BUILT_SOURCES += vswitchd/vswitch-idl.h -DISTCLEANFILES += \ - vswitchd/vswitch.ovsidl \ +if HAVE_NETLINK +sbin_PROGRAMS += vswitchd/ovs-brcompatd +vswitchd_ovs_brcompatd_SOURCES = \ + vswitchd/ovs-brcompatd.c \ + vswitchd/vswitch-idl.c \ vswitchd/vswitch-idl.h -vswitchd/vswitch-idl.h: vswitchd/vswitch.ovsidl ovsdb/ovsdb-idlc - ovsdb/ovsdb-idlc c-idl-header $(srcdir)/vswitchd/vswitch.ovsidl > $@ +vswitchd_ovs_brcompatd_LDADD = lib/libopenvswitch.a $(SSL_LIBS) +endif +EXTRA_DIST += vswitchd/ovs-brcompatd.8.in + +# vswitch schema and IDL +OVSIDL_BUILT += \ + vswitchd/vswitch-idl.c \ + vswitchd/vswitch-idl.h \ + vswitchd/vswitch-idl.ovsidl +VSWITCH_IDL_FILES = vswitchd/vswitch.ovsschema vswitchd/vswitch-idl.ann +EXTRA_DIST += $(VSWITCH_IDL_FILES) +vswitchd/vswitch-idl.ovsidl: $(VSWITCH_IDL_FILES) + $(OVSDB_IDLC) -C $(srcdir) annotate $(VSWITCH_IDL_FILES) > $@.tmp + mv $@.tmp $@ + +# vswitch schema documentation +EXTRA_DIST += vswitchd/vswitch.xml +dist_man_MANS += vswitchd/ovs-vswitchd.conf.db.5 +vswitchd/ovs-vswitchd.conf.db.5: \ + ovsdb/ovsdb-doc.in vswitchd/vswitch.xml vswitchd/vswitch.ovsschema + $(OVSDB_DOC) \ + --title="ovs-vswitchd.conf.db" \ + $(srcdir)/vswitchd/vswitch.ovsschema \ + $(srcdir)/vswitchd/vswitch.xml > $@.tmp + mv $@.tmp $@