| [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
|
|---|
| [2912] | 7 | PIINC = -I/usr/X11R6/include/ -I/sw/include
|
|---|
| [2720] | 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
|
|---|
| [3210] | 15 | # Replace [CNFPHFLF] by specific compilation flags below (done by configure)
|
|---|
| [3250] | 16 | CFLAGS = -fno-common -g -O -fPIC CNFPHFLF
|
|---|
| [2862] | 17 | # With optimization flags
|
|---|
| [3210] | 18 | # CFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC
|
|---|
| [2720] | 19 | # Def compilateur C++ et flags
|
|---|
| 20 | CXX = c++
|
|---|
| [3250] | 21 | CXXFLAGS = -fno-common -g -O -fPIC CNFPHFLF
|
|---|
| [2862] | 22 | # CXXFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC
|
|---|
| [2766] | 23 | # flags specifiques pour templates repository...
|
|---|
| 24 | CXXTEMPFLG =
|
|---|
| [2720] | 25 | # Compilo fortran
|
|---|
| [2747] | 26 | FC = g77
|
|---|
| [2720] | 27 | FFLAGS =
|
|---|
| 28 | # Pour fabriquer les lib .a
|
|---|
| 29 | AR = libtool
|
|---|
| 30 | ARFLAGS = -static -o
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | # Ordres de compilation
|
|---|
| 34 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
|---|
| 35 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
|---|
| [2747] | 36 | FCCOMPILE = $(FC) $(FFLAGS) -c
|
|---|
| [2720] | 37 |
|
|---|
| [2726] | 38 | # Extension de nom pour les librairies partagees
|
|---|
| 39 | SLEXT = dylib
|
|---|
| [2720] | 40 | # Fabrication de librairies partagees
|
|---|
| [2766] | 41 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -dynamiclib
|
|---|
| [2720] | 42 |
|
|---|
| 43 |
|
|---|
| 44 | # Liste de librairie de base, necessaire pour libsophya
|
|---|
| 45 | SOPBASELIBS = -lpthread -lm -lc -ldl
|
|---|
| [2747] | 46 | LIBFORT =
|
|---|
| [2720] | 47 |
|
|---|
| [2910] | 48 | # --- Chemin pour l ensemble les librairies SOPHYA , +ExtLibs, +PI
|
|---|
| 49 | SOPHYALIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPBASELIBS)
|
|---|
| 50 | SOPHYAEXTLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPEXTLIBS) $(SOPBASELIBS)
|
|---|
| 51 | SOPHYAALLLIBLIST = -L$(SOPHYALIBP) $(SOPMODLIBLIST) $(SOPPILIBLIST) $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
|---|
| 52 |
|
|---|
| [2720] | 53 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
|---|
| 54 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
|---|
| 55 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
|---|
| 56 |
|
|---|
| 57 | # Commande de link pour creation d'executables
|
|---|
| 58 | CXXLINK = $(CXX) $(CXXFLAGS) -bind_at_load
|
|---|
| [2728] | 59 | # Commande de link pour creation de module pouvant etre charge dynamiquement
|
|---|
| 60 | CXXDLL = $(CXX) $(CXXFLAGS) -bundle
|
|---|