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