How to add extra component (select files) to make?

zliudr
Posts: 357
Joined: Thu Oct 03, 2019 5:15 am

How to add extra component (select files) to make?

Postby zliudr » Thu Mar 12, 2020 1:10 am

I know from reading sample code that you can include an extra folder of files to compile in make like this:

Code: Select all

EXTRA_COMPONENT_DIRS += $(AZURE_PATH)
Since I have a lot of common files in one folder, I'd like to just include one of these files in my new project. How do I do that? I could probably get away with and writing a .h header with declarations in the .c file and try a relative path #include. The lazy way would be to include the whole common files folder and just have make compile everything ;)

Who is online

Users browsing this forum: Majestic-12 [Bot] and 144 guests