makefile : missing separator

后端 未结 4 1844
礼貌的吻别
礼貌的吻别 2021-02-14 14:05
#kernel build system and can use its lanauge
ifneq($(KERNELRELEASE),)
 obj-m:=helloworld.o
else
 KDIR:= /lib/modules/2.6.33.3-85.fc13.i686/build
all:
 make -C $(KDIR) M=         


        
4条回答
  •  灰色年华
    2021-02-14 14:57

    Make is complaining that the second line doesn't start with a tab. Your IDE/texteditor may be saving the file using spaces as equivalent to a tab character. Either configure the IDE to use the tab character, or use a simple editor like vim or nano and replace the leading white space on the second line with a tab.

提交回复
热议问题