📄 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)endififdef BACKING_DEV_CAPABILITIESEXTRA_CFLAGS += -DBACKING_DEV_CAPABILITIESendififdef HAVE_GENERIC_READLINKEXTRA_CFLAGS += -DHAVE_GENERIC_READLINKendififdef NEW_FOLLOW_LINK_APIEXTRA_CFLAGS += -DNEW_FOLLOW_LINK_APIendififdef OLD_SIMPLE_PIN_FSEXTRA_CFLAGS += -DOLD_SIMPLE_PIN_FSendififdef GET_SB_RETURNS_SBEXTRA_CFLAGS += -DGET_SB_RETURNS_SBendififdef INODE_HAS_BLKSIZEEXTRA_CFLAGS += -DINODE_HAS_BLKSIZEendifINSTALL_MOD_DIR := fs/configfsobj-m := configfs.o configfs_example.o bobtest.oconfigfs-objs := inode.o file.o dir.o symlink.o mount.o item.o ifeq ($(KERNELRELEASE),)## Called from a regular "make".#HEADERS = configfs_internal.hCONFIGFS_SOURCES = \ dir.c \ file.c \ inode.c \ item.c \ mount.c \ symlink.cCONFIGFS_OBJECTS = $(subst .c,.o,$(CONFIGFS_SOURCES))BOBTEST_SOURCES = bobtest.cBOBTEST_OBJECTS = $(subst .c,.o,$(BOBTEST_SOURCES))CONFIGFS_EXAMPLE_SOURCES = configfs_example.cCONFIGFS_EXAMPLE_OBJECTS = $(subst .c,.o,$(CONFIGFS_EXAMPLE_SOURCES))DOCS = configfs.txtDIST_FILES = \ $(CONFIGFS_SOURCES) \ $(CONFIGFS_EXAMPLE_SOURCES) \ $(BOBTEST_SOURCES) \ $(HEADERS) \ $(DOCS)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-modulesinclude $(TOPDIR)/Postamble.makeendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -