[C]Makefile 的文件名,注意首字母大写
如题,
Makefile的文件名,首字母要大写,首字母要大写,首字母要大写,不然make的时候会出错:
make -C /lib/modules/4.15.0-132-generic/build M=/home/*****/Documents/testdriver modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-132-generic' scripts/Makefile.build:45: /home/*****/Documents/testdriver/Makefile: No such file or directory
make[2]: *** No rule to make target '/home/*****/Documents/testdriver/Makefile'. Stop. Makefile:1587: recipe for target '_module_/home/*****/Documents/testdriver' failed
make[1]: *** [_module_/home/*****/Documents/testdriver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-132-generic' makefile:3: recipe for target 'all' failed make: *** [all] Error 2
不要问我是怎么知道的。。。