On Mon, Jun 27, 2005 at 12:21:42AM +0800, Tseng-Jen Chuang wrote:
> I use Linux kernel 2.4.30. I just try to make ipvs in kernel source code.
> Just like this
> ================================================
> [root@koaho-s3 ipvs]# pwd
> /usr/src/linux/net/ipv4/ipvs
> [root@koaho-s3 ipvs]# make all
> Makefile:40: /Rules.make: No such file or directory
> make: *** No rule to make target `/Rules.make'. Stop.
> [root@koaho-s3 ipvs]# make
> Makefile:40: /Rules.make: No such file or directory
> make: *** No rule to make target `/Rules.make'. Stop.
> ================================================
> If I use cc or gcc to compile a single algorithm file, it will show a lot
> of error. I don't want to rebuild whole linux kernel file because it need
> a lot of time. I know this question is some kind of stupid, but please
> tell me what I can do. Thanks a lot.
When building in a kernel tree, you always need to run make from
the top level directory, in your case /usr/src/linux
--
Horms
|