Catalli's threaded switch
[sliver-openvswitch.git] / datapath / Modules.mk
1 # Some modules should be built and distributed, e.g. openvswitch.
2 #
3 # Some modules should be distributed but not built, e.g. we do not build
4 # veth if the kernel in question already has it.
5 #
6 # Some modules should be built but not distributed, e.g. third-party
7 # hwtable modules.
8 both_modules = openvswitch
9 build_modules = $(both_modules) # Modules to build
10 dist_modules = $(both_modules)  # Modules to distribute
11
12 openvswitch_sources = \
13         actions.c \
14         datapath.c \
15         dp_notify.c \
16         dp_sysfs_dp.c \
17         dp_sysfs_if.c \
18         flow.c \
19         table.c \
20         tunnel.c \
21         vport.c \
22         vport-capwap.c \
23         vport-generic.c \
24         vport-gre.c \
25         vport-internal_dev.c \
26         vport-netdev.c \
27         vport-patch.c
28
29 openvswitch_headers = \
30         actions.h \
31         compat.h \
32         datapath.h \
33         dp_sysfs.h \
34         flow.h \
35         odp-compat.h \
36         table.h \
37         tunnel.h \
38         vport.h \
39         vport-generic.h \
40         vport-internal_dev.h \
41         vport-netdev.h
42
43 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
44 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
45 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
46 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
47 build_links = $(notdir $(build_sources))
48 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))