Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. SHELL = /bin/sh
  2. # SOURCE FILES
  3. SRCS_F90 = twocmp.con.F90 \
  4. twocmp.seq.F90 \
  5. twocmp.seqUnvn.F90 \
  6. twocmp.seqNB.F90 \
  7. OBJS_ALL = $(SRCS_F90:.F90=.o)
  8. # MACHINE AND COMPILER FLAGS
  9. include ../../Makefile.conf
  10. # ADDITIONAL DEFINITIONS SPECIFIC FOR UTMCT COMPILATION
  11. MCTLIBS = -L$(MPEUPATH) -L$(MCTPATH) -lmct -lmpeu
  12. UTLDFLAGS = $(REAL8)
  13. UTCMPFLAGS = $(REAL8) $(INCFLAG)$(MPEUPATH) $(INCFLAG)$(MCTPATH)
  14. # TARGETS
  15. all: twocon twoseq twosequn twoseqNB
  16. twocon: twocmp.con.o
  17. $(FC) -o $@ twocmp.con.o $(FCFLAGS) $(UTLDFLAGS) $(MCTLIBS) $(MPILIBS)
  18. twoseq: twocmp.seq.o
  19. $(FC) -o $@ twocmp.seq.o $(FCFLAGS) $(UTLDFLAGS) $(MCTLIBS) $(MPILIBS)
  20. twosequn: twocmp.seqUnvn.o
  21. $(FC) -o $@ twocmp.seqUnvn.o $(FCFLAGS) $(UTLDFLAGS) $(MCTLIBS) $(MPILIBS)
  22. twoseqNB: twocmp.seqNB.o
  23. $(FC) -o $@ twocmp.seqNB.o $(FCFLAGS) $(MCTLIBS) $(MPILIBS)
  24. # RULES
  25. .SUFFIXES:
  26. .SUFFIXES: .F90 .o
  27. .F90.o:
  28. $(FC) -c $(INCPATH) $(FPPDEFS) $(FCFLAGS) $(MCTFLAGS) $(UTCMPFLAGS) $<
  29. clean:
  30. ${RM} *.o *.mod twocon twoseq twosequn twoseqNB
  31. # DEPENDENCIES:
  32. $(OBJS_ALL): $(MCTPATH)/libmct.a