Chinaunix

标题: 请教一个简单的makefile问题 [打印本页]

作者: Aqie    时间: 2006-06-10 20:36
标题: 请教一个简单的makefile问题
我编译一个自己写的内核模块时出错. 环境如下

# lf -l
total 14
-rwxrwxrwx  1 root  wheel      44 Jun 10 20:01 Makefile*
-rw-r--r--  1 root  wheel     819 Jun 10 19:43 test.c

# cat Makefile
SRCS = test.c
KMOD = test
KO   = ${KMOD}.ko

# make
make: no target to make.

为什么会 make: no target to make.   ????
作者: ocean390    时间: 2006-06-10 21:38
参考/usr/share/examples/kld/dyn_sysctl/里面的Makefile文件.
作者: congli    时间: 2006-06-10 21:39
http://bbs.chinaunix.net/viewthr ... &extra=page%3D2
作者: Aqie    时间: 2006-06-28 14:16
谢谢了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2