makefile-2.6
来自「xen虚拟机源代码安装包」· 6 代码 · 共 58 行
6
58 行
# -*- mode: Makefile; -*-#============================================================================## Copyright (C) 2004 Mike Wray <mike.wray@hp.com>## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by the# Free Software Foundation; either version 2 of the License, or (at your# option) any later version.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License# for more details.## You should have received a copy of the GNU General Public License along# with this program; if not, write to the Free software Foundation, Inc.,# 59 Temple Place, suite 330, Boston, MA 02111-1307 USA#============================================================================#============================================================================# Vnet module makefile for 2.6 series kernels.LINUX_SERIES =2.6include Makefile.verKERNEL_MODULE = vnet_module.ko#----------------------------------------------------------------------------#export KBUILD_VERBOSE=1.PHONY: allall: module module_version.PHONY: modulemodule modules: $(MAKE) -C $(KERNEL_SRC) M=`pwd` modules.PHONY: module_versionmodule_version: $(warning Module version $(shell strings $(KERNEL_MODULE) | grep vermagic)).PHONY: install install-module modules_installinstall install-module modules_install: module install -m 0755 -d $(DESTDIR)$(KERNEL_MODULE_DIR) install -m 0554 $(KERNEL_MODULE) $(DESTDIR)$(KERNEL_MODULE_DIR).PHONY: cleanclean: -@$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean -@$(RM) *.a *.o *.ko *~ .*.d .*.cmd *.mod.? -@$(RM) -r .tmp_versions.PHONY: TAGSTAGS: etags *.c *.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?