Reenable 624e (sensor SOI968)
[microdia.git] / Makefile
blobb46f06933b0f814c12a27a79e1354f1c56c7ba2a
2 ifneq ($(KERNELRELEASE),)
4 include $(src)/.config
6 microdia-objs := microdia-usb.o microdia-v4l.o microdia-sysfs.o
7 microdia-objs += microdia-dev.o microdia-queue.o
8 microdia-objs += sn9c20x.o ov965x.o
10 ifeq ($(CONFIG_MICRODIA_DEBUGFS),y)
11 microdia-objs += microdia-debugfs.o
12 EXTRA_CFLAGS = -DCONFIG_MICRODIA_DEBUGFS
13 endif
15 obj-$(CONFIG_MICRODIA) += microdia.o
17 else
19 KVER=$(shell uname -r)
20 KSRC=/lib/modules/$(KVER)/build
22 all: driver ctags
24 doc:
25 @echo "Generating document with Doxygen..."
26 @doxygen Doxyfile
28 driver:
29 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules
31 ctags:
32 @ctags -R
34 clean:
35 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) clean
36 @rm -f Module.symvers Module.markers modules.order tags
38 cleandoc:
39 @echo "Removing documentation generated by Doxygen..."
40 @rm -Rf ./doc
42 insmod:
43 @/sbin/insmod microdia.ko
45 rmmod:
46 @/sbin/rmmod microdia
48 endif