请问这个Makefile文件是什么意思,在线等!

为当前最终发行版之前的所有版本提供支持
回复
jichunzhi
帖子: 86
注册时间: 2007-03-31 15:53
送出感谢: 0
接收感谢: 0

请问这个Makefile文件是什么意思,在线等!

#1

帖子 jichunzhi » 2007-09-24 12:07

obj-m := hello.o
KERNELBUILD :=/lib/modules/`uname -r`/build
default:
make -C $(KERNELBUILD) M=$(shell pwd) modules
clean:
rm -rf *.o *.ko *.mod.c .*.cmd .tmp_versions
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星
送出感谢: 1 次
接收感谢: 0

#2

帖子 xhy » 2007-09-24 14:21

Makefile是一种脚本语言
你可以去GNU 主页下载教程
目前负债150多万
jichunzhi
帖子: 86
注册时间: 2007-03-31 15:53
送出感谢: 0
接收感谢: 0

#3

帖子 jichunzhi » 2007-09-24 15:49

root@jichunzhi:/usr/src/linux-2.6.17.1/drivers/misc# make
make -b -C /lib/modules/`uname -r`/build/ -I/usr/realtime/include -I/usr/realtime/include/asm -I/lib/modules/`uname -r`/build/include -I/lib/modules/`uname -r`/build/include/asm/mach-default M=/usr/src/linux-2.6.17.1/drivers/misc modules
make[1]: Entering directory `/usr/src/linux-2.6.17.1'
Building modules, stage 2.
MODPOST
WARNING: "rtf_destroy" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rtheap_free" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_task_resume" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_typed_sem_init" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_task_init" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rtheap_alloc" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rtai_global_heap" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rtf_create" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_spopen" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_spclose" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_spread" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "pthread_wait_period_np" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rtf_put" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rtf_reset" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_spwrite" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "pthread_make_periodic_np" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_get_time" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "pthread_setschedparam" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_whoami" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_task_suspend" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_sem_delete" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
WARNING: "rt_sem_broadcast" [/usr/src/linux-2.6.17.1/drivers/misc/fifo.ko] undefined!
make[1]: Leaving directory `/usr/src/linux-2.6.17.1'
这是怎么回事
头像
aca
帖子: 129
注册时间: 2007-04-22 13:23
送出感谢: 0
接收感谢: 0

#4

帖子 aca » 2007-09-24 20:12

因为你没装build-essential
想象你在身边
回复

回到 “老旧版本支持”