User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

devel:how-to:internal-lib [2012/10/14 12:04] (current)
miconda created
Line 1: Line 1:
 +====== How To Create And Use An Internal Library ======
 +===== Create a library =====
 +  * make a new directory in ''lib'' folder
 +  * copy there the Makefile from ''lib/print/'' and change the name in it
 +  * add your ''.c'' and ''.h'' files.
 +===== Use a library from a module =====
 +  * add to the module's Makefile (replace ''print'' with your lib name):
 +# libraries, in the format path/shortname , where shortname is
 +# what will be used for -l
 +Compiling the module will re-compile the library automatically if needed (e.g. some change in it).
 +''make install'' will also re-link the module (needed to change the rpath).
devel/how-to/internal-lib.txt ยท Last modified: 2012/10/14 12:04 by miconda