📄 makefile
字号:
ifeq ($(KERNELRELEASE),)TOPDIR = ../..include $(TOPDIR)/Preamble.makeelse# We are included by kbuild, and the is pre-"Kbuild"-files.OUR_TOPDIR := $(M)/..include $(OUR_TOPDIR)/Config.makeCPPFLAGS := -I$(OUR_TOPDIR)/include $(CPPFLAGS)endif# Always set this if asked to build the backport moduleEXTRA_CFLAGS += -DCONFIG_DEBUG_FSEXTRA_CFLAGS += -I$(OUR_TOPDIR)/fs/debugfs/includeINSTALL_MOD_DIR := fs/debugfsobj-m := debugfs.odebugfs-objs := inode.o file.o debugfs_compat.oifeq ($(KERNELRELEASE),)## Called from a regular "make".#DEBUGFS_HEADERS = \ include/linux/debugfs.h \ debugfs_compat.hDEBUGFS_SOURCES = \ file.c \ inode.c \ debugfs_compat.cDEBUGFS_OBJECTS = $(subst .c,.o,$(DEBUGFS_SOURCES))DIST_FILES = $(DEBUGFS_SOURCES) $(DEBUGFS_HEADERS)ALL_RULES = build-modulesCLEAN_RULES = clean-modulesINSTALL_RULES = install-modulesbuild-modules: $(MAKE) -C $(TOPDIR)/fs build-modulesinstall-modules: $(MAKE) -C $(TOPDIR)/fs install-modulesclean-modules: $(MAKE) -C $(TOPDIR)/fs clean-modulesdist-subdircreate: $(TOPDIR)/mkinstalldirs $(DIST_DIR)/include/linuxDIST_RULES = dist-subdircreateinclude $(TOPDIR)/Postamble.makeendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -