-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.glowdriver
34 lines (25 loc) · 1.05 KB
/
Makefile.glowdriver
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
#
FC = mpif90
FFLAGS = -fc=ifort -O3 -I $(INC_NETCDF)
#FFLAGS = -fc=ifort -g $(DBGFLAGS) -I $(INC_NETCDF)
DBGFLAGS = -debug full -traceback
DBGFLAGS += -check bounds -check format -check output_conversion -check pointers -check uninit
DBGFLAGS += -fpe-all=0 # this traps all floating point exceptions
.SUFFIXES: .o .F .F90 .f .f90
%.o: %.f90
$(FC) $(FFLAGS) -c -o $@ $<
%.o: %.f
$(FC) $(FFLAGS) -c -o $@ $<
#
# Sources (in order of dependency):
#
SOURCES = cglow.f90 readtgcm.f90 output.f90 glowdriver.f90 glow.f90 bands.f90 conduct.f90 egrid.f90 ephoto.f90 etrans.f90 exsect.f fieldm.f gchem.f90 geomag.f90 maxt.f90 mzgrid.f90, qback.f90 rcolum.f90 rout.f90 snoem.f90 snoemint.f90 solzen.f90 ssflux.f90 tzgrid.f90, iri90.f nrlmsise00.f
OBJS := $(addsuffix .o, $(basename $(SOURCES)))
EXEC = glow.exe
$(EXEC): $(OBJS)
$(FC) -o -fc=ifort $@ $(OBJS) $(LIBS) $(LDFLAGS)
LIB_NETCDF = /home/tgcm/intel/netcdf-4.1.1/lib
INC_NETCDF = /home/tgcm/intel/netcdf-4.1.1/include
LIBS = -L /usr/lib64 -lcurl -L$(LIB_NETCDF) -lnetcdf
clean:
rm -f *.o *.mod $(EXEC)