-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 932 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
NETCDF = /home/decker/netcdf/netcdf-4.2
FC = gfortran
#FC = pgf90
FFLAGS = -std=f95 -pedantic -Wall -Wextra -march=native -ffast-math -funroll-loops -O3 -I/${NETCDF}/include
#FFLAGS = -fast -Mscalarsse -Mvect=sse -Mflushz -Mstandard -g77libs
#FFLAGS = -g -Mstandard -g77libs
LIBS = ${NETCDF}/lib/libnetcdff.a ${NETCDF}/lib/libnetcdf.a ${GEMLIB}/gemlib.a ${GEMLIB}/textlib.a ${GEMLIB}/libxml2.a ${GEMLIB}/libz.a ${GEMLIB}/libxslt.a ${GEMLIB}/cgemlib.a
.SUFFIXES:
.SUFFIXES: .f90 .o
.f90.o:
$(FC) -c $(FFLAGS) $<
FOBJ = dateutil.o diagnostics.o gempak.o registry.o wrf2gem.o wrf2gemsubs.o
wrf2gem: $(FOBJ)
$(FC) -o $@ $(FFLAGS) $(FOBJ) $(LIBS)
dateutil.o: dateutil.f90
diagnostics.o: diagnostics.f90 dateutil.o
gempak.o: gempak.f90 wrf2gemsubs.o
registry.o: registry.f90 diagnostics.o gempak.o wrf2gemsubs.o
wrf2gem.o: wrf2gem.f90 registry.o gempak.o wrf2gemsubs.o
wrf2gemsubs.o: wrf2gemsubs.f90
clean:
rm -f *.o *.mod