source-depend.make
上传用户:goto8899
上传日期:2014-01-20
资源大小:303k
文件大小:2k
- ############################################################
- ## Compilation de la librairie EXCHANGE
- LDIR := EXCHANGE
- ####### Files
- EXCHSEQ_LIB = $(PRJLIB)/libt_exchseq.a
- EXCHMPI_LIB = $(PRJLIB)/libt_exchmpi.a
- EXCHSEQ_MOD = #.$(MOD)
- EXCHMPI_MOD = #.$(MOD)
- EXCHSEQ_OBJ := $(EXCHANGE_MOD:.$(MOD)=.o)
- finalize_exch_seq.o
- init_exch_protocol_seq.o
- EXCHMPI_OBJ := $(EXCHANGE_MOD:.$(MOD)=.o)
- finalize_exch_mpi.o
- init_exch_protocol_mpi.o
- D_EXCHSEQ_OBJ := $(EXCHSEQ_OBJ:%=$(PRJOBJ)/%)
- D_EXCHMPI_OBJ := $(EXCHMPI_OBJ:%=$(PRJOBJ)/%)
- D_EXCHSEQ_SRC := $(EXCHSEQ_OBJ:%.o=$(LDIR)/%.f90)
- D_EXCHMPI_SRC := $(EXCHMPI_OBJ:%.o=$(LDIR)/%.f90)
- ####### Build rules
- #all: $(EXCHANGE_LIB)
- $(EXCHSEQ_LIB): $(D_EXCHSEQ_OBJ)
- @echo ---------------------------------------------------------------
- @echo * Cr閍tion de la librairie $(EXCHSEQ_LIB)
- @touch $(EXCHSEQ_LIB) ; rm $(EXCHSEQ_LIB)
- @$(AR) ruv $(EXCHSEQ_LIB) $(D_EXCHSEQ_OBJ)
- @echo * Cr閍tion de l'index de la librairie
- @$(RAN) $(EXCHSEQ_LIB)
- @echo ---------------------------------------------------------------
- @echo * LIBRAIRIE $(EXCHSEQ_LIB) cr殚e
- @echo ---------------------------------------------------------------
- $(EXCHMPI_LIB): $(D_EXCHMPI_OBJ)
- @echo ---------------------------------------------------------------
- @echo * Cr閍tion de la librairie $(EXCHMPI_LIB)
- @touch $(EXCHMPI_LIB) ; rm $(EXCHMPI_LIB)
- @$(AR) ruv $(EXCHMPI_LIB) $(D_EXCHMPI_OBJ)
- @echo * Cr閍tion de l'index de la librairie
- @$(RAN) $(EXCHMPI_LIB)
- @echo ---------------------------------------------------------------
- @echo * LIBRAIRIE $(EXCHMPI_LIB) cr殚e
- @echo ---------------------------------------------------------------
- #EXCHANGE_clean:
- # -rm $(EXCHANGE_LIB) $(D_EXCHANGE_OBJ) $(EXCHANGE_MOD)
- ####### Dependencies
- EXCHANGE/depends.make: $(D_EXCHSEQ_SRC) $(D_EXCHMPI_SRC)
- (cd EXCHANGE ; ../$(MAKEDEPENDS))
- include EXCHANGE/depends.make