On Wed, 23 Mar 2011 10:25:10 +0000, andy pugh wrote:
> On 23 March 2011 03:07, EBo <[email protected]> wrote:
>
>>> src/objects/hal/drivers.
>>> The hostmot2 header files are in src/hal/drivers.
>
>> Depending on what you mean by absolute path...
>>
>> #include "hal/drivers/mesa-hostmot2/hostmot2.h"
>
> There are two hal/drivers directories, only one of which contains a
> /mesa-hostmot2/ subdirectory.
> (Just to clairify the problem)
>
>> and have the realization of TOP="../../.." added to the compiler
>> defines as CFLAGS += "-I${TOP}"
>
> I know nothing at all about makefile syntax, but won't that break
> everything else?
the "+=" syntax works for makefiles. I use it on a regular basis.
Here is a random example from a project:
CFLAGS+=-I hw_include -I . -I ${RTOS_SOURCE_DIR}/include
The trick is to set the RTOS_SOURCE_DIR (equivalent to TOP above)
correctly, but this is fairly standard.
>> Other than that, it is a bad idea to write literal absolute paths
>> in
>> incloude arguments unless these are system standards.
>
> I think my question might be what the EMC2 system standards are.
understand. Hopefully someone else can guide you there as I have been
mostly out of hacking on EMC for awhile.
Best of luck.
EBo --
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers