source: issm/trunk/src/wrappers/python/Makefile.am@ 26744

Last change on this file since 26744 was 26744, checked in by Mathieu Morlighem, 3 years ago

merged trunk-jpl and trunk for revision 26742

File size: 8.1 KB
RevLine 
[26744]1AM_CPPFLAGS = @DAKOTAINCL@ @PETSCINCL@ @MPIINCL@ @SPOOLESINCL@ @PARMETISINCL@ @METISINCL@ @TRIANGLEINCL@ @CHACOINCL@ @SCOTCHINCL@ @SHAPELIBINCL@ @PYTHONINCL@ @PYTHON_NUMPYINCL@ @AMPIINCL@ @ADJOINTMPIINCL@ @MEDIPACKINCL@ @CODIPACKINCL@ @PROJINCL@
[21341]2AUTOMAKE_OPTIONS = subdir-objects
[13174]3
[12031]4EXEEXT=$(PYTHONWRAPPEREXT)
[13174]5
[16137]6#define prefix (from http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Defining-Directories.html)
[24686]7AM_CPPFLAGS += -DISSM_PREFIX='"$(prefix)"'
[16137]8
[13749]9#python io{{{
10lib_LTLIBRARIES = libISSMPython.la
11
[24686]12io_sources = \
13 ./io/CheckNumPythonArguments.cpp \
14 ./io/FetchPythonData.cpp \
15 ./io/WritePythonData.cpp
[13749]16
[24686]17ALLCXXFLAGS= -fPIC -D_WRAPPERS_ $(CXXFLAGS) $(CXXOPTFLAGS)
18
[13749]19libISSMPython_la_SOURCES = $(io_sources)
[19105]20libISSMPython_la_CXXFLAGS= $(ALLCXXFLAGS)
[13749]21#}}}
[15396]22#api io{{{
23lib_LTLIBRARIES += libISSMApi.la
[24686]24api_sources = ./io/ApiPrintf.cpp
[15396]25
26libISSMApi_la_SOURCES = $(api_sources)
[19105]27libISSMApi_la_CXXFLAGS= $(ALLCXXFLAGS)
[15396]28#}}}
[13652]29#Wrappers {{{
[24686]30lib_LTLIBRARIES += \
31 BamgConvertMesh_python.la \
32 BamgMesher_python.la \
33 BamgTriangulate_python.la \
34 ContourToMesh_python.la \
35 ContourToNodes_python.la \
36 ElementConnectivity_python.la \
37 ExpToLevelSet_python.la \
[25836]38 InterpFromGridToMesh_python.la \
39 InterpFromMesh2d_python.la \
40 InterpFromMeshToGrid_python.la \
[24686]41 InterpFromMeshToMesh2d_python.la \
42 InterpFromMeshToMesh3d_python.la \
43 IssmConfig_python.la \
44 MeshPartition_python.la \
45 MeshProfileIntersection_python.la \
46 NodeConnectivity_python.la \
47 Triangle_python.la \
48 ProcessRifts_python.la
[22758]49
50if CHACO
51lib_LTLIBRARIES += Chaco_python.la
52endif
[12031]53#}}}
[13243]54#Flags and libraries {{{
[24686]55deps = $(MATHLIB) ${PYTHONLIB}
[12031]56
57#Triangle library
[24686]58AM_CXXFLAGS = -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER -D_WRAPPERS_
[12031]59
60#Python part
[25836]61AM_LDFLAGS = -module $(PYTHONLINK) -shrext ${EXEEXT} --export-dynamic -rdynamic -no-undefined
[24686]62
63if !VERSION
[13174]64AM_LDFLAGS += -avoid-version
65endif
[19105]66
[24686]67# NOTE:
68# - On Linux, We probably do not need the -static flag as long as we only
69# generate static libraries for external packages. Dynamic system libraries
70# will be linked to, whether we like it or not, if no static version is
71# available.
72# - On macOS, static linking of binaries is not supported.
73#
[19105]74if STANDALONE_MODULES
[24686]75if MAC
76AM_LDFLAGS += -Wl,-rpath,'@rpath'
77else
78AM_LDFLAGS += -Wl,-static -Wl,--disable-new-dtags -Wl,-rpath,'$$ORIGIN'
[19105]79endif
[24686]80endif
[19105]81
[24686]82AM_LDFLAGS += --no-warnings
83AM_CXXFLAGS += -D_HAVE_PYTHON_MODULES_ -fPIC
[13174]84
[12075]85if PYTHON3
[24686]86AM_CXXFLAGS += -DNPY_NO_DEPRECATED_API
[12075]87endif
[12031]88
[24686]89deps += ./libISSMPython.la ../../c/libISSMModules.la ../../c/libISSMCore.la ./libISSMApi.la
90
[13906]91if ADOLC
92deps += $(ADOLCLIB)
93endif
94
[24686]95if FORTRAN
96deps += $(FLIBS) $(FORTRANLIB)
97endif
[19105]98
[24686]99#Optimization flags:
100AM_CXXFLAGS += $(CXXOPTFLAGS)
101#}}}
102# Module sources and dependencies {{{
[26744]103libISSMPython_la_LIBADD = ./../../c/libISSMCore.la ./../../c/libISSMModules.la $(PETSCLIB) $(HDF5LIB) $(MPILIB) $(NEOPZLIB) $(MKLLIB) $(GSLLIB) $(MATHLIB)
[24686]104
[19105]105if STANDALONE_LIBRARIES
[24686]106libISSMPython_la_LDFLAGS = -static
107libISSMApi_la_LDFLAGS = -static
[26744]108deps += $(DAKOTALIB) $(PETSCLIB) $(MUMPSLIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(PARMETISLIB) $(METISLIB) $(HDF5LIB) $(TAOLIB) $(NEOPZLIB) $(M1QN3LIB) $(SEMICLIB) $(PLAPACKLIB) $(SUPERLULIB) $(SPOOLESLIB) $(TRIANGLELIB) $(BLACSLIB) $(HYPRELIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(MLLIB) $(CHACOLIB) $(SCOTCHLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(GSLLIB) $(ADOLCLIB) $(AMPILIB) $(METEOIOLIB) $(SNOWPACKLIB) $(OSLIBS)
[15396]109endif
110
[26744]111libISSMApi_la_LIBADD = $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) $(MATHLIB)
[24686]112
[21341]113BamgConvertMesh_python_la_SOURCES = ../BamgConvertMesh/BamgConvertMesh.cpp
114BamgConvertMesh_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]115BamgConvertMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[13243]116
[21341]117BamgMesher_python_la_SOURCES = ../BamgMesher/BamgMesher.cpp
118BamgMesher_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]119BamgMesher_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[13287]120
[21341]121BamgTriangulate_python_la_SOURCES = ../BamgTriangulate/BamgTriangulate.cpp
122BamgTriangulate_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]123BamgTriangulate_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[13441]124
[22758]125if CHACO
126Chaco_python_la_SOURCES = ../Chaco/Chaco.cpp
127Chaco_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]128Chaco_python_la_LIBADD = ${deps} $(CHACOLIB) $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[22758]129endif
130
[21341]131ContourToMesh_python_la_SOURCES = ../ContourToMesh/ContourToMesh.cpp
132ContourToMesh_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]133ContourToMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)
[13330]134
[21341]135ContourToNodes_python_la_SOURCES = ../ContourToNodes/ContourToNodes.cpp
136ContourToNodes_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]137ContourToNodes_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[12112]138
[21341]139ElementConnectivity_python_la_SOURCES = ../ElementConnectivity/ElementConnectivity.cpp
140ElementConnectivity_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]141ElementConnectivity_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[13033]142
[24313]143ExpToLevelSet_python_la_SOURCES = ../ExpToLevelSet/ExpToLevelSet.cpp
144ExpToLevelSet_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]145ExpToLevelSet_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB) $(NEOPZLIB)
[24313]146
[25836]147InterpFromMesh2d_python_la_SOURCES = ../InterpFromMesh2d/InterpFromMesh2d.cpp
148InterpFromMesh2d_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]149InterpFromMesh2d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)
[25836]150
[24686]151InterpFromGridToMesh_python_la_SOURCES = ../InterpFromGridToMesh/InterpFromGridToMesh.cpp
152InterpFromGridToMesh_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]153InterpFromGridToMesh_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)
[24313]154
[24686]155InterpFromMeshToGrid_python_la_SOURCES = ../InterpFromMeshToGrid/InterpFromMeshToGrid.cpp
156InterpFromMeshToGrid_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]157InterpFromMeshToGrid_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(NEOPZLIB) $(GSLLIB)
[24686]158
[21341]159InterpFromMeshToMesh2d_python_la_SOURCES = ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp
160InterpFromMeshToMesh2d_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]161InterpFromMeshToMesh2d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(GSLLIB)
[12118]162
[21341]163InterpFromMeshToMesh3d_python_la_SOURCES = ../InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp
164InterpFromMeshToMesh3d_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]165InterpFromMeshToMesh3d_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(MULTITHREADINGLIB) $(GSLLIB)
[17806]166
[21341]167IssmConfig_python_la_SOURCES = ../IssmConfig/IssmConfig.cpp
168IssmConfig_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[25836]169IssmConfig_python_la_LIBADD = ${deps} $(DAKOTALIB) $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB)
[16137]170
[22758]171MeshPartition_python_la_SOURCES = ../MeshPartition/MeshPartition.cpp
172MeshPartition_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]173MeshPartition_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(METISLIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[22758]174
[21341]175MeshProfileIntersection_python_la_SOURCES = ../MeshProfileIntersection/MeshProfileIntersection.cpp
176MeshProfileIntersection_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]177MeshProfileIntersection_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[13864]178
[21341]179NodeConnectivity_python_la_SOURCES = ../NodeConnectivity/NodeConnectivity.cpp
180NodeConnectivity_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]181NodeConnectivity_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[12112]182
[22758]183Triangle_python_la_SOURCES = ../Triangle/Triangle.cpp
184Triangle_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]185Triangle_python_la_LIBADD = ${deps} $(TRIANGLELIB) $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[13033]186
[22758]187ProcessRifts_python_la_SOURCES = ../ProcessRifts/ProcessRifts.cpp
188ProcessRifts_python_la_CXXFLAGS = ${AM_CXXFLAGS}
[26744]189ProcessRifts_python_la_LIBADD = ${deps} $(PETSCLIB) $(HDF5LIB) $(BLASLAPACKLIB) $(MPILIB) $(NEOPZLIB) $(GSLLIB)
[12031]190#}}}
Note: See TracBrowser for help on using the repository browser.