This shows you the differences between two versions of the page.
— |
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 '' | ||
+ | * copy there the Makefile from '' | ||
+ | * add your '' | ||
+ | |||
+ | ===== Use a library from a module ===== | ||
+ | |||
+ | * add to the module' | ||
+ | |||
+ | < | ||
+ | SERLIBPATH=../ | ||
+ | # libraries, in the format path/ | ||
+ | # what will be used for -l | ||
+ | SER_LIBS=$(SERLIBPATH)/ | ||
+ | </ | ||
+ | |||
+ | Compiling the module will re-compile the library automatically if needed (e.g. some change in it). | ||
+ | |||
+ | '' |