File: Makefile.am

package info (click to toggle)
gnucap-python 0.0.2-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,668 kB
  • sloc: python: 7,873; sh: 4,384; cpp: 1,786; makefile: 249
file content (109 lines) | stat: -rw-r--r-- 2,350 bytes parent folder | download | duplicates (2)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# gnucap-python python library Makefile.am
# Author: 2018 Felix Salfelder
# license GPL-3+
#
# (inspired by now obsolete files from Henrik Johansson)
#

BUILT_SOURCES = u_xprobe.h m_matrix_hack.h
u_xprobe.h: ${GC_INCLUDEDIR}/u_xprobe.h
	cp $< $@
	sed -i '/^  explicit.*XPROBE():$$/s/e/public:e/' $@
m_matrix_hack.h: ${GC_INCLUDEDIR}/m_matrix.h
	cp $< $@
	sed -i '/^  mutable bool/s/m/public:m/' $@


AM_CPPFLAGS = \
	-I${top_srcdir}/include \
	@PYTHON_CPPFLAGS@ \
	${CPPFLAGS} \
	${GC_CPPFLAGS} \
	-I${PYTHON_SITE_PKG} \
	-DPYTHON_SO=\"@ac_python_libdir@/@ac_python_soname@\"

# common library
pkglib_LTLIBRARIES = libgnucap-python.la
libgnucap_python_la_SOURCES = garbage.cc
libgnucap_python_la_LDFLAGS =

# python objects
pythongcdir = $(pythondir)/gnucap
pythongc_PYTHON = \
	${pythongc_LTLIBRARIES:_%.la=%.py} __init__.py

pythongc_LTLIBRARIES = \
	_ap.la \
	_gnucap_swig.la \
	_component.la \
	_globals.la \
	_md.la \
	_u_sim_data.la \
	_m_cpoly.la \
	_m_matrix.la \
	_m_wave.la \
	_mode.la \
	_c_exp.la \
	_c_comand.la \
	_e_base.la \
	_e_cardlist.la \
	_e_elemnt.la \
	_e_node.la \
	_io_.la \
	_u_nodemap.la \
	_u_opt.la \
	_u_status.la \
	_u_xprobe.la \
	_s__.la

all-local:
	for i in ${pythongc_LTLIBRARIES:%.la=%.so}; do \
		rm -f $$i; \
		${LN_S} .libs/$$i $$i; \
	done

check: all-local

AM_LDFLAGS = -module -avoid-version

_globals_la_LIBADD = ${AM_LIBADD} libgnucap-python.la

AM_DEFAULT_SOURCE_EXT = .i

_gnucap_swig_la_SOURCES = command.cc _gnucap_swig.i
_gnucap_swig_la_SOURCES += c_genrat.cc
_gnucap_swig_la_SOURCES += s_tr.cc s_tr_set.cc s_tr_swp.cc s__solve.cc s__out.cc s__init.cc

SWIG_FLAGS = -I${GC_INCLUDEDIR}

%.py _%.cxx _%.h: _%.i
	swig -python -c++ -Wall $(SWIG_FLAGS) -o _$*.cxx $<

.i.cxx:

EXTRA_DIST = \
	numpy.i \
	m_wave_.h \
	wrap.h \
	e_card.i

CLEANFILES = *~ *.pyc

CLEANFILES+= ${BUILT_SOURCES}
CLEANFILES+= ${pythongc_LTLIBRARIES:_%.la=%.py}
CLEANFILES+= ${pythongc_LTLIBRARIES:%.la=%.cxx}
CLEANFILES+= ${pythongc_LTLIBRARIES:%.la=%.h}

#### dep
_e_elemnt.cxx: _e_node.i _u_xprobe.i
_component.cxx: e_card.i _e_base.i _m_wave.i
_globals.cxx: _m_wave.i
_c_comand.cxx: _m_wave.i
_s__.cxx: _m_wave.i
_e_cardlist.cxx: _u_nodemap.i
_e_base.cxx: _m_wave.i
_e_node.cxx: _io_.i
_e_elemnt.cxx: _m_wave.i
_s__.cxx _u_sim_data.cxx: _m_matrix.i
_s__.cxx: _ap.i
_gnucap_swig.cxx: e_card.i _e_base.i _m_matrix.i _m_wave.i