d04750b73515d4b8276bc5aeddcd3ce1c282922b
[sliver-openvswitch.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 both_modules = openvswitch
6 build_modules = $(both_modules) # Modules to build
7 dist_modules = $(both_modules)  # Modules to distribute
8
9 openvswitch_sources = \
10         actions.c \
11         checksum.c \
12         datapath.c \
13         dp_notify.c \
14         flow.c \
15         genl_exec.c \
16         tunnel.c \
17         vlan.c \
18         vport.c \
19         vport-gre.c \
20         vport-internal_dev.c \
21         vport-netdev.c \
22         vport-vxlan.c
23
24 openvswitch_headers = \
25         checksum.h \
26         compat.h \
27         datapath.h \
28         flow.h \
29         genl_exec.h \
30         tunnel.h \
31         vlan.h \
32         vport.h \
33         vport-internal_dev.h \
34         vport-netdev.h
35
36 openvswitch_extras = \
37         README
38
39 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
40 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
41 dist_extras = $(foreach module,$(dist_modules),$($(module)_extras))
42 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
43 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
44 build_links = $(notdir $(build_sources))
45 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))