diff options
Diffstat (limited to 'v4l/Makefile')
-rw-r--r-- | v4l/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/v4l/Makefile b/v4l/Makefile index f2918c1eb..13318d519 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -130,6 +130,7 @@ DEST := /lib/modules/$(KERNELRELEASE)/$(MDIR) KDIR26 := /lib/modules/$(KERNELRELEASE)/kernel/drivers/media KDIRUSB := /lib/modules/$(KERNELRELEASE)/kernel/drivers/usb/media +CPPFLAGS := -I$(SUBDIRS)/../linux/include $(CPPFLAGS) # which files to install? inst-m := $(wildcard *.ko) @@ -154,7 +155,14 @@ v4l_modules := $(shell lsmod|cut -d' ' -f1 ) $(patsubst %.ko,%,$(inst-m)) LC_ALL = POSIX export LC_ALL -default:: linux media +default:: + find ../linux/drivers/media/video -name '*.[c,h]' -type f -exec ln -sf '{}' . \; + find ../linux/kernel/drivers/usb/media -name '*.[c,h]' -type f -exec ln -sf '{}' . \; + +# find ../linux/include -name '*.[h]' -type f -exec ln -sf '{}' . \; + + ln -sf ../linux/drivers/media/common/ir-common.c . + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules @@ -212,11 +220,13 @@ rmmodules:: rmmod -w $(shell echo "$(v4l_modules)"|sed s,' ','\n',g|sed s,'-','_',g|sort|uniq -d) clean:: + find . -name '*.c' -type l -exec rm '{}' \; + find . -name '*.h' -type l -exec rm '{}' \; -rm -f *~ *.o *.ko *.mod.c - -rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd linux media: - ln -s . $@ + -rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd + -rm -rf .tmp_versions ################################################# # build tarballs |