[ale] Trouble using makefile on Caldera eDesktop 2.4

Joseph A. Knapka jknapka at earthlink.net
Thu Feb 8 11:03:30 EST 2001


Ron Nottingham wrote:
> 
> I'm still new to all this Linux stuff :-) and I'm trying to access my Win98
> partition from Linux.  The vfat.o says it was compiled for version 2.2.14
> and I have version 2.2.14-3.  OK...  So I find where the .c files are
> located to recompile for my version.  The files that are in the
> /usr/src/linux-2.2.14/fs/vfat directory are: Makefile  namei.c
> vfatfs_syms.c
> The following is the contents of Makefile:
> 
> # BOF
> #
> # Makefile for the linux vfat-filesystem routines
> #
> # Note! Dependencies are done automagically by 'make dep', which also
> # removes any old dependencies. DON'T put your own dependencies here
> # unless it's something special (ie not a .c file).
> #
> # Note 2! The CFLAGS definitions are now in the main makefile...
> 
> O_TARGET := vfat.o
> O_OBJS := namei.o
> OX_OBJS := vfatfs_syms.o
> M_OBJS := $(O_TARGET)
> 
> include $(TOPDIR)/Rules.make
> #EOF
> 
> When I execute makefile, I get an error stating: bash: makefile: command not
> found

This will never work; make files are not executable. You have to
say "make <target_in_makefile>".

> When I execute make vfat.o, I get this error:
> 
> Makefile:15: /Rules.make: No such file or directory
> make: *** No rule to make target `/Rules.make'.  Stop.

This is because all of the kernel makefiles assume that they are
being invoked via rules in the top level makefile, usually
/usr/src/linux/Makefile, which sets up a bunch of stuff that
the subdirectory make files need. You will need to
"cd /usr/src/linux ; make modules ; make modules_install"
to rebuild vfat.o, assuming you've configured VFAT support as a
module. Of course, only the things that actually need to
be rebuilt will be.

There may be a way to build stuff in subdirectories independently,
but I've never found out what it is.

-- Joe Knapka
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list