Makefile 734 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. SHELL = /bin/sh
  2. # SOURCE FILES
  3. SRCS_F90 = mutils.F90 srcmodel.F90 dstmodel.F90 coupler.F90 master.F90
  4. OBJS_ALL = $(SRCS_F90:.F90=.o)
  5. # MACHINE AND COMPILER FLAGS
  6. include ../../Makefile.conf
  7. # ADDITIONAL FLAGS SPECIFIC FOR UTMCT COMPILATION
  8. MCTLIBS = -L$(MPEUPATH) -L$(MCTPATH) -lmct -lmpeu
  9. UTLDFLAGS = $(REAL8)
  10. UTCMPFLAGS = $(REAL8) $(INCFLAG)$(MPEUPATH) $(INCFLAG)$(MCTPATH)
  11. # TARGETS
  12. all: climate
  13. climate: $(OBJS_ALL)
  14. $(FC) -o $@ $(OBJS_ALL) $(FCFLAGS) $(UTLDFLAGS) $(MCTLIBS) $(MPILIBS)
  15. # RULES
  16. .SUFFIXES:
  17. .SUFFIXES: .F90 .o
  18. .F90.o:
  19. $(FC) -c $(INCPATH) $(FPPDEFS) $(FCFLAGS) $(MCTFLAGS) $(UTCMPFLAGS) $<
  20. clean:
  21. ${RM} *.o *.mod climate
  22. # DEPENDENCIES:
  23. $(OBJS_ALL): $(MCTPATH)/libmct.a