https://github.com/szaghi/FLAP
Tip revision: 6abb1296c99b56e56686012093d0650ed5ffc0df authored by Stefano Zaghi on 23 March 2016, 10:17:25 UTC
merge conflicts before merge feature/refactor-library-names-and-makefile
merge conflicts before merge feature/refactor-library-names-and-makefile
Tip revision: 6abb129
fobos
[modes]
modes = shared-gnu static-gnu shared-gnu-debug static-gnu-debug
shared-intel static-intel shared-intel-debug static-intel-debug
tests-gnu tests-gnu-debug
tests-intel tests-intel-debug
[common-variables]
$CSHARED_GNU = -cpp -c -fPIC -frealloc-lhs
$CSHARED_INT = -cpp -c -fpic -assume realloc_lhs
$LSHARED = -shared
$CSTATIC_GNU = -cpp -c -frealloc-lhs
$CSTATIC_INT = -cpp -c -assume realloc_lhs
$DEBUG_GNU = -O0 -g3 -Warray-bounds -Wcharacter-truncation -Wline-truncation -Wimplicit-interface -Wimplicit-procedure -Wunderflow -fcheck=all -fmodule-private -ffree-line-length-132 -fimplicit-none -fbacktrace -fdump-core -finit-real=nan -std=f2008 -fall-intrinsics
$DEBUG_INT = -O0 -debug all -check all -warn all -extend-source 132 -traceback -gen-interfaces#-fpe-all=0 -fp-stack-check -fstack-protector-all -ftrapuv -no-ftz -std08
$OPTIMIZE = -O2
# main modes
# GNU
[shared-gnu]
template = template-shared-gnu
target = flap.f90
build_dir = ./shared/
output = libflap.so
mklib = shared
[static-gnu]
template = template-static-gnu
target = flap.f90
build_dir = ./static/
output = libflap.a
mklib = static
[shared-gnu-debug]
template = template-shared-gnu-debug
target = flap.f90
build_dir = ./shared/
output = libflap.so
mklib = shared
[static-gnu-debug]
template = template-static-gnu-debug
target = flap.f90
build_dir = ./static/
output = libflap.a
mklib = static
[tests-gnu]
template = template-static-gnu
build_dir = ./tests/
[tests-gnu-debug]
template = template-static-gnu-debug
build_dir = ./tests/
# Intel
[shared-intel]
template = template-shared-intel
target = flap.f90
build_dir = ./shared/
output = libflap.so
mklib = shared
[static-intel]
template = template-static-intel
target = flap.f90
build_dir = ./static/
output = libflap.a
mklib = static
[shared-intel-debug]
template = template-shared-intel-debug
target = flap.f90
build_dir = ./shared/
output = libflap.so
mklib = shared
[static-intel-debug]
template = template-static-intel-debug
target = flap.f90
build_dir = ./static/
output = libflap.a
mklib = static
[tests-intel]
template = template-static-intel
build_dir = ./tests/
[tests-intel-debug]
template = template-static-intel-debug
build_dir = ./tests/
#templates
[template-shared-gnu]
compiler = gnu
cflags = $CSHARED_GNU $OPTIMIZE
lflags = $LSHARED $OPTIMIZE
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[template-static-gnu]
compiler = gnu
cflags = $CSTATIC_GNU $OPTIMIZE
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[template-shared-gnu-debug]
compiler = gnu
cflags = $CSHARED_GNU $DEBUG_GNU
lflags = $LSHARED $DEBUG_GNU
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[template-static-gnu-debug]
compiler = gnu
cflags = $CSTATIC_GNU $DEBUG_GNU
lflags = $DEBUG_GNU
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[template-shared-intel]
compiler = intel
cflags = $CSHARED_INT $OPTIMIZE
lflags = $LSHARED $OPTIMIZE
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[template-static-intel]
compiler = intel
cflags = $CSTATIC_INT $OPTIMIZE
lflags = $OPTIMIZE
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[template-shared-intel-debug]
compiler = intel
cflags = $CSHARED_INT $DEBUG_INT
lflags = $LSHARED $DEBUG_INT
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[template-static-intel-debug]
compiler = intel
cflags = $CSTATIC_INT $DEBUG_INT
lflags = $DEBUG_INT
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 2
[rule-makedoc]
help = Rule for building documentation from source files
rule_1 = rm -rf doc/html/*
rule_2 = ford doc/main_page.md
rule_3 = cp -r doc/html/publish/* doc/html/
[rule-deldoc]
help = Rule for deleting documentation
rule = rm -rf doc/html/*
[rule-maketar]
help = Rule for making tar archive of the project
rule = tar -czf FLAP.tar.gz *
[rule-makecoverage]
help = Rule for performing coverage analysis
rule_1 = FoBiS.py clean -mode tests-gnu
rule_2 = FoBiS.py build -mode tests-gnu -coverage
rule_3 = ./tests/test_basic
rule_4 = ./tests/test_basic -v
rule_5 = ./tests/test_basic -h
rule_6 = ./tests/test_basic -s 'Hello FLAP' -i 2
rule_7 = ./tests/test_basic -s 'Hello FLAP' -i 3 -ie 11
rule_8 = ./tests/test_basic 33.0 -s 'Hello FLAP' --integer_list 10 -3 87 -i 3 -r 64.123d0 --boolean --boolean_val .false.
rule_9 = ./tests/test_basic -s 'Hello FLAP' --man_file FLAP.1
rule_10 = ./tests/test_basic -s 'Hello FLAP' -vlI1P 2 1 3 -vlI2P 12 -2 -vlI4P 1 -vlI8P 1 -vlR8P 121.31 -vlR4P 3423121.31 -vlChar foo bar -vlBool T F T F
rule_11 = ./tests/test_basic -s 'Hello FLAP' -- foo.bar bar/baz.f90
rule_12 = ./tests/test_nested
rule_13 = ./tests/test_nested -h
rule_14 = ./tests/test_nested -a
rule_15 = ./tests/test_nested init
rule_16 = ./tests/test_nested init commit -m 'hello'
rule_17 = ./tests/test_nested commit -m 'hello'
rule_18 = ./tests/test_nested tag -a 'hello'
rule_19 = ./tests/test_string
rule_20 = ./tests/test_choices_logical
rule_21 = gcov -o tests/obj/ src/lib/flap.f90
[rule-coverage-analysis]
help = Rule for performing coverage analysis and saving reports in markdown
rule_1 = FoBiS.py clean -mode tests-gnu
rule_2 = FoBiS.py build -mode tests-gnu -coverage
rule_3 = ./tests/test_basic
rule_4 = ./tests/test_basic -v
rule_5 = ./tests/test_basic -h
rule_6 = ./tests/test_basic -s 'Hello FLAP' -i 2
rule_7 = ./tests/test_basic -s 'Hello FLAP' -i 3 -ie 11
rule_8 = ./tests/test_basic 33.0 -s 'Hello FLAP' --integer_list 10 -3 87 -i 3 -r 64.123d0 --boolean --boolean_val .false.
rule_9 = ./tests/test_basic -s 'Hello FLAP' --man_file FLAP.1
rule_10 = ./tests/test_basic -s 'Hello FLAP' -vlI1P 2 1 3 -vlI2P 12 -2 -vlI4P 1 -vlI8P 1 -vlR8P 121.31 -vlR4P 3423121.31 -vlChar foo bar -vlBool T F T F
rule_11 = ./tests/test_basic -s 'Hello FLAP' -- foo.bar bar/baz.f90
rule_12 = ./tests/test_nested
rule_13 = ./tests/test_nested -h
rule_14 = ./tests/test_nested -a
rule_15 = ./tests/test_nested init
rule_16 = ./tests/test_nested init commit -m 'hello'
rule_17 = ./tests/test_nested commit -m 'hello'
rule_18 = ./tests/test_nested tag -a 'hello'
rule_19 = ./tests/test_string
rule_20 = ./tests/test_choices_logical
rule_21 = gcov -o tests/obj/ src/lib/flap.f90 src/tests/*
rule_22 = FoBiS.py rule -gcov_analyzer wiki/ Coverage-Analysis
rule_23 = rm -f *.gcov FLAP.1