I'm trying to compile my program thread.c
with the following Makefile:
ifneq ($(KERNELRELEASE),)
obj-m := thread.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
endif
When I run make
I've got the error
Makefile:10: *** missing separator. Stop.
I'm not found the cause of this issue, someone can help me with this one ?