📄 makefile
字号:
############################################################################## Makefile for 'SN9C10x PC Camera Controllers' driver for Linux ## ## Copyright (C) 2004-2005 by Luca Risolia <luca.risolia@studio.unibo.it> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ##############################################################################DRIVER_VERSION = 1.24ifneq ($(KERNELRELEASE),)obj-m += sn9c102.osn9c102-objs := sn9c102_core.o sn9c102_hv7131d.o sn9c102_mi0343.o sn9c102_pas106b.o sn9c102_pas202bcb.o sn9c102_tas5110c1b.o sn9c102_tas5130d1b.oelseKVERSION = `uname -r`KDIR := /lib/modules/$(KVERSION)/buildPWD := $(shell pwd)default: modulesmodules: @echo '**************************************************************************' @echo '* Building Video4Linux2 driver v$(DRIVER_VERSION) for SN9C10x PC Camera Controllers...*' @echo '* Official Linux 2.6.10 is the minimum version for this driver. *' @echo '* Read the documentation "sn9c102.txt" for more informations. *' @echo '* Type "make help" for a list of available targets. *' @echo '**************************************************************************' @echo $(MAKE) -C $(KDIR) M=$(PWD) modulesinstall: modules_installmodules_install: $(MAKE) -C $(KDIR) M=$(PWD) modules_installclean: $(MAKE) -C $(KDIR) M=$(PWD) cleanendifhelp: @echo 'List of available targets. Type:' @echo '- "make modules" to build the modules' @echo '- "make modules_install" to install the built modules' @echo '- "make clean" to remove all generated files in the current directory' @echo '- "make tar" to create and place an archive of the current directory in $(TARFILE)' @echo '- "make help" to print the list of available targets'##############################################################################TARFILE=../sn9c102-$(DRIVER_VERSION).tar.gzDIR=../FILE=sn9c102-$(DRIVER_VERSION)tar: tar -choz --verbose -C $(DIR) --file=$(TARFILE) $(FILE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -