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

Last change on this file since 13975 was 13923, checked in by cborstad, 12 years ago

CHG: added python support for InterpFromGridtoMesh in wrappers

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