source: Sophya/trunk/SophyaLib/BuildMgr/Linux_g++_make.inc

Last change on this file was 3840, checked in by ansari, 15 years ago

Amelioration du script configure (ajout flags -wgrdl -epip mdir1 ..., Reza 09/08/2010

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