Files
paparazzi/sw/airborne/math
Felix Ruess de13525fd3 Merge branch 'ocamlfind_no_custom'
- Use findlib (ocamlfind) for ocaml packages.
- Create META file for pprz ocaml lib.
- Link dynamically instead of statically (no -custom), which also results in faster build times.
- Use mktemp to properly create temporary files.
- More makefile cleanup...

closes #274
2013-03-29 20:18:09 +01:00
..
2012-10-06 11:46:09 +02:00

Math lib used in all airborne code of paparazzi

HOWTO install a shared library to use in other projects

1. Build library: in this folder, type
  make shared_lib

  the default build directory is var/build/math
  to change it: BUILDDIR=<your_build_dir> make shared_lib

2. Install library: in this folder, type
  make install_shared_lib

  the default install dir is /usr
  and will install files in
  /usr/lib
  /usr/lib/pkgconfig
  /usr/include/pprz

  to change the install dir: PREFIX=<your_install_dir> make install_shared_lib

  note that the default install dir needs root privilege

HOWTO use the shared library

1. with pkg-config --cflags --libs

2. by hand:
  LIBS: -L<prefix>/lib -lpprzmath
  CFLAGS: -I<prefix>/include/pprz


"make clean" will only clean the build directory