Skip site navigation (1)Skip section navigation (2)
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,

=20

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?

=20

For example,

=20

In if_ixgb.h file,

#include <dev/ixgb/ixgb_hw.h>

#include <dev/ixgb/ixgb_ee.h>

#include <dev/ixgb/ixgb_ids.h>

=20

Instead can we have following lines in the
/usr/src/sys/modules/ixgb/Makfile file as

=20

.PATH: ${.CURDIR}/../../dev/ixgb

IXGB=3D   ${.CURDIR}/../../dev/ixgb

 CFLAGS+=3D -I. -I${IXGB}

=20

In if_ixgb.h file,

#include <ixgb_hw.h>

#include <ixgb_ee.h>

#include <ixgb_ids.h>

=20

Please advice.

=20

Thanks,

~Siva




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78C9135A3D2ECE4B8162EBDCE82CAD77C8928C>