| [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
 | 
|---|
 | 15 | CFLAGS = -Wall -Wpointer-arith -Wmissing-prototypes -O -g
 | 
|---|
 | 16 | #  Def compilateur C++ et flags
 | 
|---|
 | 17 | CXX =  g++
 | 
|---|
 | 18 | CXXFLAGS = -Wall -Wpointer-arith -Wmissing-prototypes -Wsynth -O -g
 | 
|---|
 | 19 | #  Compilo fortran
 | 
|---|
 | 20 | FC = g77
 | 
|---|
 | 21 | FFLAGS =  
 | 
|---|
 | 22 | # Pour fabriquer les lib .a
 | 
|---|
 | 23 | AR = ar
 | 
|---|
 | 24 | ARFLAGS = -rcs
 | 
|---|
 | 25 | 
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 | #  Ordres de compilation
 | 
|---|
 | 28 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c 
 | 
|---|
 | 29 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c 
 | 
|---|
| [2724] | 30 | FCCOMPILE = $(FC) $(FFLAGS) -c 
 | 
|---|
| [2720] | 31 | 
 | 
|---|
 | 32 | #  Extension de nom pour les librairies partagees
 | 
|---|
 | 33 | SLEXT = so
 | 
|---|
 | 34 | #  Fabrication de librairies partagees 
 | 
|---|
| [2728] | 35 | CMDSHLCXX = $(CXX) $(CXXFLAGS) -shared 
 | 
|---|
| [2720] | 36 | 
 | 
|---|
 | 37 | 
 | 
|---|
 | 38 | #  Liste de librairie de base, necessaire pour libsophya
 | 
|---|
 | 39 | SOPBASELIBS = -lpthread -lm -lc -ldl 
 | 
|---|
| [2734] | 40 | LIBFORT = -lg2c
 | 
|---|
| [2720] | 41 | 
 | 
|---|
| [2724] | 42 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
 | 
|---|
| [2720] | 43 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya  $(SOPBASELIBS)
 | 
|---|
 | 44 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
 | 
|---|
 | 45 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
 | 
|---|
 | 46 | 
 | 
|---|
| [2729] | 47 | #  Commande de link pour creation dexecutables
 | 
|---|
| [2720] | 48 | CXXLINK = $(CXX) $(CXXFLAGS)
 | 
|---|
| [2729] | 49 | CLINK = $(CC) $(CFLAGS)
 | 
|---|
| [2734] | 50 | FCLINK = $(FC) $(FFLAGS)
 | 
|---|
| [2729] | 51 | 
 | 
|---|
| [2728] | 52 | #  Commande de link pour creation de module pouvant etre charge dynamiquement
 | 
|---|
 | 53 | CXXDLL = $(CXX) $(CXXFLAGS) -shared
 | 
|---|