⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 QL2000卡的驱动程序,可以学习驱动的编程. 对于UNIX的I/O操作有帮助!
💻
字号:
## Makefile 1.0 7/12/2000## To make UP version of driver#  make# To make SMP version of driver#  make all SMP=1# To make version of driver with IP support#  make all IP=1 [SMP=1]# To make a new firmware file (FILE must be a *.c file of the fw object) #  make fw FILE=fw1240ei.c#FILE=2100ef.hFILE2=2200ef.h## f/W include filesFWFILE=ql2100_fw.hFWFILE2=ql2200_fw.hFWFILE3=ql2200ip_fw.h# Comment/uncomment the following line to enable/disable debugging#DEBUGFLAG=y# Change it here or specify it on the "make" commandline#INCLUDEDIR = /usr/include#INCLUDEDIR = /usr/src/redhat/BUILD/linux/includeINCLUDEDIR = /usr/src/linux/includeifeq ($(DEBUGFLAG),y)  DEBFLAGS = -O -g -DUDEBUG -DISP2200else  DEBFLAGS = -O2 -DISP2200endifCFLAGS = -D__KERNEL__ -DMODULE -Wall $(DEBFLAGS)# set MODVERSIONS if the kernel uses itVERSUSED = $(shell grep 'define CONFIG_MODVERSIONS' \                   $(INCLUDEDIR)/linux/autoconf.h | wc -l | sed 's/ //g')ifeq ($(VERSUSED),1)#CFLAGS += -DCONFIG_MODVERSIONSCFLAGS += -DMODVERSIONS -include $(INCLUDEDIR)/linux/modversions.hendifCFLAGS += -I$(INCLUDEDIR) -I$(INCLUDEDIR)/../drivers/scsi \-Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce \ -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 ifeq ("1","$(IP)")CFLAGS += -DFC_IP_SUPPORT  endififeq ("1","$(SMP)")CFLAGS := $(CFLAGS) -D__SMP__  elseCFLAGS := $(CFLAGS) endifCOFLAGS = -kvMPATH = /lib/modulesifeq ("1","$(SMP)")default: qla2x00smp.o elsedefault: qla2x00.oendififeq ("1","$(IP)")qla2x00.o  : qlcommon.h qla2x00.h qla2x00.c qla2100ip.c $(FWFILE) $(FWFILE3)elseqla2x00.o  : qla2x00.h qla2x00.c $(FWFILE) $(FWFILE2)endif	$(CC) $(CFLAGS) -c qla2x00.c -o $@ifeq ("1","$(IP)")qla2x00smp.o  : qlcommon.h qla2x00.h qla2x00.c qla2100ip.c $(FWFILE) $(FWFILE3)elseqla2x00smp.o  : qla2x00.h qla2x00.c $(FWFILE) $(FWFILE2)endif	$(CC) $(CFLAGS) -c qla2x00.c -o $@ifeq ("1","$(SMP)")all:	clean qla2x00smp.o elseall:	clean qla2x00.o endifclean:		rm -f qla2x00.o 	rm -f qla2x00smp.o ifeq ("1","$(SMP)")install: qla2x00smp.o 	REL=`grep UTS_RELEASE /usr/include/linux/version.h | \	  sed -e 's/.*\"\(.*\)\".*/\1/'` ; \	cp -p qla2x00smp.o /lib/modules/$$REL/scsielseinstall: qla2x00.o 	REL=`grep UTS_RELEASE /usr/include/linux/version.h | \	  sed -e 's/.*\"\(.*\)\".*/\1/'` ; \	cp -p qla2x00.o /lib/modules/$$REL/scsiendiffw:	mv $(FILE) $(FWFILE)	mv $(FILE2) $(FWFILE2)# mcopy -t a:$(FILE) # @echo "Editing file to produce -> [isp_fw.h]"# sh do_fw.sh $(FILE) cvtfw# @echo "Editing file to produce -> [isp1_fw.h]"# sh do_fw.sh $(FILE2) cvtfw22

⌨️ 快捷键说明

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