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

📄 makefile

📁 linux driver 第二版 随书源码
💻
字号:
# Comment/uncomment the following line to enable/disable debugging#DEBUG = y# Change it here or specify it on the "make" commandlineINCLUDEDIR = /usr/includeifeq ($(DEBUG),y)  DEBFLAGS = -O -g -DJIT_DEBUG -DJIQ_DEBUG -DALL_DEBUGelse  DEBFLAGS = -O2endifCFLAGS = -D__KERNEL__ -DMODULE -Wall $(DEBFLAGS)CFLAGS += -I$(INCLUDEDIR)# first the portable ones, then those that need newer kernel versions# this way everything compilable is built under 1.2 before getting errorsOBJS = faulty.o sleepy.o silly.o slave.o slaveD.o slaveH.o import.o \	master.o export.o hello.o \	jit.o jiq.o all: $(OBJS)clean:	rm -f *.o *.ver *~ # Don't use -Wall here: the cose is silly by designhello.o: hello.c	$(CC) -D__KERNEL__ -c $^ -o $@# set MODVERSIONS if the kernel uses itVERSUSED = $(shell grep 'define CONFIG_MODVERSIONS' \                   $(INCLUDEDIR)/linux/autoconf.h | wc -l | sed 's/ //g')ifeq ($(VERSUSED),1)  MODVERSIONS = yendif# and then use itifdef MODVERSIONSexport.o import.o: export.verendifexport.ver: export.c	$(CC) -I$(INCLUDEDIR) -E -D__GENKSYMS__ $^ | genksyms > $@

⌨️ 快捷键说明

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