From: EBo <eb...@sa...> - 2011-03-23 11:08:13
|
On Wed, 23 Mar 2011 10:25:10 +0000, andy pugh wrote: > On 23 March 2011 03:07, EBo <eb...@sa...> 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 -- |