Next: , Up: using libraries compiling   [Index]


2.4.5.1 Compiling a single library

This library compilation strategy is implemented by a proper execution mode of Vicare enabled by the command line option --compile-library of vicare. In this mode:

Let’s say we have the libraries:

(alpha beta (1 0))
(alpha gamma (1 2))

in the files:

$(srcdir)/lib/alpha/beta.sls
$(srcdir)/lib/alpha/gamma.sls

we want to compile them to:

$(builddir)/lib/alpha/beta.fasl
$(builddir)/lib/alpha/gamma.fasl

and (alpha gamma (1 2)) imports (alpha beta (1 0)). We have multiple options:

This compilation strategy is useful when compiling a “big” number of libraries with a traditional Makefile:

To use this strategy effectively we need to write all the compilation commands, correctly tracking the dependencies; this is tedious, but there are ways to automatically generate the needed commands.


Next: , Up: using libraries compiling   [Index]