next up previous contents index
Next: Verbosity Up: Compilation scripts in details Previous: Load map   Contents   Index

Executables

You can ask GmkPack to switch off the building of all executables :

# Do you want to make any executable ? (yes/no)
# ----------------------------------
Load=no
Notice : If you build executables you can tune several parameters for each of them. Example :
# Binary "odbtools" :
cat <<end_of_odbtools_link> $GMKWRKDIR/.odbtools_link
EXEC=ODBTOOLS
ENTRY=odb/odbmain/Odbtools.o odb/misc/Odbtools.o odb/tools/Odbtools.o
end_of_odbtools_link
# BACKGROUND LIBRARIES (from top to bottom) :
cat <<end_of_odbtools_libs> $GMKWRKDIR/.odbtools_libs
/home/khatib/pack/opt/lib/libarp.inter.1.a
/home/khatib/pack/opt/lib/libarp.main.a
/home/khatib/pack/opt/lib/libxrd.main.a
/home/khatib/pack/opt/lib/libodb.main.a
/home/khatib/pack/opt/lib/libcma-odb.main.a
/home/khatib/pack/opt/lib/libmtocomp-odb.main.a
/home/khatib/pack/opt/lib/libport-odb.main.a
/home/khatib/pack/opt/lib/libscr-odb.main.a
/home/khatib/pack/opt/lib/libunsxref-verbose.main.a
end_of_odbtools_libs
# LOW-LEVEL LIBRARIES (from top to bottom) :
cat <<end_of_odbtools_sys> $GMKWRKDIR/.odbtools_sys
-L$GMAPLIBPATH -lbufrdcR64 -lecR64 -lgribexR64 -lmpidummyR64 -libmdummyR64
end_of_odbtools_sys
# LOADER AND OPTIONS :
cat <<end_of_odbtools_load> $GMKWRKDIR/.odbtools_load
pgf90
end_of_odbtools_load
*
EXEC is the name of the executable file. The default names can be changed in a user's preferences file.
*
ENTRY is the list of object files to be loaded prior to any object library. This list can contain non-existent object files ; in this case these missing files will be ignored (in the example above several names are given for Odbtools.o, corresponding its changes of location in the past cycles).
*
BACKGROUND LIBRARIES : you can modify the file $GMKWRKDIR/.xxxxxxxx_libs so that it will contains in the proper order (from top one ahead to last one) the background libraries from the reference pack.
*
LOW-LEVEL LIBRARIES : you can modify the file $GMKWRKDIR/.xxxxxxxx_sys so that it will contains in the proper order (from first one ahead to last one) the needed libraries which are out of the current pack and out of the reference pack.
*
LOADER AND OPTIONS : you can modify the file $GMKWRKDIR/.xxxxxxxx_load so that it will contains the loader and its command line options to link the executable.
Notice :


next up previous contents index
Next: Verbosity Up: Compilation scripts in details Previous: Load map   Contents   Index
EL KHATIB Ryad 2008-05-23