Reduce spurious recompilations for Linux 2.4 datapath.
[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         flow.h \
23         forward.h \
24         snap.h \
25         table.h \
26         unit.h
27
28 unit_sources = \
29         crc_t.c \
30         forward_t.c \
31         table_t.c \
32         unit.c
33
34 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
35 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
36 all_sources = $(foreach module,$(all_modules),$($(module)_sources))
37 all_headers = $(foreach module,$(all_modules),$($(module)_headers))
38 all_objects = $(patsubst %.c,%.o,$(all_sources))
39 all_objdirs = $(addprefix $(builddir)/,$(sort $(dir $(all_objects))))
40 all_dummies = $(addsuffix /.dummy,$(all_objdirs))