⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Linux设备驱动的经典教材, 该电子书是第三版,并附有全部配套代码.
💻
字号:
# To build modules outside of the kernel tree, we run "make"# in the kernel source tree; the Makefile these then includes this# Makefile once again.# This conditional selects whether we are being included from the# kernel Makefile or not.ifeq ($(KERNELRELEASE),)    # Assume the source tree is where the running kernel was built    # You should set KERNELDIR in the environment if it's elsewhere    KERNELDIR ?= /lib/modules/$(shell uname -r)/build    # The current directory is passed to sub-makes as argument    PWD := $(shell pwd)modules:	$(MAKE) -C $(KERNELDIR) M=$(PWD) modulesmodules_install:	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_installclean:	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions.PHONY: modules modules_install cleanelse    # called from kernel build system: just declare what our modules are    obj-m := hello.o hellop.o seq.o jit.o jiq.o sleepy.o complete.o \             silly.o faulty.o kdatasize.o kdataalign.oendif

⌨️ 快捷键说明

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