[3013] | 1 |
|
---|
[2871] | 2 | # ----------------------------------------
|
---|
| 3 | # --------- File AIX_xlC_make.inc --------
|
---|
| 4 | # Compilation avec xlC / AIX (IBM)
|
---|
| 5 | # ------------- Dec 2005 -------------
|
---|
| 6 |
|
---|
| 7 | # Liste des librariries externes
|
---|
| 8 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST)
|
---|
| 9 | # Pour link fortran -lxlf -lxlfutil -lf
|
---|
[3013] | 10 | # Pas moyen de faire marcher les executables linke avec du fortran
|
---|
| 11 | # SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lxlf -lxlfutil -lf
|
---|
[2871] | 12 |
|
---|
| 13 | # Chemin et librairie pour PI
|
---|
| 14 | PIINC =
|
---|
| 15 | PILIBS = -lXm -lXt -lX11
|
---|
| 16 |
|
---|
| 17 | # Flag preprocesseur
|
---|
| 18 | CPPFLAGS = -DAIX -I$(SOPHYAINCP) $(PIINC)
|
---|
| 19 | # Def compilateur C et flags
|
---|
| 20 | CC = xlc
|
---|
| 21 | CFLAGS = -O -g
|
---|
| 22 | # Def compilateur C++ et flags
|
---|
| 23 | CXX = xlC
|
---|
| 24 | # Flag IBM xlC (Dec 2005)
|
---|
| 25 | # -qrtti=all : generate all RTTI infomation dynamic_cast + typeinfo
|
---|
| 26 | # -qeh=v6 : Exception handling compatible with v6
|
---|
| 27 | CXXFLAGS = -qrtti=all -qeh=v6 -O -g
|
---|
| 28 | # flags specifiques pour templates repository...
|
---|
| 29 | # CXXTEMPFLG = -qtemplateregistry=$(SOPHYAOBJP)/templateregistry -qtemplaterecompile
|
---|
| 30 | CXXTEMPFLG =
|
---|
| 31 | # Compilo fortran
|
---|
| 32 | FC = xlf
|
---|
| 33 | FFLAGS =
|
---|
| 34 | # Pour fabriquer les lib .a
|
---|
| 35 | AR = ar
|
---|
| 36 | ARFLAGS = -rcs
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | # Ordres de compilation
|
---|
| 40 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
| 41 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
| 42 | FCCOMPILE = $(FC) $(FFLAGS) -c
|
---|
| 43 |
|
---|
| 44 | # Extension de nom pour les librairies partagees
|
---|
| 45 | SLEXT = so
|
---|
| 46 | # Fabrication de librairies partagees
|
---|
| 47 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -brtl -qmkshrobj
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | # Liste de librairie de base, necessaire pour libsophya
|
---|
| 51 | SOPBASELIBS = -lpthread -lm -lc -ldl
|
---|
| 52 | LIBFORT =
|
---|
| 53 |
|
---|
| 54 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
[2910] | 55 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPBASELIBS)
|
---|
| 56 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 57 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 58 |
|
---|
[2871] | 59 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
[3013] | 60 | # SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 61 | # SOPHYAALLSLBLIST = -L$(SOPHYALIBP) -lPIext -lPIGcont -lPI -L$(SOPHYASLBP) -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 62 | ### --- Pb sur AIX quand plusieurs shared libs sont utilisees
|
---|
| 63 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lAsophyaextPI $(SOPBASELIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 64 | SOPHYAALLSLBLIST = $(SOPHYAEXTSLBLIST)
|
---|
[2871] | 65 |
|
---|
| 66 | # Commande de link pour creation d'executables
|
---|
| 67 | CXXLINK = $(CXX) $(CXXFLAGS) -brtl
|
---|
| 68 | CLINK = $(CC) $(CFLAGS)
|
---|
| 69 | FCLINK = $(FC) $(FFLAGS)
|
---|
| 70 |
|
---|
| 71 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 72 | CXXDLL = $(CXX) $(CXXFLAGS) -qmkshrobj
|
---|