If you are using the examples make file you can just add "-I<include_dir>" to CFLAGS which will add it to the command line.

On Sat, May 3, 2014 at 11:52 AM, Marcin Jurczuk <spock@omegastar.eu> wrote:
Hi guys,

Sorry if this is wrong place but after two days of fighting I decided that asking here might be easier since no response was found via uncle Google :-/

I made two files (*.h *.cpp )  that provide me stepper motor library which I want to incorporate to my project which is using libopencm3.
Examples are based on simple single file source code.

What (where) changes need to be made so I can have "lib/include" folder where my *.cpp and *h will be located and compiled by "make".

Manual make works so my code is ok however I don't know where to modify libopencm3.rules.mk/ libopencm3.target.mk so they will look into lib/include folder for files to compilation.

Project structure is simple


"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
libopencm3-devel mailing list