It doesn't help.


What I want to get is that all *.cpp *.c files in ./lib folder will be compiled and used for linking.
Righ now running make doesn't compile files in ./lib and and therefor linker can't find proper .o files even if I supply -L./lib..
 



On 3 May 2014 22:34, Chuck McManis <chuck.mcmanis@gmail.com> wrote:
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
./libopencm3
./include
./src/
./man.c
./Makefile

Regards,


------------------------------------------------------------------------------
"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."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
libopencm3-devel mailing list
libopencm3-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel