]> git.proxmox.com Git - mirror_ovs.git/blob - datapath/Modules.mk
datapath: Add vlan acceleration field for older kernels.
[mirror_ovs.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 loop_counter.c \
21 table.c \
22 tunnel.c \
23 vlan.c \
24 vport.c \
25 vport-capwap.c \
26 vport-generic.c \
27 vport-gre.c \
28 vport-internal_dev.c \
29 vport-netdev.c \
30 vport-patch.c
31
32 openvswitch_headers = \
33 actions.h \
34 checksum.h \
35 datapath.h \
36 dp_sysfs.h \
37 flow.h \
38 loop_counter.h \
39 table.h \
40 tunnel.h \
41 vlan.h \
42 vport.h \
43 vport-generic.h \
44 vport-internal_dev.h \
45 vport-netdev.h
46
47 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
48 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
49 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
50 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
51 build_links = $(notdir $(build_sources))
52 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))