cancel
Showing results for 
Search instead for 
Did you mean: 

multiple include paths in makefile

Epamuk
Associate III

Hello,

I need to add multiple include paths to makefile for touchgfx project.

I have two paths

  1. mycode/include - mycode/src
  2. mycode/CMSIS_RTOS/include - mycode/CMSIS_RTOS/src

I edit makefile like below but it doesnt work. Is this notification correct ?

include_paths := $(library_includes) $(foreach comp, $(all_components), $(comp)/include) $(framework_includes) mycode/include mycode/CMSIS_RTOS/include

source_paths = $(foreach comp, $(all_components), $(comp)/src) mycode_src mycode/CMSIS_RTOS/src

5 REPLIES 5
Martin KJELDSEN
Chief III

First glance it looks correct. Are your compiler errors obviously related to not being able to find referenced header files? Could you show me the log?

/Martin

Epamuk
Associate III

Hello Martin,

I fixed the problem, my mistake.

Thanks

Martin KJELDSEN
Chief III

Great. What was wrong?

/Martin

Epamuk
Associate III

0690X00000AqNlYQAV.pngWhen I write below texts to end of include_paths it works.

"indicator/include" - "indicator/CMSIS_OS"

But If I define

mycode_include := indicator/include  

mycode_src   := indicator/src  

myoscode_include := indicator/CMSIS_OS  

myoscode_src   := indicator/CMSIS_OS  

and then write

"mycode_include " - "myoscode_include"

to the end of include_paths it doesnt work.

I attach two makefiles and errorLOG

Epamuk
Associate III