#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=$(PWD) modules
clean:
rm -f *.ko *.o *.mod.o *.mod.c *.symvers
endif
的錯誤是:生成文件:缺少分隔
makefile:2:*** missing separator . stop
但對於ifneq($(KERNELRELEASE),)
,如果我前面加上一個標籤,我得到另一個錯誤:
makefile:2: ***commands commence before first target. stop
對於以tab開頭的shell命令+1 – 2013-02-27 19:58:24