summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-11-15 18:14:05 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-11-15 18:14:05 +0000
commit5ed611afbec6fd973f36d37c0d3dd554e43cdc8b (patch)
treece7c42be9ecb92906fd88ae1143b639f5c6916ef /v4l_experimental/pvrusb2/Makefile
parent9b84af63c08f24d833fbfd90797c65c1829d9d3b (diff)
downloadmediapointer-dvb-s2-5ed611afbec6fd973f36d37c0d3dd554e43cdc8b.tar.gz
mediapointer-dvb-s2-5ed611afbec6fd973f36d37c0d3dd554e43cdc8b.tar.bz2
Fixed compiling on V4L CVS tree
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l_experimental/pvrusb2/Makefile')
-rw-r--r--v4l_experimental/pvrusb2/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/v4l_experimental/pvrusb2/Makefile b/v4l_experimental/pvrusb2/Makefile
index 720bf695c..1fcd89502 100644
--- a/v4l_experimental/pvrusb2/Makefile
+++ b/v4l_experimental/pvrusb2/Makefile
@@ -42,11 +42,8 @@ ifeq ($(KERNELRELEASE),)
default: all
all: modules
- modules modules_install clean:
- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) CONFIG_VIDEO_PVRUSB2=m $@
-
- install:
- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) CONFIG_VIDEO_PVRUSB2=m modules_install
+ M=$(shell pwd)
+ MYFLAGS := "CPPFLAGS= -D __KERNEL__ -I$(M)/../../linux/include -I$(M)/../../v4l $(CPPFLAGS) -I$(KDIR)/include"
else
@@ -55,3 +52,11 @@ else
endif
+ modules modules_install clean:
+ @echo cppflags=$(MYFLAGS)
+ $(MAKE) V=1 $(MYFLAGS) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) CONFIG_VIDEO_PVRUSB2=m $@
+
+ install:
+ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) CONFIG_VIDEO_PVRUSB2=m modules_install
+
+