4,441
社区成员
发帖
与我相关
我的任务
分享
obj-m := calculate.o
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE ("Dual BSD/GPL");
int add_integar (int a, int b)
{
return a+b;
}
int sub_integar (int a, int b)
{
return a-b;
}
EXPORT_SYMBOL (add_integar);
EXPORT_SYMBOL (sub_integar);
obj-m := calculate
make: Entering directory `/home/kernelcode/linux-2.6.10'
scripts/Makefile.build:195: target `/home/test_project/calculate/calculate' doesn't match the target pattern
CC [M] /home/matthew/test_project/calculate/calculate
gcc: no input files
make[1]: *** [/home/test_project/calculate/calculate] Error 1
make: *** [_module_/home/test_project/calculate] Error 2
make: Leaving directory `/home/matthew/linux-2.6.10'
[root@localhost calculate]#