summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-10-08 20:20:09 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-10-08 20:20:09 +0000
commita153b824099026a170b76a52a93e2b6a7fc6c4ef (patch)
tree0a255b9e8c52fa3180e44d7a4ffa637c78eeecd8 /v4l/Makefile
parentcc167c807bb73be31bd5b2fc5298f3c0b0f65475 (diff)
downloadmediapointer-dvb-s2-a153b824099026a170b76a52a93e2b6a7fc6c4ef.tar.gz
mediapointer-dvb-s2-a153b824099026a170b76a52a93e2b6a7fc6c4ef.tar.bz2
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
* ../linux/drivers/media/video/tveeprom.c: - Fixed include when compiling at kernel tree * ../linux/include/linux/videodev.h: - removed compat.h from wrong place * ../linux/drivers/media/video/tvp5150.c: * ../linux/kernel/drivers/usb/media/em2820-cards.c: * ../linux/kernel/drivers/usb/media/em2820-core.c: * ../linux/kernel/drivers/usb/media/em2820-i2c.c: * ../linux/kernel/drivers/usb/media/em2820-video.c: - included compat.h at the right place * ../v4l/Make - now creates symlinks to allow compiling V4L stuff at v4l dir. * ../v4l/scripts/prepare-ChangeLog.pl: - modified to include other directories. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile16
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