|
10 | 10 | - [Requirements](#requirements) |
11 | 11 | - [Supported compilers](#supported-compilers) |
12 | 12 | - [Build with CMake](#build-with-cmake) |
13 | | - - [Build with make](#build-with-make) |
14 | 13 | - [Build with fortran-lang/fpm](#build-with-fortran-langfpm) |
15 | 14 | * [Using stdlib in your project](#using-stdlib-in-your-project) |
16 | 15 | * [Documentation](#documentation) |
@@ -168,32 +167,6 @@ If at some point you wish to recompile `stdlib` with different options, you migh |
168 | 167 | want to delete the `build` folder. This will ensure that cached variables from |
169 | 168 | earlier builds do not affect the new build. |
170 | 169 |
|
171 | | - |
172 | | -### Build with make |
173 | | - |
174 | | -Alternatively, you can build using provided Makefiles: |
175 | | - |
176 | | -```sh |
177 | | -make -f Makefile.manual |
178 | | -``` |
179 | | - |
180 | | -You can limit the maximum rank by setting ``-DMAXRANK=<num>`` in the ``ADD_FYPPFLAGS`` environment variable (which can reduce the compilation time): |
181 | | - |
182 | | -```sh |
183 | | -make -f Makefile.manual ADD_FYPPFLAGS=-DMAXRANK=4 |
184 | | -``` |
185 | | - |
186 | | -You can also specify the compiler and compiler-flags by setting the ``FC`` and ``FFLAGS`` environmental variables. Among other things, this facilitates use of compiler optimizations that are not specified in the Makefile.manual defaults. |
187 | | -```sh |
188 | | -make -f Makefile.manual ADD_FYPPFLAGS=-DMAXRANK=4 FC=gfortran FFLAGS="-O3" |
189 | | -``` |
190 | | - |
191 | | -On some systems, ``make`` selects the wrong default compiler. If you encounter error messages like ``make[1]: f77: No such file or directory`` set ``FC`` to your preferred compiler (e.g., ``gfortran``) or try |
192 | | - |
193 | | -```sh |
194 | | -make -f Makefile.manual --no-builtin-variables |
195 | | -``` |
196 | | - |
197 | 170 | ### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm) |
198 | 171 |
|
199 | 172 | Fortran Package Manager (fpm) is a package manager and build system for Fortran. |
@@ -230,15 +203,6 @@ target_link_libraries( |
230 | 203 | To make the installed stdlib project discoverable add the stdlib directory to the ``CMAKE_PREFIX_PATH``. |
231 | 204 | The usual install location of the package files is ``$PREFIX/lib/cmake/fortran_stdlib``. |
232 | 205 |
|
233 | | -For non-CMake build systems (like make) you can use the exported pkg-config file by setting ``PKG_CONFIG_PATH`` to include the directory containing the exported pc-file. |
234 | | -The usual install location of the pc-file is ``$PREFIX/lib/pkgconfig``. |
235 | | -In make you can obtain the required compile and link arguments with |
236 | | - |
237 | | -```make |
238 | | -STDLIB_CFLAGS := $(shell pkg-config --cflags fortran_stdlib) |
239 | | -STDLIB_LIBS := $(shell pkg-config --libs fortran_stdlib) |
240 | | -``` |
241 | | - |
242 | 206 | ## Documentation |
243 | 207 |
|
244 | 208 | Documentation is a work in progress (see issue [#4](https://github.com/fortran-lang/stdlib/issues/4)) but already available at [stdlib.fortran-lang.org](https://stdlib.fortran-lang.org). |
|
0 commit comments