[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
|
---|
| 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 | CFLAGS = -O -pthread -g1
|
---|
| 16 | # Def compilateur C++ et flags
|
---|
| 17 | CXX = cxx
|
---|
[2751] | 18 | CXXFLAGS = -O -pthread -g1 -no_implicit_include
|
---|
[2766] | 19 | # flags specifiques pour templates repository...
|
---|
| 20 | CXXTEMPFLG = -ptr $(SOPHYAOBJP)/cxxrep/
|
---|
[2720] | 21 | # Compilo fortran
|
---|
| 22 | FC = f77
|
---|
| 23 | FFLAGS =
|
---|
| 24 | # Pour fabriquer les lib .a
|
---|
[2749] | 25 | AR = /usr/bin/ar
|
---|
[2720] | 26 | ARFLAGS = -rcs
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | # Ordres de compilation
|
---|
| 30 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
| 31 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
[2724] | 32 | FCCOMPILE = $(FC) $(FFLAGS) -c
|
---|
[2720] | 33 |
|
---|
| 34 | # Extension de nom pour les librairies partagees
|
---|
| 35 | SLEXT = so
|
---|
| 36 | # Fabrication de librairies partagees
|
---|
[2766] | 37 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -shared
|
---|
[2720] | 38 |
|
---|
| 39 |
|
---|
| 40 | # Liste de librairie de base, necessaire pour libsophya
|
---|
| 41 | SOPBASELIBS = -lpthread -lm
|
---|
[2734] | 42 | LIBFORT = -lfor -lFutil -lots -lUfor
|
---|
[2720] | 43 |
|
---|
[2729] | 44 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
[2720] | 45 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
| 46 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 47 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 48 |
|
---|
[2729] | 49 | # Commande de link pour creation d executables
|
---|
[2720] | 50 | CXXLINK = $(CXX) $(CXXFLAGS)
|
---|
[2729] | 51 | CLINK = $(CC) $(CFLAGS)
|
---|
[2734] | 52 | FCLINK = $(FC) $(FFLAGS)
|
---|
[2729] | 53 |
|
---|
[2728] | 54 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 55 | CXXDLL = $(CXX) $(CXXFLAGS) -shared
|
---|