Skip to content

Commit aa85480

Browse files
committed
updated readme for fobis file.
fixed typo in readme.
1 parent aa03aed commit aa85480

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,22 @@ script) with the [NAG Fortran compiler 6.0](http://www.nag.com/nagware/NP/NP_des
9090
Currently, several ways are provided to build the JSON-fortran library
9191
(libjsonfortran).
9292

93-
* A build script, `build.sh` is provided in the project root directory. This script uses [FoBiS](https://github.com/szaghi/FoBiS) to build the JSON-Fortran library and the unit tests. Edit the script to use either the [Intel Fortran Compiler](https://software.intel.com/en-us/fortran-compilers) or [Gfortran](https://gcc.gnu.org/wiki/GFortran). Note that version 1.2.5 of FoBiS (or later) is required.
93+
* A build script, `build.sh` is provided in the project root directory. This script uses [FoBiS](https://github.com/szaghi/FoBiS) to build the JSON-Fortran library and the unit tests on Unix-like systems. Edit the script to use either the [Intel Fortran Compiler](https://software.intel.com/en-us/fortran-compilers) or [Gfortran](https://gcc.gnu.org/wiki/GFortran). Note that version 1.2.5 of FoBiS (or later) is required.
94+
95+
* A [FoBiS](https://github.com/szaghi/FoBiS) configuration file (`json-fortran.fobis`) is also provided that can also build the library and examples. Use the `mode` flag to indicate what to build. For example:
96+
97+
* To build all the examples using gfortran: `FoBiS.py build -f json-fortran.fobis -mode tests-gnu`
98+
* To build all the examples using ifort: `FoBiS.py build -f json-fortran.fobis -mode tests-intel`
99+
* To build a static library using gfortran: `FoBiS.py build -f json-fortran.fobis -mode static-gnu`
100+
* To build a static library using ifort: `FoBiS.py build -f json-fortran.fobis -mode static-intel`
101+
102+
The full set of modes are: `static-gnu`, `static-gnu-debug`, `static-intel`, `static-intel-debug`, `shared-gnu`, `shared-gnu-debug`, `shared-intel`, `shared-intel-debug`, `tests-gnu`, `tests-gnu-debug`, `tests-intel`, `tests-intel-debug`
103+
104+
To generate the documentation using [ford](https://github.com/cmacmackin/ford), run:
105+
106+
```
107+
FoBis.py rule --execute makedoc -f json-fortran.fobis
108+
```
94109

95110
* A [Visual Studio](https://www.visualstudio.com) project is included for building the library (and unit tests) on Windows with the Intel Fortran Compiler. The project has been tested with Visual Studio 2010 and 2013.
96111

@@ -116,7 +131,7 @@ project ( jf_test NONE )
116131
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 6.2.0 REQUIRED )
117132
include_directories ( "${jsonfortran_INCLUDE_DIRS}" )
118133
119-
file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.f90" )
134+
file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.F90" )
120135
foreach ( UNIT_TEST ${JF_TEST_SRCS} )
121136
get_filename_component ( TEST ${UNIT_TEST} NAME_WE )
122137
add_executable ( ${TEST} ${UNIT_TEST} )

0 commit comments

Comments
 (0)