]> git.proxmox.com Git - mirror_ovs.git/blame - datapath/linux-2.6/Makefile.main.in
configure: Do not reject Linux 3.0 at configure time.
[mirror_ovs.git] / datapath / linux-2.6 / 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
16distclean: clean
17 rm -f kcompat.h
18distdir: clean
19install:
20all: default
21check: all
22clean:
23 rm -f *.o *.ko *_mod.* Module.symvers *.cmd kcompat.h.new
24 for d in $(build_links); do if test -h $$d; then rm $$d; fi; done
25
26ifneq ($(KSRC),)
27
28ifeq (/lib/modules/$(shell uname -r)/source, $(KSRC))
29 KOBJ := /lib/modules/$(shell uname -r)/build
30else
31 KOBJ := $(KSRC)
32endif
33
064af421
BP
34VERSION_FILE := $(KOBJ)/include/linux/version.h
35ifeq (,$(wildcard $(VERSION_FILE)))
36 $(error Linux kernel source not configured - missing version.h)
37endif
38
e0510a6c 39CONFIG_FILE := $(KSRC)/include/generated/autoconf.h
064af421 40ifeq (,$(wildcard $(CONFIG_FILE)))
e0510a6c
BP
41 CONFIG_FILE := $(KSRC)/include/linux/autoconf.h
42 ifeq (,$(wildcard $(CONFIG_FILE)))
43 $(error Linux kernel source not configured - missing autoconf.h)
44 endif
064af421
BP
45endif
46
47default:
48 $(MAKE) -C $(KSRC) M=$(builddir) modules
44331666
WY
49
50modules_install:
51 $(MAKE) -C $(KSRC) M=$(builddir) modules_install
064af421
BP
52endif
53
54# Much of the kernel build system in this file is derived from Intel's
55# e1000 distribution, with the following license:
56
57################################################################################
58#
59# Intel PRO/1000 Linux driver
60# Copyright(c) 1999 - 2007, 2009 Intel Corporation.
61#
62# This program is free software; you can redistribute it and/or modify it
63# under the terms and conditions of the GNU General Public License,
64# version 2, as published by the Free Software Foundation.
65#
66# This program is distributed in the hope it will be useful, but WITHOUT
67# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
68# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
69# more details.
70#
71# You should have received a copy of the GNU General Public License along with
72# this program; if not, write to the Free Software Foundation, Inc.,
73# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
74#
75# The full GNU General Public License is included in this distribution in
76# the file called "COPYING".
77#
78# Contact Information:
79# Linux NICS <linux.nics@intel.com>
80# e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
81# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
82#
83################################################################################