]> git.proxmox.com Git - mirror_ovs.git/blob - datapath/Modules.mk
datapath: Add loop detection for RT 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 datapath.c \
15 dp_notify.c \
16 dp_sysfs_dp.c \
17 dp_sysfs_if.c \
18 flow.c \
19 loop_counter.c \
20 table.c \
21 tunnel.c \
22 vport.c \
23 vport-capwap.c \
24 vport-generic.c \
25 vport-gre.c \
26 vport-internal_dev.c \
27 vport-netdev.c \
28 vport-patch.c
29
30 openvswitch_headers = \
31 actions.h \
32 compat.h \
33 datapath.h \
34 dp_sysfs.h \
35 flow.h \
36 loop_counter.h \
37 odp-compat.h \
38 table.h \
39 tunnel.h \
40 vport.h \
41 vport-generic.h \
42 vport-internal_dev.h \
43 vport-netdev.h
44
45 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
46 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
47 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
48 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
49 build_links = $(notdir $(build_sources))
50 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))