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

并行计算

开发平台:

MultiPlatform

  1. ############################################################
  2. ##   Compilation de la librairie MGRID
  3. LDIR := MGRID
  4. ####### Files
  5. MGRID_LIB = $(PRJLIB)/libt_mgrid.a
  6. MGRID_MOD = BASEFIELD.$(MOD)    
  7.             DEFFIELD.$(MOD)     
  8.             GENFIELD.$(MOD)     
  9.             MGRID.$(MOD)
  10. MGRID_OBJ = $(MGRID_MOD:.$(MOD)=.o)  
  11.             calc_gradient.o          
  12.             calc_gradient_limite.o  
  13. D_MGRID_OBJ = $(MGRID_OBJ:%=$(PRJOBJ)/%)
  14. D_MGRID_SRC := $(MGRID_OBJ:%.o=$(LDIR)/%.f90)
  15. ####### Build rules
  16. all: $(MGRID_LIB)
  17. $(MGRID_LIB): $(D_MGRID_OBJ)
  18. @echo ---------------------------------------------------------------
  19. @echo * Cr閍tion de la librairie $(MGRID_LIB)
  20. @touch $(MGRID_LIB) ; rm $(MGRID_LIB)
  21. @$(AR) ruv $(MGRID_LIB) $(D_MGRID_OBJ)
  22. @echo * Cr閍tion de l'index de la librairie
  23. @$(RAN)    $(MGRID_LIB)
  24. @echo ---------------------------------------------------------------
  25. @echo * LIBRAIRIE $(MGRID_LIB) cr殚e
  26. @echo ---------------------------------------------------------------
  27. MGRID_clean:
  28. -rm $(MGRID_LIB) $(D_MGRID_OBJ) $(MGRID_MOD)
  29. ####### Dependencies
  30. MGRID/depends.make: $(D_MGRID_SRC)
  31. (cd MGRID ; ../$(MAKEDEPENDS))
  32. include MGRID/depends.make