123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- SHELL = /bin/sh
- # SOURCE FILES
- SRCS_F90 = mutils.F90 srcmodel.F90 dstmodel.F90 coupler.F90 master.F90
- OBJS_ALL = $(SRCS_F90:.F90=.o)
- # MACHINE AND COMPILER FLAGS
- include ../../Makefile.conf
- # ADDITIONAL FLAGS SPECIFIC FOR UTMCT COMPILATION
- MCTLIBS = -L$(MPEUPATH) -L$(MCTPATH) -lmct -lmpeu
- UTLDFLAGS = $(REAL8)
- UTCMPFLAGS = $(REAL8) $(INCFLAG)$(MPEUPATH) $(INCFLAG)$(MCTPATH)
- # TARGETS
- all: climate
- climate: $(OBJS_ALL)
- $(FC) -o $@ $(OBJS_ALL) $(FCFLAGS) $(UTLDFLAGS) $(MCTLIBS) $(MPILIBS)
- # RULES
- .SUFFIXES:
- .SUFFIXES: .F90 .o
- .F90.o:
- $(FC) -c $(INCPATH) $(FPPDEFS) $(FCFLAGS) $(MCTFLAGS) $(UTCMPFLAGS) $<
- clean:
- ${RM} *.o *.mod climate
- # DEPENDENCIES:
- $(OBJS_ALL): $(MCTPATH)/libmct.a
|