]> git.proxmox.com Git - mirror_ovs.git/blob - datapath/Modules.mk
vport: Extract common functions for virtual devices.
[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 table.c \
20 vport.c \
21 vport-generic.c \
22 vport-gre.c \
23 vport-internal_dev.c \
24 vport-netdev.c
25
26 openvswitch_headers = \
27 actions.h \
28 compat.h \
29 datapath.h \
30 dp_sysfs.h \
31 flow.h \
32 odp-compat.h \
33 table.h \
34 vport.h \
35 vport-generic.h \
36 vport-internal_dev.h \
37 vport-netdev.h
38
39 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
40 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
41 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
42 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
43 build_links = $(notdir $(build_sources))
44 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))