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
|
---|
9 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lxlf -lxlfutil -lf
|
---|
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 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPBASELIBS)
|
---|
54 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
55 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
56 |
|
---|
57 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
58 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
59 | SOPHYAALLSLBLIST = -L$(SOPHYALIBP) -lPIext -lPIGcont -lPI -L$(SOPHYASLBP) -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
60 |
|
---|
61 | # Commande de link pour creation d'executables
|
---|
62 | CXXLINK = $(CXX) $(CXXFLAGS) -brtl
|
---|
63 | CLINK = $(CC) $(CFLAGS)
|
---|
64 | FCLINK = $(FC) $(FFLAGS)
|
---|
65 |
|
---|
66 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
67 | CXXDLL = $(CXX) $(CXXFLAGS) -qmkshrobj
|
---|