-
Notifications
You must be signed in to change notification settings - Fork 96
/
Makefile.am
66 lines (53 loc) · 1.73 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# =================================================================================================
# This code is part of PyLith, developed through the Computational Infrastructure
# for Geodynamics (https://github.com/geodynamics/pylith).
#
# Copyright (c) 2010-2024, University of California, Davis and the PyLith Development Team.
# All rights reserved.
#
# See https://mit-license.org/ and LICENSE.md and for license information.
# =================================================================================================
subpackage = faults
include $(top_srcdir)/subpackage.am
include $(top_srcdir)/modulesrc/module.am
subpkgpython_LTLIBRARIES = _faults.la
subpkgpython_PYTHON = faults.py
swig_sources = \
faults.i \
../utils/PyreComponent.i \
../problems/Physics.i \
FaultCohesive.i \
FaultCohesiveKin.i \
FaultCohesiveImpulses.i \
KinSrc.i \
KinSrcStep.i \
KinSrcRamp.i \
KinSrcConstRate.i \
KinSrcBrune.i \
KinSrcLiuCos.i \
KinSrcTimeHistory.i
swig_generated = \
faults_wrap.cxx \
faults.py
_faults_la_LDFLAGS = -module -avoid-version \
$(AM_LDFLAGS) $(PYTHON_LA_LDFLAGS)
dist__faults_la_SOURCES = $(swig_sources) $(swig_generated)
_faults_la_LIBADD = \
$(top_builddir)/libsrc/pylith/libpylith.la \
-lspatialdata \
$(PETSC_LIB) \
$(PYTHON_BLDLIBRARY) $(PYTHON_LIBS) $(PYTHON_SYSLIBS)
if ENABLE_CUBIT
_faults_la_LIBADD += -lnetcdf
endif
if ENABLE_SWIG
$(srcdir)/faults_wrap.cxx $(srcdir)/faults.py: $(swig_sources)
$(SWIG) $(PETSC_CC_INCLUDES) -Wall -c++ -python $<
else
$(srcdir)/faults_wrap.cxx $(srcdir)/faults.py:
$(error Missing SWIG generated files. Make sure SWIG is installed and reconfigure with --enable-swig)
endif
MAINTAINERCLEANFILES = \
$(srcdir)/faults_wrap.cxx \
$(srcdir)/faults.py
# End of file