]>
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. | |
5a38795f TG |
5 | build_multi_modules = \ |
6 | openvswitch | |
7 | both_modules = \ | |
8 | $(build_multi_modules) \ | |
9 | vport_geneve \ | |
10 | vport_gre \ | |
11 | vport_lisp \ | |
12 | vport_vxlan | |
f315ae4f AW |
13 | # When changing the name of 'build_modules', please also update the |
14 | # print-build-modules in Makefile.am. | |
064af421 BP |
15 | build_modules = $(both_modules) # Modules to build |
16 | dist_modules = $(both_modules) # Modules to distribute | |
17 | ||
18 | openvswitch_sources = \ | |
19 | actions.c \ | |
20 | datapath.c \ | |
064af421 BP |
21 | dp_notify.c \ |
22 | flow.c \ | |
a097c0b2 PS |
23 | flow_netlink.c \ |
24 | flow_table.c \ | |
f2459fe7 JG |
25 | vport.c \ |
26 | vport-internal_dev.c \ | |
5a38795f TG |
27 | vport-netdev.c |
28 | ||
29 | vport_geneve_sources = vport-geneve.c | |
30 | vport_vxlan_sources = vport-vxlan.c | |
31 | vport_gre_sources = vport-gre.c | |
32 | vport_lisp_sources = vport-lisp.c | |
064af421 BP |
33 | |
34 | openvswitch_headers = \ | |
9cb8d24d | 35 | compat.h \ |
064af421 | 36 | datapath.h \ |
f2459fe7 | 37 | flow.h \ |
a097c0b2 PS |
38 | flow_netlink.h \ |
39 | flow_table.h \ | |
6e0ce48e | 40 | vlan.h \ |
f2459fe7 JG |
41 | vport.h \ |
42 | vport-internal_dev.h \ | |
0c7930a3 TG |
43 | vport-netdev.h \ |
44 | vport-vxlan.h | |
064af421 | 45 | |
40a75177 | 46 | openvswitch_extras = \ |
542cc9bb | 47 | README.md |
40a75177 | 48 | |
064af421 BP |
49 | dist_sources = $(foreach module,$(dist_modules),$($(module)_sources)) |
50 | dist_headers = $(foreach module,$(dist_modules),$($(module)_headers)) | |
40a75177 | 51 | dist_extras = $(foreach module,$(dist_modules),$($(module)_extras)) |
064af421 BP |
52 | build_sources = $(foreach module,$(build_modules),$($(module)_sources)) |
53 | build_headers = $(foreach module,$(build_modules),$($(module)_headers)) | |
54 | build_links = $(notdir $(build_sources)) | |
55 | build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources))) |