2009-07-08 13:19:16 -07:00
|
|
|
# Some modules should be built and distributed, e.g. openvswitch.
|
|
|
|
#
|
|
|
|
# Some modules should be built but not distributed, e.g. third-party
|
|
|
|
# hwtable modules.
|
2015-04-04 08:24:13 +02:00
|
|
|
build_multi_modules = \
|
|
|
|
openvswitch
|
|
|
|
both_modules = \
|
|
|
|
$(build_multi_modules) \
|
|
|
|
vport_geneve \
|
|
|
|
vport_gre \
|
|
|
|
vport_lisp \
|
2015-04-09 20:12:32 -07:00
|
|
|
vport_stt \
|
2015-04-04 08:24:13 +02:00
|
|
|
vport_vxlan
|
2015-04-17 11:30:18 -07:00
|
|
|
# When changing the name of 'build_modules', please also update the
|
|
|
|
# print-build-modules in Makefile.am.
|
2009-07-08 13:19:16 -07:00
|
|
|
build_modules = $(both_modules) # Modules to build
|
|
|
|
dist_modules = $(both_modules) # Modules to distribute
|
|
|
|
|
|
|
|
openvswitch_sources = \
|
|
|
|
actions.c \
|
2015-12-02 23:53:50 -08:00
|
|
|
conntrack.c \
|
2009-07-08 13:19:16 -07:00
|
|
|
datapath.c \
|
|
|
|
dp_notify.c \
|
|
|
|
flow.c \
|
2013-09-11 20:26:11 -07:00
|
|
|
flow_netlink.c \
|
|
|
|
flow_table.c \
|
2010-04-12 15:53:39 -04:00
|
|
|
vport.c \
|
|
|
|
vport-internal_dev.c \
|
2015-04-04 08:24:13 +02:00
|
|
|
vport-netdev.c
|
|
|
|
|
|
|
|
vport_geneve_sources = vport-geneve.c
|
|
|
|
vport_vxlan_sources = vport-vxlan.c
|
|
|
|
vport_gre_sources = vport-gre.c
|
|
|
|
vport_lisp_sources = vport-lisp.c
|
2015-04-09 20:12:32 -07:00
|
|
|
vport_stt_sources = vport-stt.c
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
|
|
openvswitch_headers = \
|
2011-03-11 14:58:18 -08:00
|
|
|
compat.h \
|
2015-12-02 23:53:50 -08:00
|
|
|
conntrack.h \
|
2009-07-08 13:19:16 -07:00
|
|
|
datapath.h \
|
2010-04-12 15:53:39 -04:00
|
|
|
flow.h \
|
2013-09-11 20:26:11 -07:00
|
|
|
flow_netlink.h \
|
|
|
|
flow_table.h \
|
2010-12-30 20:48:38 -08:00
|
|
|
vlan.h \
|
2010-04-12 15:53:39 -04:00
|
|
|
vport.h \
|
|
|
|
vport-internal_dev.h \
|
2015-12-03 11:40:53 -08:00
|
|
|
vport-netdev.h
|
2009-07-08 13:19:16 -07:00
|
|
|
|
2011-08-24 15:12:06 +09:00
|
|
|
openvswitch_extras = \
|
2014-10-28 11:19:52 +01:00
|
|
|
README.md
|
2011-08-24 15:12:06 +09:00
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
|
|
|
|
dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
|
2011-08-24 15:12:06 +09:00
|
|
|
dist_extras = $(foreach module,$(dist_modules),$($(module)_extras))
|
2009-07-08 13:19:16 -07:00
|
|
|
build_sources = $(foreach module,$(build_modules),$($(module)_sources))
|
|
|
|
build_headers = $(foreach module,$(build_modules),$($(module)_headers))
|
|
|
|
build_links = $(notdir $(build_sources))
|
|
|
|
build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))
|