The Makefile
KPP produces a Makefile that allows for an easy compilation of all
KPP-generated source files. The file name is Makefile_ROOT. The
Makefile assumes that the selected driver contains the main program.
However, if no driver was selected (i.e. #DRIVER none), it is
necessary to add the name of the main program file manually to the
Makefile.
Use this command to compile KPP-generated source code into an executable:
$ make -f Makefile_ROOT [target]
Where [target] is one of the following optional values:
all
Synoymm for exe.
COMPILER=GFORTRAN
Builds KPP-genereated Fortran-90 code into an executable with the GNU gfortran compiler.
This is the default setting for when #LANGUAGE Fortran90 is specified.
COMPILER=GCC
Builds KPP-generated C code into an executable with the GNU gcc compiler.
This is the default setting for when #LANGUAGE C is specified.
COMPILER=INTEL
Compiles Fortran-90 code generated by KPP into an executable with the GNU gfortran compiler.
Compiles C code generated by KPP into an executable with the Intel icc compiler.
exe
Compiles KPP-generated source code into an executable. This is the default option.
mex
Compiles Matlab extensions into the executable when #MEX ON is specified.
clean
Removes the following files:
Object files (
*.o)Fortran90 module files (
*mod)Executable files (
*.exe)The log file (
ROOT.log)Species concentrations specified with #LOOKAT (
*.dat)Comma-separated variable files generated by #GRAPH (
*.csv)Matlab extensions generated by #MEX (
ROOT*.mexglx)Output from the Matlab executable (
results.m)
distclean
Removes all of the files removed by clean, as well as:
KPP-generated C source code (
ROOT*.c)KPP-generated Fortran90 source code (
ROOT*.f90,ROOT*.F90)KPP-generated Matlab source code (
ROOT*.m)