Changeset 27631
- Timestamp:
- 03/02/23 13:51:06 (2 years ago)
- Location:
- issm/trunk-jpl/src/wrappers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/matlab/Makefile.am
r27619 r27631 90 90 deps = $(MATHLIB) 91 91 92 # Triangle library92 # Triangle 93 93 CXXFLAGS_FOR_TRI = -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER 94 94 -
issm/trunk-jpl/src/wrappers/python/Makefile.am
r27624 r27631 2 2 AUTOMAKE_OPTIONS = subdir-objects 3 3 4 EXEEXT=$(PYTHONWRAPPEREXT)5 6 4 #define prefix (from http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Defining-Directories.html) 7 5 AM_CPPFLAGS += -DISSM_PREFIX='"$(prefix)"' 8 6 9 7 #python io{{{ 8 if !WINDOWS 10 9 lib_LTLIBRARIES = libISSMPython.la 10 else 11 noinst_LTLIBRARIES = libISSMPython.la 12 lib_LTLIBRARIES = 13 endif 11 14 12 15 io_sources = \ … … 15 18 ./io/WritePythonData.cpp 16 19 17 ALLCXXFLAGS= -fPIC -D_WRAPPERS_ $(CXXFLAGS) $(CXXOPTFLAGS) 20 ALL_CXXFLAGS = -fPIC -D_WRAPPERS_ 21 22 if MSYS2 23 ALL_CXXFLAGS += -D_DO_NOT_LOAD_GLOBALS_ # Cannot have undefined symbols under MSYS2 24 ALL_CXXFLAGS += -D_USE_MATH_DEFINES # Need to open fence to math.h definitions when --std=c++ is used (which is the default) 25 endif 26 27 ALL_CXXFLAGS += $(CXXOPTFLAGS) $(CXXFLAGS) 18 28 19 29 libISSMPython_la_SOURCES = $(io_sources) 20 libISSMPython_la_CXXFLAGS= $ (ALLCXXFLAGS)30 libISSMPython_la_CXXFLAGS= ${ALL_CXXFLAGS} 21 31 #}}} 22 32 #api io{{{ 33 if !WINDOWS 23 34 lib_LTLIBRARIES += libISSMApi.la 24 api_sources = ./io/ApiPrintf.cpp 35 else 36 noinst_LTLIBRARIES += libISSMApi.la 37 endif 38 39 if !MSYS2 40 api_sources= ./io/ApiPrintf.cpp 25 41 26 42 libISSMApi_la_SOURCES = $(api_sources) 27 libISSMApi_la_CXXFLAGS= $(ALLCXXFLAGS) 43 libISSMApi_la_CXXFLAGS = ${ALL_CXXFLAGS} 44 endif 28 45 #}}} 29 46 #Wrappers {{{ … … 52 69 endif 53 70 #}}} 54 # Flags and libraries {{{71 # Dependencies {{{ 55 72 deps = $(MATHLIB) $(PYTHONLIB) 56 73 57 #Triangle library 58 AM_CXXFLAGS = -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER -D_WRAPPERS_ 59 60 #Python part 61 AM_LDFLAGS = -module $(PYTHONLINK) -shrext ${EXEEXT} --export-dynamic -rdynamic -no-undefined 74 # Triangle 75 CXXFLAGS_FOR_TRI = -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER 76 77 # Python 78 LDFLAGS_FOR_PY = -module $(PYTHONLINK) -shrext $(PYTHONWRAPPEREXT) -no-undefined 79 80 LDFLAGS_FOR_PY += --no-warnings 81 CXXFLAGS_FOR_PY = -D_HAVE_PYTHON_MODULES_ 82 83 if PYTHON3 84 CXXFLAGS_FOR_PY += -DNPY_NO_DEPRECATED_API 85 endif 86 87 AM_CXXFLAGS = ${CXXFLAGS_FOR_TRI} ${CXXFLAGS_FOR_PY} 88 AM_LDFLAGS = ${LDFLAGS_FOR_PY} 89 90 if !MSYS2 91 AM_LDFLAGS += --export-dynamic -rdynamic 92 endif 62 93 63 94 if !VERSION … … 80 111 endif 81 112 82 AM_LDFLAGS += --no-warnings 83 AM_CXXFLAGS += -D_HAVE_PYTHON_MODULES_ -fPIC 84 85 if PYTHON3 86 AM_CXXFLAGS += -DNPY_NO_DEPRECATED_API 87 endif 88 89 deps += ./libISSMPython.la ../../c/libISSMModules.la ../../c/libISSMCore.la ./libISSMApi.la 113 AM_CXXFLAGS += -fPIC -D_WRAPPERS_ 114 115 deps += ./libISSMPython.la ../../c/libISSMModules.la ../../c/libISSMCore.la 116 117 if !MSYS2 118 deps += ./libISSMApi.la 119 endif 90 120 91 121 if ADOLC … … 109 139 endif 110 140 111 libISSMApi_la_LIBADD = $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) $(MATHLIB)141 libISSMApi_la_LIBADD = $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) $(MATHLIB) 112 142 113 143 BamgConvertMesh_python_la_SOURCES = ../BamgConvertMesh/BamgConvertMesh.cpp 114 144 BamgConvertMesh_python_la_CXXFLAGS = ${AM_CXXFLAGS} 115 BamgConvertMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)145 BamgConvertMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 116 146 117 147 BamgMesher_python_la_SOURCES = ../BamgMesher/BamgMesher.cpp 118 148 BamgMesher_python_la_CXXFLAGS = ${AM_CXXFLAGS} 119 BamgMesher_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)149 BamgMesher_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 120 150 121 151 BamgTriangulate_python_la_SOURCES = ../BamgTriangulate/BamgTriangulate.cpp 122 152 BamgTriangulate_python_la_CXXFLAGS = ${AM_CXXFLAGS} 123 BamgTriangulate_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)153 BamgTriangulate_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 124 154 125 155 if CHACO 126 156 Chaco_python_la_SOURCES = ../Chaco/Chaco.cpp 127 157 Chaco_python_la_CXXFLAGS = ${AM_CXXFLAGS} 128 Chaco_python_la_LIBADD = ${deps} $(CHACOLIB) $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)158 Chaco_python_la_LIBADD = ${deps} $(CHACOLIB) $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 129 159 endif 130 160 131 161 ContourToMesh_python_la_SOURCES = ../ContourToMesh/ContourToMesh.cpp 132 162 ContourToMesh_python_la_CXXFLAGS = ${AM_CXXFLAGS} 133 ContourToMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)163 ContourToMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB) 134 164 135 165 ContourToNodes_python_la_SOURCES = ../ContourToNodes/ContourToNodes.cpp 136 166 ContourToNodes_python_la_CXXFLAGS = ${AM_CXXFLAGS} 137 ContourToNodes_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)167 ContourToNodes_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 138 168 139 169 ElementConnectivity_python_la_SOURCES = ../ElementConnectivity/ElementConnectivity.cpp 140 170 ElementConnectivity_python_la_CXXFLAGS = ${AM_CXXFLAGS} 141 ElementConnectivity_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)171 ElementConnectivity_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 142 172 143 173 ExpToLevelSet_python_la_SOURCES = ../ExpToLevelSet/ExpToLevelSet.cpp 144 174 ExpToLevelSet_python_la_CXXFLAGS = ${AM_CXXFLAGS} 145 ExpToLevelSet_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) $(NEOPZLIB)175 ExpToLevelSet_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) $(NEOPZLIB) 146 176 147 177 InterpFromMesh2d_python_la_SOURCES = ../InterpFromMesh2d/InterpFromMesh2d.cpp 148 178 InterpFromMesh2d_python_la_CXXFLAGS = ${AM_CXXFLAGS} 149 InterpFromMesh2d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)179 InterpFromMesh2d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB) 150 180 151 181 InterpFromGridToMesh_python_la_SOURCES = ../InterpFromGridToMesh/InterpFromGridToMesh.cpp 152 182 InterpFromGridToMesh_python_la_CXXFLAGS = ${AM_CXXFLAGS} 153 InterpFromGridToMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)183 InterpFromGridToMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB) 154 184 155 185 InterpFromMeshToGrid_python_la_SOURCES = ../InterpFromMeshToGrid/InterpFromMeshToGrid.cpp 156 186 InterpFromMeshToGrid_python_la_CXXFLAGS = ${AM_CXXFLAGS} 157 InterpFromMeshToGrid_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)187 InterpFromMeshToGrid_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB) 158 188 159 189 InterpFromMeshToMesh2d_python_la_SOURCES = ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp 160 190 InterpFromMeshToMesh2d_python_la_CXXFLAGS = ${AM_CXXFLAGS} 161 InterpFromMeshToMesh2d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(GSLLIB)191 InterpFromMeshToMesh2d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(GSLLIB) 162 192 163 193 InterpFromMeshToMesh3d_python_la_SOURCES = ../InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp 164 194 InterpFromMeshToMesh3d_python_la_CXXFLAGS = ${AM_CXXFLAGS} 165 InterpFromMeshToMesh3d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(GSLLIB)195 InterpFromMeshToMesh3d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(GSLLIB) 166 196 167 197 IssmConfig_python_la_SOURCES = ../IssmConfig/IssmConfig.cpp 168 198 IssmConfig_python_la_CXXFLAGS = ${AM_CXXFLAGS} 169 IssmConfig_python_la_LIBADD = ${deps} $(DAKOTALIB) $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB)199 IssmConfig_python_la_LIBADD = ${deps} $(DAKOTALIB) $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) 170 200 171 201 MeshPartition_python_la_SOURCES = ../MeshPartition/MeshPartition.cpp 172 202 MeshPartition_python_la_CXXFLAGS = ${AM_CXXFLAGS} 173 MeshPartition_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(METISLIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)203 MeshPartition_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(METISLIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 174 204 175 205 MeshProfileIntersection_python_la_SOURCES = ../MeshProfileIntersection/MeshProfileIntersection.cpp 176 206 MeshProfileIntersection_python_la_CXXFLAGS = ${AM_CXXFLAGS} 177 MeshProfileIntersection_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)207 MeshProfileIntersection_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 178 208 179 209 NodeConnectivity_python_la_SOURCES = ../NodeConnectivity/NodeConnectivity.cpp 180 210 NodeConnectivity_python_la_CXXFLAGS = ${AM_CXXFLAGS} 181 NodeConnectivity_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)211 NodeConnectivity_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 182 212 183 213 Triangle_python_la_SOURCES = ../Triangle/Triangle.cpp 184 214 Triangle_python_la_CXXFLAGS = ${AM_CXXFLAGS} 185 Triangle_python_la_LIBADD = ${deps} $(TRIANGLELIB) $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)215 Triangle_python_la_LIBADD = ${deps} $(TRIANGLELIB) $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 186 216 187 217 ProcessRifts_python_la_SOURCES = ../ProcessRifts/ProcessRifts.cpp 188 218 ProcessRifts_python_la_CXXFLAGS = ${AM_CXXFLAGS} 189 ProcessRifts_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $( BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)190 #}}} 219 ProcessRifts_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) 220 #}}}
Note:
See TracChangeset
for help on using the changeset viewer.