1 | AM_CPPFLAGS = @DAKOTAINCL@ @PETSCINCL@ @MPIINCL@ @SPOOLESINCL@ @METISINCL@ @TRIANGLEINCL@ @CHACOINCL@ @SCOTCHINCL@ @SHAPELIBINCL@ @PYTHONINCL@ @PYTHON_NUMPYINCL@
|
---|
2 |
|
---|
3 | EXEEXT=$(PYTHONWRAPPEREXT)
|
---|
4 |
|
---|
5 | #python io{{{
|
---|
6 | lib_LIBRARIES = libISSMPython.a
|
---|
7 | if SHAREDLIBS
|
---|
8 | lib_LTLIBRARIES = libISSMPython.la
|
---|
9 | else
|
---|
10 | lib_LTLIBRARIES =
|
---|
11 | endif
|
---|
12 |
|
---|
13 | io_sources= ./include/pythonincludes.h\
|
---|
14 | ./io/pythonio.h\
|
---|
15 | ./io/WritePythonData.cpp\
|
---|
16 | ./io/CheckNumPythonArguments.cpp\
|
---|
17 | ./io/FetchPythonData.cpp
|
---|
18 |
|
---|
19 | ALLCXXFLAGS= -fPIC -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ -D_WRAPPERS_ $(CXXFLAGS) $(CXXOPTFLAGS)
|
---|
20 | libISSMPython_a_SOURCES = $(io_sources)
|
---|
21 | libISSMPython_a_CXXFLAGS= $(ALLCXXFLAGS)
|
---|
22 | if SHAREDLIBS
|
---|
23 | libISSMPython_la_SOURCES = $(io_sources)
|
---|
24 | endif
|
---|
25 | #}}}
|
---|
26 | #Wrappers {{{
|
---|
27 | if WRAPPERS
|
---|
28 | lib_LTLIBRARIES = BamgConvertMesh.la\
|
---|
29 | BamgMesher.la\
|
---|
30 | ContourToMesh.la\
|
---|
31 | ContourToNodes.la\
|
---|
32 | ElementConnectivity.la\
|
---|
33 | EnumToString.la\
|
---|
34 | InterpFromMeshToMesh2d.la\
|
---|
35 | InterpFromGridToMesh.la\
|
---|
36 | MeshProfileIntersection.la\
|
---|
37 | NodeConnectivity.la\
|
---|
38 | StringToEnum.la\
|
---|
39 | TriMesh.la\
|
---|
40 | TriMeshProcessRifts.la
|
---|
41 | endif
|
---|
42 | #}}}
|
---|
43 | #Flags and libraries {{{
|
---|
44 | #if SHAREDLIBS
|
---|
45 | #deps = ../../c/libISSMCore.la ../../c/libISSMModules.la
|
---|
46 | #else
|
---|
47 | #deps = ../../c/libISSMCore.a ../../c/libISSMModules.a
|
---|
48 | #endif
|
---|
49 | #deps += $(MATHLIB) ${PYTHONLIB}
|
---|
50 | deps = $(MATHLIB) ${PYTHONLIB}
|
---|
51 |
|
---|
52 | #Triangle library
|
---|
53 | AM_CXXFLAGS = -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER -D_WRAPPERS_
|
---|
54 |
|
---|
55 | #Python part
|
---|
56 | AM_LDFLAGS = $(PYTHONLINK) -shrext ${EXEEXT} -module
|
---|
57 | if VERSION
|
---|
58 | AM_LDFLAGS +=
|
---|
59 | else
|
---|
60 | AM_LDFLAGS += -avoid-version
|
---|
61 | endif
|
---|
62 | if SHAREDLIBS
|
---|
63 | deps += ./libISSMPython.la
|
---|
64 | else
|
---|
65 | deps += ./libISSMPython.a
|
---|
66 | AM_LDFLAGS += --no-warnings
|
---|
67 | endif
|
---|
68 |
|
---|
69 | AM_CXXFLAGS += -D_HAVE_PYTHON_MODULES_ -fPIC
|
---|
70 | if PYTHON3
|
---|
71 | AM_CXXFLAGS += -DNPY_NO_DEPRECATED_API
|
---|
72 | endif
|
---|
73 |
|
---|
74 | if SHAREDLIBS
|
---|
75 | deps +=
|
---|
76 | else
|
---|
77 | deps += ../../c/libISSMModules.a ../../c/libISSMCore.a
|
---|
78 | if ADOLC
|
---|
79 | deps += $(ADOLCLIB)
|
---|
80 | endif
|
---|
81 |
|
---|
82 | endif
|
---|
83 |
|
---|
84 | #Optimization flags:
|
---|
85 | AM_CXXFLAGS += $(CXXOPTFLAGS)
|
---|
86 | #}}}
|
---|
87 | #Bin sources {{{
|
---|
88 | BamgConvertMesh_la_SOURCES = ../BamgConvertMesh/BamgConvertMesh.cpp\
|
---|
89 | ../BamgConvertMesh/BamgConvertMesh.h
|
---|
90 | BamgConvertMesh_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
91 |
|
---|
92 | BamgMesher_la_SOURCES = ../BamgMesher/BamgMesher.cpp\
|
---|
93 | ../BamgMesher/BamgMesher.h
|
---|
94 | BamgMesher_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
95 |
|
---|
96 | ContourToMesh_la_SOURCES = ../ContourToMesh/ContourToMesh.cpp\
|
---|
97 | ../ContourToMesh/ContourToMesh.h
|
---|
98 | ContourToMesh_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
99 |
|
---|
100 | ContourToNodes_la_SOURCES = ../ContourToNodes/ContourToNodes.cpp\
|
---|
101 | ../ContourToNodes/ContourToNodes.h
|
---|
102 | ContourToNodes_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
103 |
|
---|
104 | ElementConnectivity_la_SOURCES = ../ElementConnectivity/ElementConnectivity.cpp\
|
---|
105 | ../ElementConnectivity/ElementConnectivity.h
|
---|
106 | ElementConnectivity_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
107 |
|
---|
108 | EnumToString_la_SOURCES = ../EnumToString/EnumToString.cpp\
|
---|
109 | ../EnumToString/EnumToString.h
|
---|
110 | EnumToString_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
111 |
|
---|
112 | InterpFromMeshToMesh2d_la_SOURCES = ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp\
|
---|
113 | ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.h
|
---|
114 | InterpFromMeshToMesh2d_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB) $(MULTITHREADINGLIB)
|
---|
115 |
|
---|
116 | InterpFromGridToMesh_la_SOURCES = ../InterpFromGridToMesh/InterpFromGridToMesh.cpp\
|
---|
117 | ../InterpFromGridToMesh/InterpFromGridToMesh.h
|
---|
118 | InterpFromGridToMesh_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB) $(MULTITHREADINGLIB)
|
---|
119 |
|
---|
120 | MeshProfileIntersection_la_SOURCES = ../MeshProfileIntersection/MeshProfileIntersection.cpp\
|
---|
121 | ../MeshProfileIntersection/MeshProfileIntersection.h
|
---|
122 | MeshProfileIntersection_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
123 |
|
---|
124 | NodeConnectivity_la_SOURCES = ../NodeConnectivity/NodeConnectivity.cpp\
|
---|
125 | ../NodeConnectivity/NodeConnectivity.h
|
---|
126 | NodeConnectivity_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
127 |
|
---|
128 | StringToEnum_la_SOURCES = ../StringToEnum/StringToEnum.cpp\
|
---|
129 | ../StringToEnum/StringToEnum.h
|
---|
130 | StringToEnum_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
131 |
|
---|
132 | TriMesh_la_SOURCES = ../TriMesh/TriMesh.cpp\
|
---|
133 | ../TriMesh/TriMesh.h
|
---|
134 | TriMesh_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB) $(TRIANGLELIB)
|
---|
135 |
|
---|
136 | TriMeshProcessRifts_la_SOURCES = ../TriMeshProcessRifts/TriMeshProcessRifts.cpp\
|
---|
137 | ../TriMeshProcessRifts/TriMeshProcessRifts.h
|
---|
138 | TriMeshProcessRifts_la_LIBADD = ${deps} $(MPILIB) $(PETSCLIB)
|
---|
139 | #}}}
|
---|