Date: Fri, 22 Sep 2006 03:45:14 -0400 From: "Sivakumar Subramani" <Sivakumar.Subramani@neterion.com> To: <freebsd-net@freebsd.org> Subject: Absolute path inclusion in the FreeBSD Drivers. Message-ID: <78C9135A3D2ECE4B8162EBDCE82CAD77C8928C@nekter>
next in thread | raw e-mail | index | archive | help
Hi,
I could see that all the file inclusion in all the driver use absolute
path. Can we use relative path and a CFLAG inclusion like this in the
Makefile?
For example,
In if_ixgb.h file,
#include <dev/ixgb/ixgb_hw.h>
#include <dev/ixgb/ixgb_ee.h>
#include <dev/ixgb/ixgb_ids.h>
Instead can we have following lines in the
/usr/src/sys/modules/ixgb/Makfile file as
.PATH: ${.CURDIR}/../../dev/ixgb
IXGB= ${.CURDIR}/../../dev/ixgb
CFLAGS+= -I. -I${IXGB}
In if_ixgb.h file,
#include <ixgb_hw.h>
#include <ixgb_ee.h>
#include <ixgb_ids.h>
Please advice.
Thanks,
~Siva
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78C9135A3D2ECE4B8162EBDCE82CAD77C8928C>
