creamake Wiki
Automatic creation of Makefile for Fortran projects
Brought to you by:
franpena,
oscarcrego
creamake [OPTION] or creamake [FILE][OPTION] can be one of the following:
[FILE] is the input file. It must be a valid XML file containing some of the following marks:
| <os> | Operating system where the resulting Makefile will be invoked. Valid values are linux (default value) and windows. |
| <sources> | Source folders: all their fortran files *.f* will be added to the project. Type one source folder per line and use "/" as folder separator. This is the only mandatory mark. |
| <object> | Object folder where all the *.o and *.mod files will be created. The default value is object. |
| <main> | Main program file: to indicate it, type the relative path and extension (for ex., source/main.f90). If not provided, main progran file will be detected by creamake. |
| <exec> | Executable name. It will be created where Makefile is. If not provided, the executable name will be take from PROGRAM statement in the main program file. |
| <include> | Include files: type all include files in one line. Do not include path. If not provided, includes are empty. |
| <compiler> | Fortran compiler: the default value is ifort. |
| <fflags> | Fortran compiler options: type all options in one line. The default value is empty. If the compiler is neither gfortran nor ifort, please include -OPT$(dir_objetos),
where OPT is the option to specify the directory where module files should be placed
when created and where they should be searched for. The recommended options for compiler ifort in linux are -stand f03 -chek all -traceback -warn all. The recommended options for compiler ifort in windows are -stand:f03 -chek:all -traceback -warn:all. The recommended options for compiler gfortan are -std=f2003 -fcheck=all -fbacktrace -Wall. |
| <ldflags> | Linker compiler options. Type all the options in one line. The default value is empty. |
| <prolog> | Prologue. Type additional lines to appear in the Makefile at the beginning. The default value is empty. |
| <epilog> | Epilogue. Type additional lines to appear in the Makefile after the declaration
of variables and before rules. The default value is empty. |
| <rules> | Rules. Type additional rules to appear in the Makefile. The default value is empty. |
This is an the XML input file used to create a Makefile for creamake itself. The resulting Makefile will be suitable to be used in GNU/Linux with the gfortran compiler.
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Configuration data file for creamake with gfortran in Linux-->
<content>
<sources>
source
source/basicmod/source
source/basicmod/source/gfortran
source/basicmod/source/alloc
source/basicmod/source/xread
</sources>
<compiler>
gfortran
</compiler>
<fflags>
-std=f2003 -Wall -g -fbacktrace -fcheck=all -fall-intrinsics
</fflags>
</content>