12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # changelog :
- #------------
- # naresh - 29-Mar-2007 : cyan_00391
- # fixed the code which detects the existing kernel module
- #
- # Notes:
- # -----------
- # This clever makefile was shamelessly copied from the ivtv project.
- #
- # By default, the build is done against the running kernel version.
- # to build against a different kernel version, set KVER
- #
- # make KVER=2.6.11-alpha
- #
- # Alternatively, set KDIR
- #
- # make KDIR=/usr/src/linux
- V ?= 0
- MDIR := extra
- KVER ?= $(shell uname -r)
- KDIR ?= /lib/modules/$(KVER)/build
- FWDIR ?= /lib/firmware
- obj-m += r5u870v2.o
- r5u870v2-objs := main.o webcam.o urb.o uvc.o
- all::
- $(MAKE) -C $(KDIR) M=$(CURDIR) V=$(V) modules
- install:: all
- $(MAKE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=$(MDIR) \
- -C $(KDIR) M=$(CURDIR) modules_install
- /sbin/depmod -a
- firmware_install::
- cd firmware && ${MAKE} firmware_install
- clean::
- $(MAKE) -C $(KDIR) M=$(CURDIR) clean
- rm -f Module.symvers
|