[2720] | 1 | # --------- File OSF1_cxx_make.inc --------
|
---|
| 2 |
|
---|
| 3 | # Liste des librariries externes
|
---|
[2749] | 4 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lfor
|
---|
[2720] | 5 |
|
---|
| 6 | # Chemin et librairie pour PI
|
---|
[3840] | 7 | PIINC = $(PIEXTINC) -I/usr/include/
|
---|
| 8 | PILIBS = $(PIEXTLIB) -L/usr/lib/ -lXt -lX11
|
---|
[2720] | 9 |
|
---|
| 10 |
|
---|
| 11 | # Flag preprocesseur
|
---|
| 12 | CPPFLAGS = -DOSF1 -I$(SOPHYAINCP) $(PIINC)
|
---|
| 13 | # Def compilateur C et flags
|
---|
| 14 | CC = cc
|
---|
[3210] | 15 | # Replace [CNFPHFLF] by specific compilation flags below (done by configure)
|
---|
| 16 | CFLAGS = -O -pthread -g1 CNFPHFLF
|
---|
[2720] | 17 | # Def compilateur C++ et flags
|
---|
| 18 | CXX = cxx
|
---|
[3210] | 19 | CXXFLAGS = -O -pthread -g1 -no_implicit_include CNFPHFLF
|
---|
[2766] | 20 | # flags specifiques pour templates repository...
|
---|
| 21 | CXXTEMPFLG = -ptr $(SOPHYAOBJP)/cxxrep/
|
---|
[2720] | 22 | # Compilo fortran
|
---|
[3210] | 23 | FC = f77 CNFPHFLF
|
---|
[2720] | 24 | FFLAGS =
|
---|
| 25 | # Pour fabriquer les lib .a
|
---|
[2749] | 26 | AR = /usr/bin/ar
|
---|
[2720] | 27 | ARFLAGS = -rcs
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | # Ordres de compilation
|
---|
| 31 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
| 32 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
[2724] | 33 | FCCOMPILE = $(FC) $(FFLAGS) -c
|
---|
[2720] | 34 |
|
---|
| 35 | # Extension de nom pour les librairies partagees
|
---|
| 36 | SLEXT = so
|
---|
| 37 | # Fabrication de librairies partagees
|
---|
[2766] | 38 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -shared
|
---|
[2720] | 39 |
|
---|
| 40 |
|
---|
| 41 | # Liste de librairie de base, necessaire pour libsophya
|
---|
| 42 | SOPBASELIBS = -lpthread -lm
|
---|
[2734] | 43 | LIBFORT = -lfor -lFutil -lots -lUfor
|
---|
[2720] | 44 |
|
---|
[2729] | 45 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
[2910] | 46 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPBASELIBS)
|
---|
| 47 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 48 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 49 |
|
---|
[2720] | 50 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
| 51 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 52 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 53 |
|
---|
[2729] | 54 | # Commande de link pour creation d executables
|
---|
[2720] | 55 | CXXLINK = $(CXX) $(CXXFLAGS)
|
---|
[2729] | 56 | CLINK = $(CC) $(CFLAGS)
|
---|
[2734] | 57 | FCLINK = $(FC) $(FFLAGS)
|
---|
[2729] | 58 |
|
---|
[2728] | 59 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 60 | CXXDLL = $(CXX) $(CXXFLAGS) -shared
|
---|