Your Fortran program must be compiled and linked to the CLASS library in the GILDAS compilation environment, so that it can find the modules and entry points described above. Then it should be run in the GILDAS execution environment. Two options are available:
$ cd gildas/gildas-src-XXX/ $ source admin/gildas-env.shThen go where your program can be found and copy the Makefile from the Class main directory:
$ cd /path/to/program/ $ cp $gagsrcdir/packages/class/main/Makefile .Edit this Makefile and replace the targets by your own program on the line EXECUTABLES = . Then type
$ make $ make installYour program is now visible and executable like any other programs from the execution environment.
$ cd gildas/gildas-src-XXX/ $ source admin/gildas-env.sh -u $PWD/integThen go where your program can be found and copy the Makefile from the Class main directory:
$ cd /path/to/program/ $ cp $gagsrcdir/packages/class/main/Makefile .Edit this Makefile and replace the targets by your own program on the line EXECUTABLES = . Then type
$ export gagintdir=/path/to/program/exe ! Define here a custom installation directory $ makeThe environment variable $gagintdir has be set to the desired installation directory (create the directory if needed). The Makefile creates a local installation tree under this target. Finally, don't forget to put the path to the executable in your $PATH:
$ export PATH=/path/to/program/exe/$GAG_EXEC_SYSTEM/bin:$PATH