7ddf79c1f0a66224a63f34b45798922fd6f6d70a
[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         datapath.c \
12         dp_notify.c \
13         flow.c \
14         vport.c \
15         vport-gre.c \
16         vport-internal_dev.c \
17         vport-lisp.c \
18         vport-netdev.c \
19         vport-vxlan.c
20
21 openvswitch_headers = \
22         compat.h \
23         datapath.h \
24         flow.h \
25         vlan.h \
26         vport.h \
27         vport-internal_dev.h \
28         vport-netdev.h
29
30 openvswitch_extras = \
31         README
32
33 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
34 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
35 dist_extras = $(foreach module,$(dist_modules),$($(module)_extras))
36 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
37 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
38 build_links = $(notdir $(build_sources))
39 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))