| 27 |
27 |
| 28 |
28 |
| 29 Build instructions |
29 Build instructions |
| 30 ------------------ |
30 ------------------ |
| 31 |
31 |
| 32 When using gcc, just run |
32 To build a release version, run configure with the following option: |
| 33 |
33 |
| 34 make |
34 ./configure --release |
| 35 |
35 |
| 36 To use a different compiler run |
36 The script detects your toolchain automatically. In case you want |
| |
37 a different compiler, you can set the CC environment variable before |
| |
38 running configure. |
| 37 |
39 |
| 38 make CONF=<config> |
40 CC=clang ./configure --release |
| 39 |
|
| 40 Available configs: |
|
| 41 gcc |
|
| 42 clang |
|
| 43 suncc |
|
| 44 bsd |
|
| 45 osx |
|
| 46 mingw |
|
| 47 |
|
| 48 |
41 |
| 49 Install |
42 Install |
| 50 ------- |
43 ------- |
| 51 |
44 |
| 52 After a successful compilation, the binaries (dav/dav-sync) are in the |
45 After a successful compilation, the binaries (dav/dav-sync) are in the |
| 54 |
47 |
| 55 make install |
48 make install |
| 56 |
49 |
| 57 This installs the binaries to /usr. To install to an other location, run |
50 This installs the binaries to /usr. To install to an other location, run |
| 58 |
51 |
| 59 make install PREFIX=/your/prefix |
52 ./configure --release --prefix=/your/prefix |
| |
53 |
| |
54 before running make. |
| 60 |
55 |
| 61 Note: The install target doesn't work on Windows, therefore you need to install |
56 Note: The install target doesn't work on Windows, therefore you need to install |
| 62 the two executables manually. |
57 the two executables manually. |
| 63 |
58 |