~ubuntu-branches/ubuntu/wily/openvswitch/wily

« back to all changes in this revision

Viewing changes to datapath/linux/Kbuild.in

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-08-10 11:35:15 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20150810113515-575vj06oq29emxsn
Tags: 2.4.0~git20150810.97bab95-0ubuntu1
* New upstream snapshot from 2.4 branch:
  - d/*: Align any relevant packaging changes with upstream.
* d/*: wrap-and-sort.
* d/openvswitch-{common,vswitch}.install: Correct install location for
  bash completion files.
* d/tests/openflow.py: Explicitly use ovs-testcontroller as provided
  by 2.4.0 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
include $(srcdir)/../Modules.mk
8
8
include $(srcdir)/Modules.mk
9
9
 
10
 
EXTRA_CFLAGS := -DVERSION=\"$(VERSION)\"
11
 
EXTRA_CFLAGS += -I$(srcdir)/..
12
 
EXTRA_CFLAGS += -I$(builddir)/..
13
 
EXTRA_CFLAGS += -g
14
 
EXTRA_CFLAGS += -include $(builddir)/kcompat.h
 
10
ccflags-y := -DVERSION=\"$(VERSION)\"
 
11
ccflags-y += -I$(srcdir)/..
 
12
ccflags-y += -I$(builddir)/..
 
13
ccflags-y += -g
 
14
ccflags-y += -include $(builddir)/kcompat.h
15
15
 
16
16
# These include directories have to go before -I$(KSRC)/include.
17
17
# NOSTDINC_FLAGS just happens to be a variable that goes in the
18
18
# right place, even though it's conceptually incorrect.
19
19
NOSTDINC_FLAGS += -I$(top_srcdir)/include -I$(srcdir)/compat -I$(srcdir)/compat/include
20
20
 
21
 
obj-m := $(patsubst %,%.o,$(build_modules))
 
21
obj-m := $(subst _,-,$(patsubst %,%.o,$(build_modules)))
22
22
 
23
23
define module_template
24
24
$(1)-y = $$(notdir $$(patsubst %.c,%.o,$($(1)_sources)))
25
25
endef
26
26
 
27
 
$(foreach module,$(build_modules),$(eval $(call module_template,$(module))))
 
27
$(foreach module,$(build_multi_modules),$(eval $(call module_template,$(module))))