datapath: Add genl_exec().
[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         checksum.c \
15         datapath.c \
16         dp_notify.c \
17         dp_sysfs_dp.c \
18         dp_sysfs_if.c \
19         flow.c \
20         genl_exec.c \
21         tunnel.c \
22         vlan.c \
23         vport.c \
24         vport-capwap.c \
25         vport-generic.c \
26         vport-gre.c \
27         vport-internal_dev.c \
28         vport-netdev.c \
29         vport-patch.c
30
31 openvswitch_headers = \
32         checksum.h \
33         compat.h \
34         datapath.h \
35         dp_sysfs.h \
36         flow.h \
37         genl_exec.h \
38         tunnel.h \
39         vlan.h \
40         vport.h \
41         vport-generic.h \
42         vport-internal_dev.h \
43         vport-netdev.h
44
45 openvswitch_extras = \
46         README \
47         CAPWAP.txt
48
49 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
50 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
51 dist_extras = $(foreach module,$(dist_modules),$($(module)_extras))
52 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
53 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
54 build_links = $(notdir $(build_sources))
55 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))