Merge remote-tracking branch 'origin/master' into ovn
[cascardo/ovs.git] / datapath / Modules.mk
1 # Some modules should be built and distributed, e.g. openvswitch.
2 #
3 # Some modules should be built but not distributed, e.g. third-party
4 # hwtable modules.
5 build_multi_modules = \
6         openvswitch
7 both_modules = \
8         $(build_multi_modules) \
9         vport_geneve \
10         vport_gre \
11         vport_lisp \
12         vport_vxlan
13 build_modules = $(both_modules) # Modules to build
14 dist_modules = $(both_modules)  # Modules to distribute
15
16 openvswitch_sources = \
17         actions.c \
18         datapath.c \
19         dp_notify.c \
20         flow.c \
21         flow_netlink.c \
22         flow_table.c \
23         vport.c \
24         vport-internal_dev.c \
25         vport-netdev.c
26
27 vport_geneve_sources = vport-geneve.c
28 vport_vxlan_sources = vport-vxlan.c
29 vport_gre_sources = vport-gre.c
30 vport_lisp_sources = vport-lisp.c
31
32 openvswitch_headers = \
33         compat.h \
34         datapath.h \
35         flow.h \
36         flow_netlink.h \
37         flow_table.h \
38         vlan.h \
39         vport.h \
40         vport-internal_dev.h \
41         vport-netdev.h \
42         vport-vxlan.h
43
44 openvswitch_extras = \
45         README.md
46
47 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
48 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
49 dist_extras = $(foreach module,$(dist_modules),$($(module)_extras))
50 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
51 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
52 build_links = $(notdir $(build_sources))
53 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))