debuggers.hg

view tools/vnet/vnet-module/Makefile-2.6 @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 # -*- mode: Makefile; -*-
2 #============================================================================
3 #
4 # Copyright (C) 2004 Mike Wray <mike.wray@hp.com>
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by the
8 # Free Software Foundation; either version 2 of the License, or (at your
9 # option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # for more details.
15 #
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free software Foundation, Inc.,
18 # 59 Temple Place, suite 330, Boston, MA 02111-1307 USA
19 #============================================================================
21 #============================================================================
22 # Vnet module makefile for 2.6 series kernels.
24 LINUX_SERIES =2.6
25 include Makefile.ver
27 KERNEL_MODULE = vnet_module.ko
29 #----------------------------------------------------------------------------
30 #export KBUILD_VERBOSE=1
32 .PHONY: all
33 all: module module_version
35 .PHONY: module
36 module modules:
37 $(MAKE) -C $(KERNEL_SRC) M=`pwd` modules
39 .PHONY: module_version
40 module_version:
41 $(warning Module version $(shell strings $(KERNEL_MODULE) | grep vermagic))
43 .PHONY: install install-module modules_install
44 install install-module modules_install: module
45 install -m 0755 -d $(DESTDIR)$(KERNEL_MODULE_DIR)
46 install -m 0554 $(KERNEL_MODULE) $(DESTDIR)$(KERNEL_MODULE_DIR)
48 .PHONY: clean
49 clean:
50 -@$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean
51 -@$(RM) *.a *.o *.ko *~ .*.d .*.cmd *.mod.?
52 -@$(RM) -r .tmp_versions
54 .PHONY: TAGS
55 TAGS:
56 etags *.c *.h