Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Adding custom header files to qnx_target without extra source compilation: Page 1 of 2 (2 Items)
   
Adding custom header files to qnx_target without extra source compilation  
We have some header files that relate to our specific hardware that we need to get placed in qnx_target/usr/include. 
There's no source files to compile in this case.

I can't find an example of a project directory which just contains headers. They all contain assembly or .c source files
 to compile.

For example, I want to create:

  src/hardware/foo/public/bar/xyzzy.h

...and have xyzzy.h copied to qnx_target/usr/include/bar as part of the hinstall processing.

It's not clear to me which make file "triggers" the hinstall processing.

I started with creating a basic Makefile in the foo directory that just contained:

LIST=foo
include recurse.mk

But it seems like I need a common.mk and a lower directory to include it.

I could just place the files in src/hardware/startup/lib/public, but didn't really want to use that approach.