Skip to content
Stefano Zaghi edited this page Feb 10, 2015 · 1 revision

Into the directory examples there are some KISS examples, just read their provided REAMDE.md. Here are reported only some features-rich examples as fobos showcase.

Example of features-rich fobos file

[modes]
modes = gnu custom

[gnu]
help            = Mode "gnu" use GNU gfortran for building the project within PreForM.py pre-processor
compiler        = Gnu
mpi             = False
cflags          = -c
lflags          =
preproc         = -DPROFILING
mod_dir         = ./mod/
obj_dir         = ./obj/
lib_dir         = ./lib/
include         = ./include/
exclude         = ./src/nested/old.f90
build_dir       = ./build/
cflags_heritage = True
src             = ./src/
libs            = lib/bar.so lib/boo.a
ext_libs        = foo sao
colors          = True
quiet           = False
jobs            = 1
inc             = .h .H
target          = cumbersome.f90
output          = Cumbersome
log             = True
preform         = True
pfm_dir         = ./pfm/
pfm_ext         = .pfm .F90 .F95 .F03 .F08

[custom]
help      = Mode "custom" use g95 for building the project
compiler  = custom
fc        = g95
modsw     = -fmod=
mpi       = False
cflags    = -c
lflags    =
preproc   = -DPROFILING
mod_dir   = ./mod/
obj_dir   = ./obj/
lib_dir   = ./lib/
include   = ./include/
exclude   = ./src/nested/old.f90
build_dir = ./build/
src       = ./src/
libs      = lib/bar.so lib/boo.a
ext_libs  = foo sao
colors    = True
quiet     = False
jobs      = 1
inc       = .h .H
target    = cumbersome.f90
output    = Cumbersome
mklib     = static
log       = True
preform   = True
pfm_dir   = ./pfm/
pfm_ext   = .pfm .F90 .F95 .F03 .F08

[rule-makedoc]
help  = Rule for building the documentation
quiet = True
rule  = echo "I am making the doc... nope, this is a joke!"

[rule-maketar]
help = Rule for creating a projet tar archive
rule = tar cf cum_example.tar *
Clone this wiki locally