[3013] | 1 |
|
---|
[2871] | 2 | # ----------------------------------------
|
---|
| 3 | # --------- File AIX_xlC_make.inc --------
|
---|
| 4 | # Compilation avec xlC / AIX (IBM)
|
---|
[3242] | 5 | # ------- Dec 2005-Avr 2007 ------------
|
---|
[2871] | 6 |
|
---|
| 7 | # Liste des librariries externes
|
---|
[3242] | 8 | # Pour link fortran -lf ( pas besoin de -lxlf -lxlfutil )
|
---|
| 9 | # -lessl pour le BLAS IBM
|
---|
| 10 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lessl -lf
|
---|
[2871] | 11 |
|
---|
| 12 | # Chemin et librairie pour PI
|
---|
[3842] | 13 | PIINC = $(PIEXTINC) -I/usr/X11R6/include/
|
---|
| 14 | PILIBS = $(PIEXTLIB) -L/usr/X11R6/lib/ -lXt -lX11
|
---|
[2871] | 15 |
|
---|
[3840] | 16 |
|
---|
[2871] | 17 | # Flag preprocesseur
|
---|
| 18 | CPPFLAGS = -DAIX -I$(SOPHYAINCP) $(PIINC)
|
---|
| 19 | # Def compilateur C et flags
|
---|
| 20 | CC = xlc
|
---|
[3210] | 21 | # Replace [CNFPHFLF] by specific compilation flags below (done by configure)
|
---|
[3227] | 22 | # Pour compilation en mode 64 bits : -q64
|
---|
[3210] | 23 | CFLAGS = -O -g CNFPHFLF
|
---|
[2871] | 24 | # Def compilateur C++ et flags
|
---|
| 25 | CXX = xlC
|
---|
| 26 | # Flag IBM xlC (Dec 2005)
|
---|
| 27 | # -qrtti=all : generate all RTTI infomation dynamic_cast + typeinfo
|
---|
| 28 | # -qeh=v6 : Exception handling compatible with v6
|
---|
[3210] | 29 | CXXFLAGS = -qrtti=all -qeh=v6 -O -g CNFPHFLF
|
---|
[2871] | 30 | # flags specifiques pour templates repository...
|
---|
| 31 | # CXXTEMPFLG = -qtemplateregistry=$(SOPHYAOBJP)/templateregistry -qtemplaterecompile
|
---|
| 32 | CXXTEMPFLG =
|
---|
| 33 | # Compilo fortran
|
---|
[3210] | 34 | FC = xlf CNFPHFLF
|
---|
[2871] | 35 | FFLAGS =
|
---|
[3227] | 36 | # Pour fabriquer les lib .a (-X 64 pour les librairies en mode 64 bits)
|
---|
[2871] | 37 | AR = ar
|
---|
| 38 | ARFLAGS = -rcs
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | # Ordres de compilation
|
---|
| 42 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
| 43 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
| 44 | FCCOMPILE = $(FC) $(FFLAGS) -c
|
---|
| 45 |
|
---|
| 46 | # Extension de nom pour les librairies partagees
|
---|
| 47 | SLEXT = so
|
---|
| 48 | # Fabrication de librairies partagees
|
---|
| 49 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -brtl -qmkshrobj
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | # Liste de librairie de base, necessaire pour libsophya
|
---|
| 53 | SOPBASELIBS = -lpthread -lm -lc -ldl
|
---|
| 54 | LIBFORT =
|
---|
| 55 |
|
---|
| 56 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
[2910] | 57 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPBASELIBS)
|
---|
| 58 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 59 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 60 |
|
---|
[2871] | 61 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
[3497] | 62 | ##----
|
---|
[3242] | 63 | # Il n'a pas ete possible de faire marcher les executables avec
|
---|
| 64 | # des shared-libs, linke avec d'autres librairies (lapack, cfitsio ...)
|
---|
| 65 | ## SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 66 | ## SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
[3210] | 67 | ### --- Pb sur AIX quand plusieurs shared libs sont utilisees -> remplacement par -lAsophyaextPI
|
---|
| 68 | ## SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lAsophyaextPI $(SOPBASELIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 69 | ## SOPHYAALLSLBLIST = $(SOPHYAEXTSLBLIST)
|
---|
| 70 | ### ---------------------
|
---|
[3497] | 71 | ## SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lsophya -L$(SOPHYALIBP) -lFitsIOServer -lIFFTW -lLinAlg -lXAstroPack $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 72 | ## SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lsophya -L$(SOPHYALIBP) -lPIext -lPIGcont -lPI -lFitsIOServer -lIFFTW -lLinAlg -lXAstroPack $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 73 | ### --- Avril 2008 : Multi shared libs semble OK maintenant
|
---|
| 74 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPBASELIBS)
|
---|
| 75 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(SOPBASELIBS)
|
---|
[2871] | 76 |
|
---|
| 77 | # Commande de link pour creation d'executables
|
---|
| 78 | CXXLINK = $(CXX) $(CXXFLAGS) -brtl
|
---|
| 79 | CLINK = $(CC) $(CFLAGS)
|
---|
| 80 | FCLINK = $(FC) $(FFLAGS)
|
---|
| 81 |
|
---|
| 82 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 83 | CXXDLL = $(CXX) $(CXXFLAGS) -qmkshrobj
|
---|