[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
|
---|
| 19 | CXXREP = -ptr $(SOPHYAOBJP)/cxxrep/
|
---|
[2720] | 20 | # Compilo fortran
|
---|
| 21 | FC = f77
|
---|
| 22 | FFLAGS =
|
---|
| 23 | # Pour fabriquer les lib .a
|
---|
[2749] | 24 | AR = /usr/bin/ar
|
---|
[2720] | 25 | ARFLAGS = -rcs
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | # Ordres de compilation
|
---|
| 29 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
| 30 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
[2751] | 31 | CXXCOMPILELIB = $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXREP) -c
|
---|
| 32 | CXXCOMPILEPROG = $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXREP) -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
|
---|
[2751] | 38 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXREP) -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
|
---|
[2720] | 46 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
| 47 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 48 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 49 |
|
---|
[2729] | 50 | # Commande de link pour creation d executables
|
---|
[2720] | 51 | CXXLINK = $(CXX) $(CXXFLAGS)
|
---|
[2729] | 52 | CLINK = $(CC) $(CFLAGS)
|
---|
[2734] | 53 | FCLINK = $(FC) $(FFLAGS)
|
---|
[2729] | 54 |
|
---|
[2728] | 55 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 56 | CXXDLL = $(CXX) $(CXXFLAGS) -shared
|
---|