Contains well-known numerical libraries compiled in Javascript for FreeFEM. Generating Javascript output requires cross-compiling, which is
not usually provided in the building procedure of these libraries. This Makefile
generates the required cross-compilation
directives and produces a single Javascript lib.
The main target is emscripten, but other compilers can be used by setting $(CXX)
and $(CXXFLAGS)
. The three
main binary output formats are dev (development version), min (optimized for speed and minimum size)
and native. Please refer to ffjs for more details. Optimized options are available (mainly “-Os”), but without
compromising on portability.
With many thanks to the projects used here:
This library has been initiated as a tool for ffjs and FreeFEM-cs but it can be used standalone. More packages may be added on request.
Building the default (native) binary version (result in bin_default/libfflib.a
):
make -j binary
Creating binaries for any architecture named “arch” (result in bin_arch/libfflib.a
):
make -j BINTAG=arch BINGOAL=all
All the usual make variables (CXX, CXXFLAGS, etc) are available. Please refer to the ffjs project for Javascript configuration options.
Sha256 checksums are available.