Skip to main content
Epamuk
Associate III
October 15, 2019
Question

multiple include paths in makefile

  • October 15, 2019
  • 5 replies
  • 2459 views

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

This topic has been closed for replies.

5 replies

Martin KJELDSEN
Principal III
October 15, 2019

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
EpamukAuthor
Associate III
October 15, 2019

Hello Martin,

I fixed the problem, my mistake.

Thanks

Martin KJELDSEN
Principal III
October 15, 2019

Great. What was wrong?

/Martin

Epamuk
EpamukAuthor
Associate III
October 15, 2019

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
EpamukAuthor
Associate III
October 15, 2019