[2720] | 1 | # --------- File Linux_g_make.inc --------
|
---|
| 2 |
|
---|
| 3 | # Liste des librariries externes
|
---|
[3820] | 4 | #SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lg2c
|
---|
| 5 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lgfortran
|
---|
[2720] | 6 |
|
---|
| 7 | # Chemin et librairie pour PI
|
---|
[3840] | 8 | PIINC = $(PIEXTINC) -I/usr/X11R6/include/
|
---|
| 9 | PILIBS = $(PIEXTLIB) -L/usr/X11R6/lib/ -lXt -lX11
|
---|
[2720] | 10 |
|
---|
| 11 |
|
---|
| 12 | # Flag preprocesseur
|
---|
[2734] | 13 | CPPFLAGS = -DLinux -I$(SOPHYAINCP) $(PIINC)
|
---|
[2720] | 14 | # Def compilateur C et flags
|
---|
| 15 | CC = gcc
|
---|
[3210] | 16 | # Replace [CNFPHFLF] by specific compilation flags below (done by configure)
|
---|
| 17 | CFLAGS = -Wall -Wpointer-arith -Wmissing-prototypes -O -g -fPIC CNFPHFLF
|
---|
[2720] | 18 | # Def compilateur C++ et flags
|
---|
| 19 | CXX = g++
|
---|
[3231] | 20 | # Flag de warning -Wsynth NON inclus par defaut (04/2007)
|
---|
| 21 | CXXFLAGS = -Wall -Wpointer-arith -O -g -fPIC CNFPHFLF
|
---|
[2766] | 22 | # flags specifiques pour templates repository...
|
---|
| 23 | CXXTEMPFLG =
|
---|
[2720] | 24 | # Compilo fortran
|
---|
[3820] | 25 | #FC = g77
|
---|
| 26 | FC = gfortran
|
---|
[2720] | 27 | FFLAGS =
|
---|
| 28 | # Pour fabriquer les lib .a
|
---|
| 29 | AR = ar
|
---|
| 30 | ARFLAGS = -rcs
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | # Ordres de compilation
|
---|
| 34 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
| 35 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
[2724] | 36 | FCCOMPILE = $(FC) $(FFLAGS) -c
|
---|
[2720] | 37 |
|
---|
| 38 | # Extension de nom pour les librairies partagees
|
---|
| 39 | SLEXT = so
|
---|
| 40 | # Fabrication de librairies partagees
|
---|
[2766] | 41 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -shared
|
---|
[2720] | 42 |
|
---|
| 43 |
|
---|
| 44 | # Liste de librairie de base, necessaire pour libsophya
|
---|
[3414] | 45 | SOPBASELIBS = -lstdc++ -lpthread -lm -lc -ldl
|
---|
[3820] | 46 | #LIBFORT = -lg2c
|
---|
| 47 | LIBFORT = -lgfortran
|
---|
[2720] | 48 |
|
---|
[2724] | 49 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
[2910] | 50 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPBASELIBS)
|
---|
| 51 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 52 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 53 |
|
---|
[2720] | 54 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
| 55 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 56 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 57 |
|
---|
[2729] | 58 | # Commande de link pour creation dexecutables
|
---|
[2720] | 59 | CXXLINK = $(CXX) $(CXXFLAGS)
|
---|
[2729] | 60 | CLINK = $(CC) $(CFLAGS)
|
---|
[2734] | 61 | FCLINK = $(FC) $(FFLAGS)
|
---|
[2729] | 62 |
|
---|
[2728] | 63 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 64 | CXXDLL = $(CXX) $(CXXFLAGS) -shared
|
---|