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
|
---|
19 | # Compilo fortran
|
---|
20 | FC = f77
|
---|
21 | FFLAGS =
|
---|
22 | # Pour fabriquer les lib .a
|
---|
23 | AR = libtool
|
---|
24 | ARFLAGS = -static -o
|
---|
25 |
|
---|
26 |
|
---|
27 | # Ordres de compilation
|
---|
28 | CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
|
---|
29 | CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
|
---|
30 |
|
---|
31 | # Fabrication de librairies partagees
|
---|
32 | CMDSHLCXX = $(CXX) $(CXXFLAGS) -dynamiclib
|
---|
33 |
|
---|
34 |
|
---|
35 | # Liste de librairie de base, necessaire pour libsophya
|
---|
36 | SOPBASELIBS = -lpthread -lm -lc -ldl
|
---|
37 |
|
---|
38 | # --- Chemin pour l'ensemble les librairies SOPHYA , +ExtLibs, +PI
|
---|
39 | SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS)
|
---|
40 | SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
41 | SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS)
|
---|
42 |
|
---|
43 | # Commande de link pour creation d'executables
|
---|
44 | CXXLINK = $(CXX) $(CXXFLAGS) -bind_at_load
|
---|