forked from CESR-lab/ucla-roms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (22 loc) · 766 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This line de-activates all implicit rules
.SUFFIXES:
# Fortran Compiler
FC = ifort
# Normal options for the compiler
#FFLAGS = -O3 -fp-model source -I/opt/mpich-3.2/include/
FFLAGS = -O3 -fp-model source -I/home/devin/mpich-install/include
# Debugging options for the compiler
#FFLAGS = -g -check -warn
# Rule to make *.o out of *.f90
%.o : %.f90
$(FC) -c $(FFLAGS) $<
sources = mg_autotune.f90 mg_cst.f90 mg_gather.f90 \
mg_grids.f90 mg_horiz_grids.f90 mg_intergrids.f90 mg_mpi_exchange.f90\
mg_mpi.f90 mg_namelist.f90 mg_netcdf_out.f90 mg_projection.f90\
mg_relax.f90 mg_solvers.f90 mg_tictoc.f90 mg_vert_grids.f90 \
nhmg_debug.f90 nhmg.f90
objects = $(sources:.f90=.o)
libnhmg = ../lib/libnhmg.a
.PHONY: all clean depend
all:
cd src; make