you change into src a directory that does not exist but you should go into the module directory
take this makefile
Code:
ifneq ($(KERNELRELEASE),)
obj-m := simple-lkm.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
endif