makefile

来自「lustre 1.6.5 source code」· 代码 · 共 57 行

TXT
57
字号
## There are four ways this Makefile can be called:## # 1.  As a subdirectory from the toplevel, for automake## 2.  A wrapper around the kernel's makefile when building modules, to#     possibly override the .config file## 3.  At configure time, as the toplevel module dir for building#     kernel tests## 4.  At configure time, to determine the kernel's idea of $(ARCH)#ifeq ($(PATCHLEVEL),)ifeq ($(LUSTRE_LINUX_CONFIG),)# case #1include autoMakefileelse# case #2# Note that this comes from make -C $LINUX -f $LUSTRE/build/Makefile# so "include Makefile" below includes $LINUX/Makefile, not this fileinclude $(LUSTRE_LINUX_CONFIG)include Makefileendif # LUSTRE_LINUX_CONFIGelse # PATCHLEVEL# case 3ifneq ($(LUSTRE_KERNEL_TEST),)ifeq ($(PATCHLEVEL),4)all: $(LUSTRE_KERNEL_TEST)elseextra-y = $(LUSTRE_KERNEL_TEST)endifendifobj-m := conftest.oifeq ($(PATCHLEVEL),4)include $(TOPDIR)/Rules.makeendifendif # PATCHLEVEL# case 4echoarch:	echo $(ARCH) >$(ARCHFILE)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?