diff options
author | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2020-11-25 15:24:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 15:24:00 +0000 |
commit | 2612d9aea9db8802042516ca97e6eb7268da200d (patch) | |
tree | bb4cd25aed2c74aad72b20912d3309684088baf4 /PACKAGING.md | |
parent | c4ce73e485cf48d6b6b3e9f34938c7f8effec22b (diff) | |
parent | 03fec875cfab2e358ab2665d70ce09b64cf7ddbf (diff) | |
download | fpm-2612d9aea9db8802042516ca97e6eb7268da200d.tar.gz fpm-2612d9aea9db8802042516ca97e6eb7268da200d.zip |
Merge pull request #239 from urbanjost/runner
Add --runner option to Fortran fpm to match Haskell fpm
Diffstat (limited to 'PACKAGING.md')
-rw-r--r-- | PACKAGING.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/PACKAGING.md b/PACKAGING.md index 44a0c02..663db62 100644 --- a/PACKAGING.md +++ b/PACKAGING.md @@ -177,7 +177,7 @@ Based on the output of `fpm build`, *fpm* first ran `gfortran` to emit the binary object (`math_constants.o`) and module (`math_constants.mod`) files. Then it ran `ar` to create a static library archive `math_constants.a`. `build/debug/library` is thus both your include and library path, should you -want to compile and link an exteranl program with this library. +want to compile and link an external program with this library. For modules in the top-level (`src`) directory, *fpm* requires that: @@ -585,7 +585,7 @@ And now, `fpm run` will output the following: ``` Additionally, any users of your library will now automatically depend on your -dependencies too. So if you don’t need that depedency for the library, like in +dependencies too. So if you don’t need that dependency for the library, like in the above example, then you can specify it for the specific executable like below. Then fpm will still fetch and compile it when building your executable, but users of your library won’t have to. @@ -677,7 +677,7 @@ the build script: * `FC` – The Fortran compiler to be used. * `FFLAGS` – The flags that should be passed to the Fortran compiler. * `BUILD_DIR` – Where the compiled files should be placed. -* `INCLUDE_DIRS` – The folders where any dependencies can be found, space seperated. +* `INCLUDE_DIRS` – The folders where any dependencies can be found, space separated. It is then the responsibility of the build script to generate the appropriate include flags. |