source-depend.make
上传用户:goto8899
上传日期:2014-01-20
资源大小:303k
文件大小:2k
源码类别:

并行计算

开发平台:

MultiPlatform

  1. ############################################################
  2. ##   Compilation de la librairie EXCHANGE
  3. LDIR := EXCHANGE
  4. ####### Files
  5. EXCHSEQ_LIB = $(PRJLIB)/libt_exchseq.a
  6. EXCHMPI_LIB = $(PRJLIB)/libt_exchmpi.a
  7. EXCHSEQ_MOD = #.$(MOD)      
  8. EXCHMPI_MOD = #.$(MOD)      
  9. EXCHSEQ_OBJ := $(EXCHANGE_MOD:.$(MOD)=.o)  
  10.                finalize_exch_seq.o         
  11.                init_exch_protocol_seq.o
  12. EXCHMPI_OBJ := $(EXCHANGE_MOD:.$(MOD)=.o)  
  13.                finalize_exch_mpi.o         
  14.                init_exch_protocol_mpi.o
  15. D_EXCHSEQ_OBJ := $(EXCHSEQ_OBJ:%=$(PRJOBJ)/%)
  16. D_EXCHMPI_OBJ := $(EXCHMPI_OBJ:%=$(PRJOBJ)/%)
  17. D_EXCHSEQ_SRC := $(EXCHSEQ_OBJ:%.o=$(LDIR)/%.f90)
  18. D_EXCHMPI_SRC := $(EXCHMPI_OBJ:%.o=$(LDIR)/%.f90)
  19. ####### Build rules
  20. #all: $(EXCHANGE_LIB)
  21. $(EXCHSEQ_LIB): $(D_EXCHSEQ_OBJ)
  22. @echo ---------------------------------------------------------------
  23. @echo * Cr閍tion de la librairie $(EXCHSEQ_LIB)
  24. @touch $(EXCHSEQ_LIB) ; rm $(EXCHSEQ_LIB)
  25. @$(AR) ruv $(EXCHSEQ_LIB) $(D_EXCHSEQ_OBJ)
  26. @echo * Cr閍tion de l'index de la librairie
  27. @$(RAN)    $(EXCHSEQ_LIB)
  28. @echo ---------------------------------------------------------------
  29. @echo * LIBRAIRIE $(EXCHSEQ_LIB) cr殚e
  30. @echo ---------------------------------------------------------------
  31. $(EXCHMPI_LIB): $(D_EXCHMPI_OBJ)
  32. @echo ---------------------------------------------------------------
  33. @echo * Cr閍tion de la librairie $(EXCHMPI_LIB)
  34. @touch $(EXCHMPI_LIB) ; rm $(EXCHMPI_LIB)
  35. @$(AR) ruv $(EXCHMPI_LIB) $(D_EXCHMPI_OBJ)
  36. @echo * Cr閍tion de l'index de la librairie
  37. @$(RAN)    $(EXCHMPI_LIB)
  38. @echo ---------------------------------------------------------------
  39. @echo * LIBRAIRIE $(EXCHMPI_LIB) cr殚e
  40. @echo ---------------------------------------------------------------
  41. #EXCHANGE_clean:
  42. # -rm  $(EXCHANGE_LIB) $(D_EXCHANGE_OBJ) $(EXCHANGE_MOD)
  43. ####### Dependencies
  44. EXCHANGE/depends.make: $(D_EXCHSEQ_SRC) $(D_EXCHMPI_SRC)
  45. (cd EXCHANGE ; ../$(MAKEDEPENDS))
  46. include EXCHANGE/depends.make