Fix SXGA support to enforce bayer format
[microdia.git] / Makefile
blob968de560f12719e903cded719d2fe943d85e1b30
2 ifneq ($(KERNELRELEASE),)
4 include $(src)/.config
6 sn9c20x-objs := sn9c20x-usb.o sn9c20x-v4l2.o sn9c20x-sysfs.o
7 sn9c20x-objs += sn9c20x-dev.o sn9c20x-queue.o
8 sn9c20x-objs += sn9c20x-bridge.o omnivision.o micron.o hv7131r.o
10 ifeq ($(CONFIG_SN9C20X_DEBUGFS),y)
11 sn9c20x-objs += sn9c20x-debugfs.o
12 EXTRA_CFLAGS = -DCONFIG_SN9C20X_DEBUGFS
13 endif
15 ifeq ($(CONFIG_SN9C20X_EVDEV),y)
16 EXTRA_CFLAGS += -DCONFIG_SN9C20X_EVDEV
17 endif
19 obj-$(CONFIG_SN9C20X) += sn9c20x.o
21 else
23 KVER=$(shell uname -r)
24 KSRC=/lib/modules/$(KVER)/build
26 all: driver ctags
28 doc:
29 @echo "Generating document with Doxygen..."
30 @doxygen Doxyfile
32 driver:
33 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules
35 ctags:
36 @ctags -R
38 clean:
39 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) clean
40 @rm -f Module.symvers Module.markers modules.order tags
42 cleandoc:
43 @echo "Removing documentation generated by Doxygen..."
44 @rm -Rf ./doc
46 insmod:
47 @/sbin/insmod sn9c20x.ko
49 rmmod:
50 @/sbin/rmmod sn9c20x
52 endif