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