| 72 | |
| 73 | === MinGW command-line (Cygwin, cross-compile) === |
| 74 | |
| 75 | To build the boinc library and API for Windows using MinGW, use lib/Makefile.mingw. |
| 76 | |
| 77 | Per default the targets ''libboinc_api.a'' ''libboinc.a'' and ''libboinc_graphics2.a'' are built. |
| 78 | Optional targets are ''libboinc_zip.a'' (requires the boinc_zip tree), |
| 79 | and the usual ''clean'', ''install'' and ''uninstall'' targets. |
| 80 | |
| 81 | The following environment variables influence the build: |
| 82 | * CC and CXX : set to MinGW C and C++ compiler |
| 83 | * AR and RANLIB : set to ''ar'' and ''ranlib'' of the ''target'' system when cross-compiling |
| 84 | * BOINC_SRC : set to the root of the boinc source tree, defaults to .. |
| 85 | * BOINC_PREFIX : set to destination if you want to use install & uninstall targets; defaults to /usr/local/boinc |
| 86 | * NOCYGWIN : set to '-mno-cygwin' if you are building on Cygwin but for use on plain Windows (i.e. w/o cygwin.dll) |