File: Modules.mk

package info (click to toggle)
openvswitch 1.4.2%2Bgit20120612-9.1~deb7u1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 21,072 kB
  • sloc: sh: 115,076; ansic: 99,733; python: 12,294; xml: 2,566; perl: 674; makefile: 344; pascal: 81
file content (53 lines) | stat: -rw-r--r-- 1,364 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Some modules should be built and distributed, e.g. openvswitch.
#
# Some modules should be distributed but not built, e.g. we do not build
# veth if the kernel in question already has it.
#
# Some modules should be built but not distributed, e.g. third-party
# hwtable modules.
both_modules = openvswitch
build_modules = $(both_modules)	# Modules to build
dist_modules = $(both_modules)	# Modules to distribute

openvswitch_sources = \
	actions.c \
	checksum.c \
	datapath.c \
	dp_notify.c \
	dp_sysfs_dp.c \
	dp_sysfs_if.c \
	flow.c \
	tunnel.c \
	vlan.c \
	vport.c \
	vport-capwap.c \
	vport-generic.c \
	vport-gre.c \
	vport-internal_dev.c \
	vport-netdev.c \
	vport-patch.c

openvswitch_headers = \
	checksum.h \
	compat.h \
	datapath.h \
	dp_sysfs.h \
	flow.h \
	tunnel.h \
	vlan.h \
	vport.h \
	vport-generic.h \
	vport-internal_dev.h \
	vport-netdev.h

openvswitch_extras = \
	README \
	CAPWAP.txt

dist_sources = $(foreach module,$(dist_modules),$($(module)_sources))
dist_headers = $(foreach module,$(dist_modules),$($(module)_headers))
dist_extras = $(foreach module,$(dist_modules),$($(module)_extras))
build_sources = $(foreach module,$(build_modules),$($(module)_sources))
build_headers = $(foreach module,$(build_modules),$($(module)_headers))
build_links = $(notdir $(build_sources))
build_objects = $(notdir $(patsubst %.c,%.o,$(build_sources)))