| 1 | # --------- File Linux_g_make.inc -------- 
 | 
|---|
| 2 | 
 | 
|---|
| 3 | #  Liste des librariries externes 
 | 
|---|
| 4 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lgfortran
 | 
|---|
| 5 | 
 | 
|---|
| 6 | #  Chemin et librairie pour PI 
 | 
|---|
| 7 | PIINC = $(PIEXTINC) -I/usr/X11R6/include/
 | 
|---|
| 8 | PILIBS = $(PIEXTLIB) -L/usr/X11R6/lib/ -lXt -lX11 
 | 
|---|
| 9 | 
 | 
|---|
| 10 | 
 | 
|---|
| 11 | #  Flag preprocesseur
 | 
|---|
| 12 | CPPFLAGS = -I$(SOPHYAINCP) $(PIINC)
 | 
|---|
| 13 | #  Def compilateur C et flags
 | 
|---|
| 14 | CC = icc
 | 
|---|
| 15 | # Replace [CNFPHFLF] by specific compilation flags below (done by configure)
 | 
|---|
| 16 | CFLAGS = -fpic -O -g  CNFPHFLF 
 | 
|---|
| 17 | #  Def compilateur C++ et flags
 | 
|---|
| 18 | CXX =  icpc
 | 
|---|
| 19 | CXXFLAGS = -fpic -O -frtti -g  CNFPHFLF 
 | 
|---|
| 20 | CXXREP =
 | 
|---|
| 21 | #  Compilo fortran
 | 
|---|
| 22 | FC = ifort
 | 
|---|
| 23 | FFLAGS =  
 | 
|---|
| 24 | # Pour fabriquer les lib .a
 | 
|---|
| 25 | AR = ar
 | 
|---|
| 26 | ARFLAGS = -rcs
 | 
|---|
| 27 | 
 | 
|---|
| 28 | 
 | 
|---|
| 29 | #  Ordres de compilation
 | 
|---|
| 30 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c 
 | 
|---|
| 31 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c 
 | 
|---|
| 32 | CXXCOMPILELIB = $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXREP) -c 
 | 
|---|
| 33 | CXXCOMPILEPROG = $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXREP) -c 
 | 
|---|
| 34 | FCCOMPILE = $(FC) $(FFLAGS) -c 
 | 
|---|
| 35 | 
 | 
|---|
| 36 | #  Extension de nom pour les librairies partagees
 | 
|---|
| 37 | SLEXT = so
 | 
|---|
| 38 | #  Fabrication de librairies partagees 
 | 
|---|
| 39 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXREP) -shared 
 | 
|---|
| 40 | 
 | 
|---|
| 41 | 
 | 
|---|
| 42 | #  Liste de librairie de base, necessaire pour libsophya
 | 
|---|
| 43 | SOPBASELIBS = -lpthread -lm -lc -ldl 
 | 
|---|
| 44 | LIBFORT = -lgfortran
 | 
|---|
| 45 | 
 | 
|---|
| 46 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
 | 
|---|
| 47 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST)  $(SOPBASELIBS)
 | 
|---|
| 48 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
 | 
|---|
| 49 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
 | 
|---|
| 50 | 
 | 
|---|
| 51 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya  $(SOPBASELIBS)
 | 
|---|
| 52 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
 | 
|---|
| 53 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
 | 
|---|
| 54 | 
 | 
|---|
| 55 | #  Commande de link pour creation dexecutables
 | 
|---|
| 56 | CXXLINK = $(CXX) $(CXXFLAGS)
 | 
|---|
| 57 | CLINK = $(CC) $(CFLAGS)
 | 
|---|
| 58 | FCLINK = $(FC) $(FFLAGS)
 | 
|---|
| 59 | 
 | 
|---|
| 60 | #  Commande de link pour creation de module pouvant etre charge dynamiquement
 | 
|---|
| 61 | CXXDLL = $(CXX) $(CXXFLAGS) -shared
 | 
|---|