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