📄 makefile
字号:
# 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 -DSBULL_DEBUG # "-O" is needed to expand inlineselse DEBFLAGS = -O2endifCFLAGS = -D__KERNEL__ -DMODULE -Wall $(DEBFLAGS)CFLAGS += -I$(INCLUDEDIR)# Extract version number from headers.VER = $(shell awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h)TARGET = sbullOBJS = $(TARGET).oSRC = $(TARGET).call: .depend $(TARGET).oinstall: mkdir -p /lib/modules/$(VER)/misc /lib/modules/misc install -c $(TARGET).o /lib/modules/$(VER)/misc install -c $(TARGET).o /lib/modules/miscclean: rm -f *.o *~ core .dependdepend .depend dep: $(CC) $(CFLAGS) -M *.c > $@ifeq (.depend,$(wildcard .depend))include .dependendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -