]>
Commit | Line | Data |
---|---|---|
064af421 BP |
1 | # Some modules should be built and distributed, e.g. openvswitch. |
2 | # | |
064af421 BP |
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 \ | |
dd8d6b8c | 11 | checksum.c \ |
064af421 | 12 | datapath.c \ |
064af421 BP |
13 | dp_notify.c \ |
14 | flow.c \ | |
b9c15df9 | 15 | genl_exec.c \ |
d1eb60cc | 16 | tunnel.c \ |
6e0ce48e | 17 | vlan.c \ |
f2459fe7 | 18 | vport.c \ |
2736b84e | 19 | vport-gre.c \ |
f2459fe7 | 20 | vport-internal_dev.c \ |
a6ae068b | 21 | vport-lisp.c \ |
4fe64886 | 22 | vport-netdev.c \ |
79f827fa | 23 | vport-vxlan.c |
064af421 BP |
24 | |
25 | openvswitch_headers = \ | |
dd8d6b8c | 26 | checksum.h \ |
9cb8d24d | 27 | compat.h \ |
064af421 | 28 | datapath.h \ |
f2459fe7 | 29 | flow.h \ |
b9c15df9 | 30 | genl_exec.h \ |
d1eb60cc | 31 | tunnel.h \ |
6e0ce48e | 32 | vlan.h \ |
f2459fe7 JG |
33 | vport.h \ |
34 | vport-internal_dev.h \ | |
35 | vport-netdev.h | |
064af421 | 36 | |
40a75177 | 37 | openvswitch_extras = \ |
09538fdc | 38 | README |
40a75177 | 39 | |
064af421 BP |
40 | dist_sources = $(foreach module,$(dist_modules),$($(module)_sources)) |
41 | dist_headers = $(foreach module,$(dist_modules),$($(module)_headers)) | |
40a75177 | 42 | dist_extras = $(foreach module,$(dist_modules),$($(module)_extras)) |
064af421 BP |
43 | build_sources = $(foreach module,$(build_modules),$($(module)_sources)) |
44 | build_headers = $(foreach module,$(build_modules),$($(module)_headers)) | |
45 | build_links = $(notdir $(build_sources)) | |
46 | build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources))) |