On Thu, 13 Dec 2001 19:28:46 -0800,
Geoffrey Espin <email@example.com> wrote:
>#include "../../../fs/jffs2/zlib.c" /**/
I am phasing out the practice of ../ in kernel include paths. It is
much better to do
and the Makefile adds -I$(TOPDIR)/fs/jffs2 -I$(TOPDIR)/lib. Then when
sources are moved from one directory to another, the source does not
change, only the Makefile. Relative paths are a pain in the neck in
Makefiles, they are even more of a pain in source code.
>TOPDIR = ../../..
TOPDIR := $(shell cd ../../..; /bin/pwd)
is better, it returns an absolute path instead of a relative one.
Keith Owens, kernel build maintainer