| 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/X11R6/include/ -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
 | 
|---|
| 15 | # Replace [CNFPHFLF] by specific compilation flags below (done by configure)
 | 
|---|
| 16 | CFLAGS = -fno-common -g -O -fPIC CNFPHFLF 
 | 
|---|
| 17 | #  With optimization flags 
 | 
|---|
| 18 | #  CFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC
 | 
|---|
| 19 | #  Def compilateur C++ et flags
 | 
|---|
| 20 | CXX =  c++
 | 
|---|
| 21 | CXXFLAGS = -fno-common -g -O -fPIC  CNFPHFLF 
 | 
|---|
| 22 | # CXXFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC 
 | 
|---|
| 23 | # flags specifiques pour templates repository...
 | 
|---|
| 24 | CXXTEMPFLG =
 | 
|---|
| 25 | #  Compilo fortran
 | 
|---|
| 26 | FC = g77
 | 
|---|
| 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 
 | 
|---|
| 36 | FCCOMPILE = $(FC) $(FFLAGS) -c 
 | 
|---|
| 37 | 
 | 
|---|
| 38 | #  Extension de nom pour les librairies partagees
 | 
|---|
| 39 | SLEXT = dylib
 | 
|---|
| 40 | #  Fabrication de librairies partagees 
 | 
|---|
| 41 | CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -dynamiclib 
 | 
|---|
| 42 | 
 | 
|---|
| 43 | 
 | 
|---|
| 44 | #  Liste de librairie de base, necessaire pour libsophya
 | 
|---|
| 45 | SOPBASELIBS = -lpthread -lm -lc -ldl 
 | 
|---|
| 46 | LIBFORT = 
 | 
|---|
| 47 | 
 | 
|---|
| 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 | 
 | 
|---|
| 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
 | 
|---|
| 59 | #  Commande de link pour creation de module pouvant etre charge dynamiquement
 | 
|---|
| 60 | CXXDLL = $(CXX) $(CXXFLAGS) -bundle 
 | 
|---|