📄 makefile
字号:
KSP := /lib/modules/$(shell uname -r)/build \ /usr/src/linux-$(shell uname -r) \ /usr/src/linux-$(shell uname -r | sed 's/-.*//') \ /usr/src/kernel-headers-$(shell uname -r) \ /usr/src/kernel-source-$(shell uname -r) \ /usr/src/linux-$(shell uname -r | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \ /usr/src/linuxtest_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))KSP := $(foreach dir, $(KSP), $(test_dir))KSRC := $(firstword $(KSP))ifndef CFLAGSCFLAGS = -O2 -Wall -Wstrict-prototypes -Winline -pipe -DLINUX endifCPPFLAGS = -I../include -I$(KSRC)/includeSRCS = wetctl.cwetctl: wetctl.o cc -o wetctl wetctl.oinstall: wetctl.o cc -o wetctl wetctl.o cp -p wetctl /sbin uninstall: rm -f /sbin/wetctl clean: rm -f wetctl core core.* *.o .*.o *.s *.a .depend tmp_make *~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -