Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.
[cascardo/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_dev.c \
16         dp_notify.c \
17         flow.c \
18         table.c
19
20 openvswitch_headers = \
21         actions.h \
22         compat.h \
23         datapath.h \
24         dp_dev.h \
25         flow.h
26
27 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
28 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
29 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
30 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
31 build_links = $(notdir $(build_sources))
32 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))