📄 makefile
字号:
# The headers are taken from the kernelINCLUDEDIR = /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/includeINSTALLDIR = /lib/modules/2.6.18-prep/pmacCFLAGS += -Wall -O -D__KERNEL__ -DMODULE -I$(INCLUDEDIR)ifneq ($(KERNELRELEASE),)# call from kernel build systemobj-m := pmacisa.oelseKERNELDIR ?= /lib/modules/$(shell uname -r)/buildPWD := $(shell pwd)modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD)/../include modulesendifinstall: install -d $(INSTALLDIR) install -c pmacisa.ko $(INSTALLDIR) install -c pmacisa.h $(INCLUDEDIR)/linuxclean: rm -f *.o *~ core rm -f $(INSTALLDIR)/pmacisa.o rm -f $(INCLUDEDIR)/linux/pmacisa.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -