diff options
-rw-r--r-- | v4l_experimental/pvrusb2/Makefile | 15 |
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 + + |