Makefile 708 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. SHELL = /bin/sh
  2. # SOURCE FILES
  3. SRCS_F90 = master.F90 coupler.F90 model.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