README: simplify generic compilation instructions

[skip ci]
time-shift
Sébastien Villemot 2020-12-18 16:18:14 +01:00
parent e3d3214534
commit 000de496cc
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 7 deletions

View File

@ -108,19 +108,15 @@ The last line runs Autoconf and Automake in order to prepare the build environme
Simply launch the configure script from a terminal:
```sh
./configure
```
If you have MATLAB, you need to indicate the MATLAB location using the `with-matlab` flag. For example, on GNU/Linux:
```sh
./configure --with-matlab=/usr/local/MATLAB/R2019a
./configure --with-matlab=<…>
```
where the path to MATLAB is specified.
Some important options:
- `--disable-matlab`: skip the compilation of MEX files for MATLAB
- `--disable-octave`: skip the compilation of MEX files for Octave
- `--disable-doc`: skip the compilation of the documentation (PDF and HTML)
- `CFLAGS="-O3" CXXFLAGS="-O3"`: don't compile the C/C++ programs with debugging information
- `MATLAB_MEX_CFLAGS="-O3" MATLAB_MEX_CXXFLAGS="-O3"`: remove debugging information for MATLAB MEX functions
You may need to specify additional options to the configure script, see the output of the `--help` option, and also the platform specific instructions below. If the configuration goes well, the script will tell you which components are correctly configured and will be built.