]> git.proxmox.com Git - mirror_ovs.git/blob - datapath/Modules.mk
cirrus: Use FreeBSD 12.2.
[mirror_ovs.git] / datapath / Modules.mk
1 # Some modules should be built and distributed, e.g. openvswitch.
2 #
3 # Some modules should be built but not distributed, e.g. third-party
4 # hwtable modules.
5 build_multi_modules = \
6 openvswitch
7 both_modules = \
8 $(build_multi_modules) \
9 vport_geneve \
10 vport_gre \
11 vport_lisp \
12 vport_stt \
13 vport_vxlan
14 # When changing the name of 'build_modules', please also update the
15 # print-build-modules in Makefile.am.
16 build_modules = $(both_modules) # Modules to build
17 dist_modules = $(both_modules) # Modules to distribute
18
19 openvswitch_sources = \
20 actions.c \
21 conntrack.c \
22 datapath.c \
23 dp_notify.c \
24 flow.c \
25 flow_netlink.c \
26 flow_table.c \
27 vport.c \
28 vport-internal_dev.c \
29 vport-netdev.c \
30 nsh.c \
31 meter.c
32
33 vport_geneve_sources = vport-geneve.c
34 vport_vxlan_sources = vport-vxlan.c
35 vport_gre_sources = vport-gre.c
36 vport_lisp_sources = vport-lisp.c
37 vport_stt_sources = vport-stt.c
38 nsh_sources = nsh.c
39
40 openvswitch_headers = \
41 compat.h \
42 conntrack.h \
43 datapath.h \
44 flow.h \
45 flow_netlink.h \
46 flow_table.h \
47 vport.h \
48 vport-internal_dev.h \
49 vport-netdev.h \
50 meter.h
51
52 dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
53 dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
54 dist_extras = $(foreach module,$(dist_modules),$($(module)_extras))
55 build_sources = $(foreach module,$(build_modules),$($(module)_sources))
56 build_headers = $(foreach module,$(build_modules),$($(module)_headers))
57 build_links = $(notdir $(build_sources))
58 build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))