| 1 | # --------- File Linux_g_make.inc -------- | 
|---|
| 2 |  | 
|---|
| 3 | #  Liste des librariries externes | 
|---|
| 4 | #SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lg2c | 
|---|
| 5 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -lgfortran | 
|---|
| 6 |  | 
|---|
| 7 | #  Chemin et librairie pour PI | 
|---|
| 8 | PIINC = $(PIEXTINC) -I/usr/X11R6/include/ | 
|---|
| 9 | PILIBS = $(PIEXTLIB) -L/usr/X11R6/lib/ -lXt -lX11 | 
|---|
| 10 |  | 
|---|
| 11 |  | 
|---|
| 12 | #  Flag preprocesseur | 
|---|
| 13 | CPPFLAGS = -DLinux -I$(SOPHYAINCP) $(PIINC) | 
|---|
| 14 | #  Def compilateur C et flags | 
|---|
| 15 | CC = gcc | 
|---|
| 16 | # Replace [CNFPHFLF] by specific compilation flags below (done by configure) | 
|---|
| 17 | CFLAGS = -Wall -Wpointer-arith -Wmissing-prototypes -O -g -fPIC  CNFPHFLF | 
|---|
| 18 | #  Def compilateur C++ et flags | 
|---|
| 19 | CXX =  g++ | 
|---|
| 20 | #  Flag de warning -Wsynth NON inclus par defaut (04/2007) | 
|---|
| 21 | CXXFLAGS = -Wall -Wpointer-arith -O -g -fPIC  CNFPHFLF | 
|---|
| 22 | # flags specifiques pour templates repository... | 
|---|
| 23 | CXXTEMPFLG = | 
|---|
| 24 | #  Compilo fortran | 
|---|
| 25 | #FC = g77 | 
|---|
| 26 | FC = gfortran | 
|---|
| 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 | 
|---|
| 36 | FCCOMPILE = $(FC) $(FFLAGS) -c | 
|---|
| 37 |  | 
|---|
| 38 | #  Extension de nom pour les librairies partagees | 
|---|
| 39 | SLEXT = so | 
|---|
| 40 | #  Fabrication de librairies partagees | 
|---|
| 41 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -shared | 
|---|
| 42 |  | 
|---|
| 43 |  | 
|---|
| 44 | #  Liste de librairie de base, necessaire pour libsophya | 
|---|
| 45 | SOPBASELIBS = -lstdc++ -lpthread -lm -lc -ldl | 
|---|
| 46 | #LIBFORT = -lg2c | 
|---|
| 47 | LIBFORT = -lgfortran | 
|---|
| 48 |  | 
|---|
| 49 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI | 
|---|
| 50 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST)  $(SOPBASELIBS) | 
|---|
| 51 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS) | 
|---|
| 52 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS) | 
|---|
| 53 |  | 
|---|
| 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 |  | 
|---|
| 58 | #  Commande de link pour creation dexecutables | 
|---|
| 59 | CXXLINK = $(CXX) $(CXXFLAGS) | 
|---|
| 60 | CLINK = $(CC) $(CFLAGS) | 
|---|
| 61 | FCLINK = $(FC) $(FFLAGS) | 
|---|
| 62 |  | 
|---|
| 63 | #  Commande de link pour creation de module pouvant etre charge dynamiquement | 
|---|
| 64 | CXXDLL = $(CXX) $(CXXFLAGS) -shared | 
|---|