Difference between revisions of "makefile"

From WikiROMS
Jump to navigationJump to search
(first draft)   (change visibility)
 
Line 1: Line 1:
==User Changes to the Makefile==
The ROMS Makefile is in the file '''makefile''' in the top-level directory. As a user, you need to check and perhaps edit this to set the values of '''LARGE''', '''MPI''', '''OPENMP''', '''DEBUG''', and '''FORTRAN'''. See [[Gmake#Top_Level_Makefile]] and [[Gmake#Conditionals]] for more details.
The ROMS Makefile is in the file '''makefile''' in the top-level directory. As a user, you need to check and perhaps edit this to set the values of '''LARGE''', '''MPI''', '''OPENMP''', '''DEBUG''', and '''FORTRAN'''. See [[Gmake#Top_Level_Makefile]] and [[Gmake#Conditionals]] for more details.


Also as a user, you need to be aware of the files in the '''Compilers''' directory. The top-level '''makefile''' will be including one of these files, based on combining the result of '''uname -s''' with the value of '''FORTRAN'''. For instance, it might be including '''Darwin-gfortran.mk''' if you are on a Mac and using the '''gfortran''' compiler. You need to make sure this file exists and has the correct values for the compiler options and for finding the NetCDF library.
==Compiler-dependent Changes==
 
Also as a user, you need to be aware of the files in the '''Compilers''' directory. The top-level '''makefile''' will be including one of these files, based on combining the result of '''uname -s''' with the value of '''FORTRAN'''. For instance, it might be including '''Darwin-gfortran.mk''' if you are on a Mac and using the '''gfortran''' compiler. You need to make sure this file exists and has the correct values for the compiler options and for finding the [http://www.unidata.ucar.edu/software/netcdf/ NetCDF] library. The file should contain pointers to both the '''NetCDF library''' and '''include''' files. If the library is different for '''32-bit''' and '''64-bit''' options, that needs to be taken care of as well. See '''AIX-xlf.mk''' for an example.

Revision as of 01:50, 3 November 2006

User Changes to the Makefile

The ROMS Makefile is in the file makefile in the top-level directory. As a user, you need to check and perhaps edit this to set the values of LARGE, MPI, OPENMP, DEBUG, and FORTRAN. See Gmake#Top_Level_Makefile and Gmake#Conditionals for more details.

Compiler-dependent Changes

Also as a user, you need to be aware of the files in the Compilers directory. The top-level makefile will be including one of these files, based on combining the result of uname -s with the value of FORTRAN. For instance, it might be including Darwin-gfortran.mk if you are on a Mac and using the gfortran compiler. You need to make sure this file exists and has the correct values for the compiler options and for finding the NetCDF library. The file should contain pointers to both the NetCDF library and include files. If the library is different for 32-bit and 64-bit options, that needs to be taken care of as well. See AIX-xlf.mk for an example.