[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
|
---|
| 12 | CPPFLAGS = -DLinux -I$(SOPHYAINCP) -I$(SOPEXTINCP) $(SOPEXTINC) $(PIINC)
|
---|
| 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
|
---|
| 40 |
|
---|
[2724] | 41 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
[2720] | 42 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
| 43 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 44 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 45 |
|
---|
[2728] | 46 | # Commande de link pour creation d'executables
|
---|
[2720] | 47 | CXXLINK = $(CXX) $(CXXFLAGS)
|
---|
[2728] | 48 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 49 | CXXDLL = $(CXX) $(CXXFLAGS) -shared
|
---|