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