Ian Jauslin
summaryrefslogtreecommitdiff
blob: bc9fa86070c5ec23951b241c4f1282a781b2c9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#######################################################################
##                                                                   ##
##            Compiling and installing libinum.                      ##
##                                                                   ##
#######################################################################

* libinum should work on any POSIX compliant system, such as GNU/Linux or OSX.

* libinum is linked against the GNU MPFR, GNU GMP and pthread libraries.

* Compiling:
  Run
    make
  
  The default paths can be modified by passing the appropriate arguments to
  make, as specified in the following table
    compiler   :  CC=/usr/bin/gcc
    linker     :  LD=/usr/bin/gcc
    archive    :  AR=/usr/bin/ar
    include    :  INCLUDE=
    lib paths  :  LIB=
    optimize   :  OPT=-O3

  For example,
    make CC=/usr/local/bin/gcc INCLUDE=/usr/local/include LIBDIR=-L/usr/local/lib

  In addition, libinum can be compiled as  dynamic or static library, which is
  controlled by the STATIC option of the makefile.
    If STATIC=0 (default) then compile both
    If STATIC=1 then compile the static library
    If STATIC=2 then compile the dynamic library


* Installing:
  Run
    make install

  The default install prefix (/usr) can be changed by changing the PREFIX
  variable.

  For example
    make install PREFIX=/usr/local