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

📄 makefile

📁 Linux设备驱动的经典教材, 该电子书是第三版,并附有全部配套代码.
💻
字号:
# Comment/uncomment the following line to enable/disable debugging#DEBUG = yifeq ($(DEBUG),y)  DEBFLAGS = -O -g -DSCULLC_DEBUG # "-O" is needed to expand inlineselse  DEBFLAGS = -O2endifCFLAGS += $(DEBFLAGS) -I$(LDDINC)TARGET = scullcifneq ($(KERNELRELEASE),)scullc-objs := main.oobj-m	:= scullc.oelseKERNELDIR ?= /lib/modules/$(shell uname -r)/buildPWD       := $(shell pwd)modules:	$(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD) modulesendifinstall:	install -d $(INSTALLDIR)	install -c $(TARGET).o $(INSTALLDIR)clean:	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versionsdepend .depend dep:	$(CC) $(CFLAGS) -M *.c > .dependifeq (.depend,$(wildcard .depend))include .dependendif

⌨️ 快捷键说明

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