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