Here is a makefile file that I wrote for the kernel module
——————————————————————————————————————————————————————
1 Ifneq ($ (kernelrelease),)
2 obj-m: = hello.o calculate.o
3 Else
4
5 Kdir: =/lib/modules/2.6.18-53.el5/build
6 All:
7 make-c $ (kdir) m=$ (PWD) modules
8 Clean:
9 rm-f *.ko *.o *.mod.o *.mod.c *.symvers
Ten endif
——————————————————————————————————————————————————————
1. There is a space behind the first line Ifneq
2. The second and fifth lines: = Each side has a space on both sides of the alignment (experience, both sides of the alignment can be said; = two or both spaces or not at the same time)
3. Lines seventh and Nineth make and RM must be preceded by a tab tab, rather than using the spacebar easily.
4. This can be a vulnerability, when using the Kate Editor to print tabs, the system still prompts the error "missing separator." Stop ". When you use a text editor to make a tab, you can do it normally.
TB12 about writing makefile file error: Missing delimiter. Stop it