- ############################################################
- ## Compilation du code TYPHON
- all: seq mpi
- ####### Compiler, tools and options
- SYS = $(shell Util/test-systeme)
- include defvar.make.$(SYS)
- include defprj.make
- # Option compilation (cf defvar.make)
- FF = $(FB) $(FO)
- # Pr閏ision
- #PREC = SP # Choix de la double pr閏ision (SP ou DP)
- ####### Files and Lists
- MAKEFILE= Makefile
- PRGNAME = Typhon
- EXTLIBS = $(CGNSLIB) $(LAPACKLIBS)
- include librairies.make
- LIB1 = libt_main.a
- libt_xio.a
- libt_cgns.a
- libt_zone.a
- LIB2 = libt_param.a
- libt_vortex.a
- libt_eqns.a
- libt_eqkdif.a
- libt_mgrid.a
- libt_mesh.a
- libt_pio.a
- libt_math.a
- libt_modcom.a
- LIBSEQ = $(LIB1) libt_exchseq.a $(LIB2)
- LIBMPI = $(LIB1) libt_exchmpi.a $(LIB2)
- D_LIBSEQ = $(LIBSEQ:%=$(PRJLIB)/%)
- D_LIBMPI = $(LIBMPI:%=$(PRJLIB)/%)
- VPATH = CGNS:EQNS:EQKDIF:EXCHANGE:MAIN:MGRID:MESH:MODCOM:MATH:PARAM:PIO:VORTEX:XIO:ZONE
- ####### Build libraries
- include MODCOM/source-depend.make
- include MATH/source-depend.make
- include PIO/source-depend.make
- include MESH/source-depend.make
- include MGRID/source-depend.make
- include EQNS/source-depend.make
- include EQKDIF/source-depend.make
- include EXCHANGE/source-depend.make
- include VORTEX/source-depend.make
- include PARAM/source-depend.make
- include ZONE/source-depend.make
- include CGNS/source-depend.make
- include XIO/source-depend.make
- include MAIN/source-depend.make
- ####### Build main
- MAIN = Obj/main.o # d閜endances dans MAIN/depends.make
- ####### Build rules
- seq: $(PRGNAME)-seq
- mpi: $(PRGNAME)-mpi
- $(PRGNAME)-seq : $(MAIN) $(D_LIBSEQ) $(MAKEFILE)
- @echo ---------------------------------------------------------------
- @echo EDITION DE LIEN DE $(PRGNAME)-seq ---
- @echo Librairies externes : $(EXTLIBS)
- @echo Librairies TYPHON : $(LIBSEQ)
- @$(LINKER) $(LINKFB) $(MAIN) $(D_LIBSEQ) $(EXTLIBS) -o $(PRGNAME)-seq
- @echo --- Cr閍tion de $(PRGNAME)-seq termin閑 ---
- $(PRGNAME)-mpi : $(MAIN) $(D_LIBMPI) $(MAKEFILE)
- @echo ---------------------------------------------------------------
- @echo EDITION DE LIEN DE $(PRGNAME)-mpi ---
- @echo Librairies externes : $(EXTLIBS) $(MPILIB)
- @echo Librairies TYPHON : $(LIBMPI)
- @$(LINKER) $(LINKFB) $(MAIN) $(D_LIBMPI) $(EXTLIBS) $(MPILIB) -o $(PRGNAME)-mpi
- @echo --- Cr閍tion de $(PRGNAME)-mpi termin閑 ---
- clean:
- -rm $(PRGNAME)-seq $(PRGNAME)-mpi
- -rm $(OBJECTS)
- -rm $(D_LIBMPI) $(D_LIBSEQ)
- -rm $(PRJINC)/*.$(MOD)
- -rm *.$(MOD)
- ####### Dependencies
- $(PRGNAME)-seq: $(MAKEFILE)
- $(PRGNAME)-mpi: $(MAKEFILE)
- # Dependances de modules