makefile

来自「USB网卡Linux源码及Windows debug版驱动(可打印调试信息)。」· 代码 · 共 52 行

TXT
52
字号
##================================================================##     Davicom Semiconductor Inc.  	For DM9601 V0.00##   --------------------------------------------------------## Description:##              Compile driver dm9601.c to dm9601.o#### Modification List:## 09/05/2000	Fixed SMPFALGS wrong on smp & smp_mod## 08/02/2000	Changed some description string & include file path## 07/25/2000	Append smp_mod and changed some descriptions## 01/25/2000	by Sten Wang##================================================================# Comment/uncomment the following line to disable/enable debugging#DEBUG = y# Add your debugging flag (or not) to CFLAGSifeq ($(DEBUG),y)  DEBFLAGS = -O -g # "-O" is needed to expand inlineselse  DEBFLAGS = -O2endifCFLAGS += $(DEBFLAGS) -I$(LDDINCDIR)ifneq ($(KERNELRELEASE),)# call from kernel build systemobj-m	:= dm9601.oelseKERNELDIR ?= /lib/modules/$(shell uname -r)/buildPWD       := $(shell pwd)default:	$(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINCDIR=$(PWD)/../include modulesendifclean:	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versionsdepend .depend dep:	$(CC) $(CFLAGS) -M *.c > .dependifeq (.depend,$(wildcard .depend))include .dependendif

⌨️ 快捷键说明

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