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

📄 makefile

📁 这是stv0680的usb摄像头在linux下的驱动程序
💻
字号:
## This is the Makefile to build the STV0680 driver outside# of the kernel tree. Naturally, compiler options below# may not match ones that you use to compile the kernel.# So be warned and use whatever options you need instead.## The location of the kernel headers:LINUX_HEADERS=/usr/src/linux/include# This is the directory into which the modules will be installed.# The magic invocation will return something like this:#   /lib/modules/2.4.0/kernel/drivers/usb#KVER = $(shell grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"')ifeq ($(LINUXVERSION),) LINUXVERSION = $(shell uname -r)endifMODDIR := /lib/modules/$(LINUXVERSION)/kernel/drivers/usbCC = gccCFLAGS =  -D__KERNEL__ -I$(LINUX_HEADERS) -Wall -Wstrict-prototypes \-O2 -fomit-frame-pointer -pipe   -march=i586 -malign-functions=4 \-fno-strict-aliasing -DMODULE -DMODVERSIONS -include \$(LINUX_HEADERS)/linux/modversions.hSRCS = stv680.cPROG = stv680.oOBJECTS = stv680.o all : stv680.o stv680.o : stv680.c	 $(CC) $(CFLAGS) -c stv680.c -o stv680.o#	 $(LD) -r -o $@ $+full: clean allclean:	rm -f $(OBJECTS) *.o coreinstall:	@install -v -D -o root -g root stv680.o $(MODDIR)/stv680.o	depmod -auninstall:	rm -f $(MODDIR)/stv680.o	depmod -a

⌨️ 快捷键说明

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