]> git.proxmox.com Git - mirror_ovs.git/blame - datapath/linux/Makefile.main.in
datapath: Fix typos in Netlink debugging messages.
[mirror_ovs.git] / datapath / linux / Makefile.main.in
CommitLineData
064af421
BP
1# -*- makefile -*-
2export builddir = @abs_builddir@
3export srcdir = @abs_srcdir@
4export top_srcdir = @abs_top_srcdir@
e3438006 5export KSRC = @KBUILD@
064af421 6export VERSION = @VERSION@
064af421
BP
7
8include $(srcdir)/../Modules.mk
9include $(srcdir)/Modules.mk
10
11default: $(build_links)
12
13$(foreach s,$(sort $(foreach m,$(build_modules),$($(m)_sources))), \
14 $(eval $(notdir $(s)): ; ln -s $(srcdir)/../$(s) $@))
15
13b63057 16all: default
064af421
BP
17distdir: clean
18install:
13b63057
BP
19install-data:
20install-exec:
21uninstall:
22install-dvi:
23install-html:
24install-info:
25install-ps:
26install-pdf:
27installdirs:
064af421 28check: all
13b63057
BP
29installcheck:
30mostlyclean:
064af421 31clean:
9b80f761 32 rm -f *.o *.ko *.mod.* Module.symvers *.cmd kcompat.h.new
064af421 33 for d in $(build_links); do if test -h $$d; then rm $$d; fi; done
13b63057
BP
34distclean: clean
35 rm -f kcompat.h
36maintainer-clean: distclean
37dvi:
38pdf:
39ps:
40info:
41html:
42tags:
43TAGS:
064af421
BP
44
45ifneq ($(KSRC),)
46
47ifeq (/lib/modules/$(shell uname -r)/source, $(KSRC))
48 KOBJ := /lib/modules/$(shell uname -r)/build
49else
50 KOBJ := $(KSRC)
51endif
52
064af421
BP
53VERSION_FILE := $(KOBJ)/include/linux/version.h
54ifeq (,$(wildcard $(VERSION_FILE)))
2520f452
IY
55 VERSION_FILE := $(KOBJ)/include/generated/uapi/linux/version.h
56 ifeq (,$(wildcard $(VERSION_FILE)))
57 $(error Linux kernel source not configured - missing version.h)
58 endif
064af421
BP
59endif
60
e0510a6c 61CONFIG_FILE := $(KSRC)/include/generated/autoconf.h
064af421 62ifeq (,$(wildcard $(CONFIG_FILE)))
e0510a6c
BP
63 CONFIG_FILE := $(KSRC)/include/linux/autoconf.h
64 ifeq (,$(wildcard $(CONFIG_FILE)))
65 $(error Linux kernel source not configured - missing autoconf.h)
66 endif
064af421
BP
67endif
68
69default:
70 $(MAKE) -C $(KSRC) M=$(builddir) modules
44331666
WY
71
72modules_install:
73 $(MAKE) -C $(KSRC) M=$(builddir) modules_install
ffd6065a 74 depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' $(KSRC)/include/generated/utsrelease.h`
064af421
BP
75endif
76
77# Much of the kernel build system in this file is derived from Intel's
78# e1000 distribution, with the following license:
79
80################################################################################
81#
82# Intel PRO/1000 Linux driver
83# Copyright(c) 1999 - 2007, 2009 Intel Corporation.
84#
85# This program is free software; you can redistribute it and/or modify it
86# under the terms and conditions of the GNU General Public License,
87# version 2, as published by the Free Software Foundation.
88#
89# This program is distributed in the hope it will be useful, but WITHOUT
90# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
91# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
92# more details.
93#
94# You should have received a copy of the GNU General Public License along with
95# this program; if not, write to the Free Software Foundation, Inc.,
96# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
97#
98# The full GNU General Public License is included in this distribution in
99# the file called "COPYING".
100#
101# Contact Information:
102# Linux NICS <linux.nics@intel.com>
103# e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
104# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
105#
106################################################################################