Skip to main content
Epamuk
Associate III
Oct 15, 2019 7:15 AM UTC
Question

multiple include paths in makefile

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
Oct 15, 2019 7:55 AM UTC

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
Oct 15, 2019 1:30 PM UTC

Hello Martin,

I fixed the problem, my mistake.

Thanks

Martin KJELDSEN
Principal III
Oct 15, 2019 1:32 PM UTC

Great. What was wrong?

/Martin

Epamuk
EpamukAuthor
Associate III
Oct 15, 2019 1:59 PM UTC

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
Oct 15, 2019 1:59 PM UTC