1 |
|
---|
2 | SOFA-Issue: 2015-02-09
|
---|
3 |
|
---|
4 | This is the IAU Standards of Fundamental Astronomy (SOFA) Libraries product,
|
---|
5 | issued on 2015-02-09. The tag `SOFA-Issue' above defines this release and
|
---|
6 | differentiates it from previous or subsequent releases of the SOFA product.
|
---|
7 | The 00READ.ME file must remain with this distribution set.
|
---|
8 |
|
---|
9 | Changes made since the previous release are noted in the file changes.lis.
|
---|
10 |
|
---|
11 | Notes:
|
---|
12 |
|
---|
13 | 1/ Unix users: The distribution set contains a simple makefile which
|
---|
14 | can be used to create a single object library for the SOFA Libraries.
|
---|
15 | To build the object library:
|
---|
16 |
|
---|
17 | a/ Examine the makefile to be sure definition of the C compiler
|
---|
18 | is correct for your system. You need an ANSI standard compliant
|
---|
19 | C compiler. Edit the CCOMPC macro in the makefile as necessary.
|
---|
20 |
|
---|
21 | b/ To create libsofa.a, execute make:
|
---|
22 |
|
---|
23 | % make
|
---|
24 |
|
---|
25 | (where % is the shell prompt).
|
---|
26 |
|
---|
27 | c/ To remove the object files:
|
---|
28 |
|
---|
29 | % make clean
|
---|
30 |
|
---|
31 | To link with the SOFA library, include the library in the compile/link
|
---|
32 | command in the normal Unix fashion, eg:
|
---|
33 |
|
---|
34 | % gcc myprog.c -o myprog libsofa.a
|
---|
35 |
|
---|
36 | You should specify the appropriate C compiler name for `gcc'
|
---|
37 | in the above command sequence.
|
---|
38 |
|
---|
39 |
|
---|
40 | 2/ Windows/DOS/Mac users: There is no `build' procedure to create a linkable
|
---|
41 | object library or DLL for the SOFA Libraries. This is due to the many
|
---|
42 | different C compilers and development environments available on
|
---|
43 | Windows/DOS and Mac machines.
|
---|
44 |
|
---|
45 | To use the SOFA routines with your program(s), you must use your preferred
|
---|
46 | development environment to create the appropriate library or DLL.
|
---|
47 |
|
---|
48 | IAU SOFA Center
|
---|
49 | 2015/02/09
|
---|