1 2 EXTRA_CFLAGS += -Wall -W -Wno-unused-parameter 3 4 ifneq ($(KERNELRELEASE),) 5 6 obj-m := video_dummy.o 7 else 8 KDIR := /lib/modules/$(shell uname -r)/build 9 PWD := $(shell pwd) 10 11 modules: 12 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules 13 14 clean: 15 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean 16 rm -f modules.order 17 18 help: 19 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) help 20 21 modules_install: 22 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install 23 24 endif 25