Fix "make dist" by distributing some more files.
[sliver-openvswitch.git] / datapath / Modules.mk
1 all_modules = $(dist_modules)
2 dist_modules = openflow unit
3
4 openflow_sources = \
5         chain.c \
6         crc32.c \
7         datapath.c \
8         datapath_t.c \
9         dp_dev.c \
10         flow.c \
11         forward.c \
12         table-hash.c \
13         table-linear.c \
14         unit-exports.c
15
16 openflow_headers = \
17         chain.h \
18         compat.h \
19         crc32.h \
20         datapath.h \
21         datapath_t.h \
22         dp_dev.h \
23         flow.h \
24         forward.h \
25         snap.h \
26         table.h \
27         unit.h
28
29 unit_sources = \
30         crc_t.c \
31         forward_t.c \
32         table_t.c \
33         unit.c
34
35 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
36 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
37 all_sources = $(foreach module,$(all_modules),$($(module)_sources))
38 all_headers = $(foreach module,$(all_modules),$($(module)_headers))
39 all_objects = $(patsubst %.c,%.o,$(all_sources))
40 all_objdirs = $(addprefix $(builddir)/,$(sort $(dir $(all_objects))))
41 all_dummies = $(addsuffix /.dummy,$(all_objdirs))