[2720] | 1 | # --------- File Darwin_g++_make.inc --------
|
---|
| 2 |
|
---|
| 3 | # Liste des librariries externes
|
---|
| 4 | SOPEXTLIBS = $(SOPEXTLIBP) $(SOPEXTLIBLIST) -framework Accelerate
|
---|
| 5 |
|
---|
| 6 | # Chemin et librairie pour PI
|
---|
| 7 | PIINC = -I/usr/include/X11R6 -I/sw/include
|
---|
| 8 | PILIBS = -L/sw/lib -lXm -L/usr/X11R6/lib -lXt -lX11
|
---|
| 9 |
|
---|
| 10 |
|
---|
| 11 | # Flag preprocesseur
|
---|
| 12 | CPPFLAGS = -DDarwin -I$(SOPHYAINCP) $(PIINC)
|
---|
| 13 | # Def compilateur C et flags
|
---|
| 14 | CC = cc
|
---|
[2862] | 15 | CFLAGS = -fno-common -g -fPIC
|
---|
| 16 | # With optimization flags
|
---|
| 17 | # CFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC
|
---|
[2720] | 18 | # Def compilateur C++ et flags
|
---|
| 19 | CXX = c++
|
---|
[2862] | 20 | CXXFLAGS = -fno-common -g -fPIC
|
---|
| 21 | # CXXFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC
|
---|
[2766] | 22 | # flags specifiques pour templates repository...
|
---|
| 23 | CXXTEMPFLG =
|
---|
[2720] | 24 | # Compilo fortran
|
---|
[2747] | 25 | FC = g77
|
---|
[2720] | 26 | FFLAGS =
|
---|
| 27 | # Pour fabriquer les lib .a
|
---|
| 28 | AR = libtool
|
---|
| 29 | ARFLAGS = -static -o
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # Ordres de compilation
|
---|
| 33 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
| 34 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
[2747] | 35 | FCCOMPILE = $(FC) $(FFLAGS) -c
|
---|
[2720] | 36 |
|
---|
[2726] | 37 | # Extension de nom pour les librairies partagees
|
---|
| 38 | SLEXT = dylib
|
---|
[2720] | 39 | # Fabrication de librairies partagees
|
---|
[2766] | 40 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -dynamiclib
|
---|
[2720] | 41 |
|
---|
| 42 |
|
---|
| 43 | # Liste de librairie de base, necessaire pour libsophya
|
---|
| 44 | SOPBASELIBS = -lpthread -lm -lc -ldl
|
---|
[2747] | 45 | LIBFORT =
|
---|
[2720] | 46 |
|
---|
[2910] | 47 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
| 48 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPBASELIBS)
|
---|
| 49 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 50 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 51 |
|
---|
[2720] | 52 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
| 53 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 54 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
| 55 |
|
---|
| 56 | # Commande de link pour creation d'executables
|
---|
| 57 | CXXLINK = $(CXX) $(CXXFLAGS) -bind_at_load
|
---|
[2728] | 58 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
---|
| 59 | CXXDLL = $(CXX) $(CXXFLAGS) -bundle
|
---|