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