2009-07-08 13:19:16 -07:00
|
|
|
# Some modules should be built and distributed, e.g. openvswitch.
|
|
|
|
#
|
|
|
|
# Some modules should be distributed but not built, e.g. we do not build
|
|
|
|
# veth if the kernel in question already has it.
|
|
|
|
#
|
|
|
|
# Some modules should be built but not distributed, e.g. third-party
|
|
|
|
# hwtable modules.
|
|
|
|
both_modules = openvswitch
|
|
|
|
build_modules = $(both_modules) # Modules to build
|
|
|
|
dist_modules = $(both_modules) # Modules to distribute
|
|
|
|
|
|
|
|
openvswitch_sources = \
|
|
|
|
actions.c \
|
2010-11-22 14:17:24 -08:00
|
|
|
checksum.c \
|
2009-07-08 13:19:16 -07:00
|
|
|
datapath.c \
|
|
|
|
dp_notify.c \
|
2009-08-05 12:56:23 -07:00
|
|
|
dp_sysfs_dp.c \
|
|
|
|
dp_sysfs_if.c \
|
2009-07-08 13:19:16 -07:00
|
|
|
flow.c \
|
2010-10-18 15:30:20 -07:00
|
|
|
loop_counter.c \
|
2010-04-12 15:53:39 -04:00
|
|
|
table.c \
|
2010-08-10 20:11:48 -04:00
|
|
|
tunnel.c \
|
2010-04-12 15:53:39 -04:00
|
|
|
vport.c \
|
2010-08-11 20:55:58 -04:00
|
|
|
vport-capwap.c \
|
2010-05-10 17:40:22 -07:00
|
|
|
vport-generic.c \
|
2010-04-17 15:23:31 -04:00
|
|
|
vport-gre.c \
|
2010-04-12 15:53:39 -04:00
|
|
|
vport-internal_dev.c \
|
2010-05-10 13:07:28 -07:00
|
|
|
vport-netdev.c \
|
|
|
|
vport-patch.c
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
|
|
openvswitch_headers = \
|
|
|
|
actions.h \
|
2010-11-22 14:17:24 -08:00
|
|
|
checksum.h \
|
2009-07-08 13:19:16 -07:00
|
|
|
datapath.h \
|
2009-08-05 12:56:23 -07:00
|
|
|
dp_sysfs.h \
|
2010-04-12 15:53:39 -04:00
|
|
|
flow.h \
|
2010-10-18 15:30:20 -07:00
|
|
|
loop_counter.h \
|
2010-04-02 16:46:18 -04:00
|
|
|
table.h \
|
2010-08-10 20:11:48 -04:00
|
|
|
tunnel.h \
|
2010-04-12 15:53:39 -04:00
|
|
|
vport.h \
|
2010-05-10 17:40:22 -07:00
|
|
|
vport-generic.h \
|
2010-04-12 15:53:39 -04:00
|
|
|
vport-internal_dev.h \
|
|
|
|
vport-netdev.h
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
|
|
dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
|
|
|
|
dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
|
|
|
|
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)))
|