makefile

来自「linux driver 第二版 随书源码」· 代码 · 共 28 行

TXT
28
字号
# stepper/makefile# Comment/uncomment the following line to enable/disable debugging#DEBUG = y# Change it here or specify it on the "make" commandlineINCLUDEDIR = /usr/include ifeq ($(DEBUG),y)  DEBFLAGS = -O -g -DSTEP_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}' $(INCLUDE)/linux/version.h)TARGET = stepperOBJS = $(TARGET).oall: $(OBJS)clean:	rm -f *.o *~ core

⌨️ 快捷键说明

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