File: Makefile.in

package info (click to toggle)
libsbml 5.10.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 141,800 kB
  • ctags: 98,793
  • sloc: cpp: 804,405; xml: 206,907; ansic: 66,144; cs: 52,916; java: 25,093; python: 23,449; sh: 9,847; perl: 8,414; makefile: 7,580; ruby: 4,760; csh: 3
file content (308 lines) | stat: -rw-r--r-- 10,861 bytes parent folder | download
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
## @configure_input@
##
## \file    Makefile.in
## \brief   Makefile template for libSBML Perl bindings
## \author  Mike Hucka
## 
##

## Copyright 2005 California Institute of Technology and
## Japan Science and Technology Corporation.
##
## This library is free software; you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as published
## by the Free Software Foundation; either version 2.1 of the License, or
## any later version.
##
## This library is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
## MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  The software and
## documentation provided hereunder is on an "as is" basis, and the
## California Institute of Technology and Japan Science and Technology
## Corporation have no obligations to provide maintenance, support,
## updates, enhancements or modifications.  In no event shall the
## California Institute of Technology or the Japan Science and Technology
## Corporation be liable to any party for direct, indirect, special,
## incidental or consequential damages, including lost profits, arising
## out of the use of this software and its documentation, even if the
## California Institute of Technology and/or Japan Science and Technology
## Corporation have been advised of the possibility of such damage.  See
## the GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library; if not, write to the Free Software Foundation,
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
##
## The original code contained here was initially developed by:
##
##     Christoph Flamm
##     Institut fuer Theoretische Chemie
##     Universitaet Wien
##     Waehringerstrasse 17/3/308
##     A-1090 Wien, Austria

## Contributor(s):
##   Michael Hucka <mhucka@caltech.edu> Wrote this Makefile.in.
##


# -----------------------------------------------------------------------------
# Configuration variables
# -----------------------------------------------------------------------------
# Some of the following are substituted automatically by `configure'.  If
# you are looking at "Makefile", do not edit these values; instead, run the
# configure script at the top level of the src tree.  It will recreate
# "Makefile".

include @top_srcdir@/config/makefile-common-vars.mk

# `srcdir' points to the current directory, but should be set by configure.
# `subdir' must be set manually to the relative dir under srcdir.  Don't 
# set `subdir' to an absolute path, or some make actions will fail.

srcdir  = @srcdir@
thisdir = src/bindings/perl

# `sources' are used by the default rules to determine what needs to be
# compiled.

sources = LibSBML.i LibSBML.pod LibSBML_wrap.cxx LibSBML.pm

# `distfiles' determines the files and directories included in a distribution.
# `distfiles_exclude' is used to filter out specific items, so that even if
# they appear in `distfiles', they will not be copied in the distribution.

distfiles =                            \
  $(sources)                           \
  CMakeLists.txt                       \
  LibSBML.i                            \
  LibSBML.pm                           \
  LibSBML.pod                          \
  LibSBML.txt                          \
  LibSBML_wrap.cxx                     \
  list_of_fix.i                        \
  list_get_fix.i                       \
  local.cpp                            \
  local.i                              \
  local-layout.i                       \
  local-packages.i.in                  \
  local-downcast-extension-layout.cpp  \
  local-downcast-extension.cpp.in      \
  local-downcast-namespaces-layout.cpp \
  local-downcast-namespaces.cpp.in     \
  local-downcast-plugins-layout.cpp    \
  local-downcast-plugins.cpp.in        \
  local-downcast-packages-layout.cpp   \
  local-downcast.cpp.in                \
  Makefile.in                          \
  Makefile.PL.in                       \
  MANIFEST                             \
  README.txt                           \
  t/01__LoadModule.t                   \
  t/02__CreateDocument.t               \
  t/02__ReadFromFile.t                 \
  t/02__ReadFromFileL3.t               \
  t/02__WriteToFile.t                  \
  t/02__WriteToFileL3.t                \
  t/03__ChangeValues.t                 \
  t/03__DowncastRule.t                 \
  t/03__DowncastSBase.t                \
  t/03__DowncastSBaseL3.t              \
  t/04__ListOf.t                       \
  t/04__ListOfL3.t                     \
  t/05__AlgebraicRule.t                \
  t/05__AssignmentRule.t               \
  t/05__AssignmentRuleL3.t             \
  t/05__Compartment.t                  \
  t/05__CompartmentL3.t                \
  t/05__CompartmentVolumeRule.t        \
  t/05__EventAssignment.t              \
  t/05__Event.t                        \
  t/05__EventL3.t                      \
  t/05__Formula.t                      \
  t/05__FunctionDefinition.t           \
  t/05__KineticLaw.t                   \
  t/05__KineticLawL3.t                 \
  t/05__Model.t                        \
  t/05__ModelL3.t                      \
  t/05__ModifierSpeciesReference.t     \
  t/05__ParameterRule.t                \
  t/05__Parameter.t                    \
  t/05__ParameterL3.t                  \
  t/05__RateRule.t                     \
  t/05__SBMLDocument.t                 \
  t/05__SBMLDocumentVerbose.t          \
  t/06__TestReadSBML.t                 \
  t/06__TestReadSBMLL3.t               \
  t/06__TestWriteSBMLL3.t              \
  t/06__TestWriteSBML.t                \
  t/07__TestCVTerms.t                  \
  t/07__TestModelHistory.t             \
  t/07__TestRDFAnnotation2.t           \
  t/l1v1-branch.xml

extra_distclean = Makefile-perl Makefile-perl.old Makefile Makefile.PL \
	local-downcast-extension.i local-downcast-extension.cpp \
	local-downcast-namespaces.i local-downcast-namespaces.cpp \
	local-packages.i local-downcast-plugins.cpp local-downcast.cpp


# -----------------------------------------------------------------------------
# Primary build actions
# -----------------------------------------------------------------------------

.SUFFIXES:
.SUFFIXES: .i .cxx .o .obj

# The default action is to remake everything.

all: Makefile-perl
ifneq "$(MAKEFLAGS)" ""
	$(MAKE) -f Makefile-perl -$(MAKEFLAGS)
else
	$(MAKE) -f Makefile-perl
endif

# The Perl-created Makefile is named 'Makefile-perl'.

# -fno-strict-aliasing option is added to CXXFLAGS when using GCC.  As
# written in the SWIG Manual (section 20.2.4), SWIG generated code could
# cause crash problems when compiled by GCC with -fstrict-aliasing option
# (automatically enabled when using -O2 or higher optimization in GCC 3 or
# later) and the option should be disabled by adding -fno-strict-aliasing
# option.

ifeq (GCC,$(findstring GCC,$(shell $(CXX) --version)))
      CXXFLAGS += -fno-strict-aliasing
endif


CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)

# If the last run was made with --enable-layout and this one isn't, or
# vice-versa, the swig wrap files will be wrong for this run.  However, you
# can't tell just by looking at file mod times, so you can't use normal
# make dependencies.  So we do this grungy trick of looking inside
# libsbml_wrap.cpp to see what's inside.

ifdef USE_LAYOUT
  define check_layout
    if test ! -f LibSBML_wrap.cxx; then echo "do_reswig"; exit; fi; \
    if test -z "`grep getListOfLayouts LibSBML_wrap.cxx`"; then echo "do_reswig"; fi;
  endef
else
  define check_layout
    if test ! -f LibSBML_wrap.cxx; then echo "do_reswig"; exit; fi; \
    if test -n "`grep getListOfLayouts LibSBML_wrap.cxx`"; then echo "do_reswig"; fi;
  endef
endif

.PHONY: do_reswig

do_reswig:
ifndef USE_PERL
	@ echo "Reconfigure --with-perl in order to build the perl-bindings"
	exit 1
else
	rm -f LibSBML_wrap.cxx
endif

#
# Currently, libtool doesn't work for building Perl bindings on Cygwin.
# So, for the time being, libtool is not used on Cygwin.
#
Makefile-perl: Makefile.PL $(shell $(call check_layout))
ifndef USE_PERL
	@ echo "Reconfigure --with-perl in order to build the perl-bindings"
	exit 1
else
ifeq "$(HOST_TYPE)" "cygwin"
	$(PERL) Makefile.PL $(if $(LIB),LIB=$(LIB),) \
	CC="$(CXX)" LD="$(CXX)" CCFLAGS="$(CXXFLAGS)" MYEXTLIB="../../.libs/libsbml.a"
else
	$(PERL) Makefile.PL $(if $(LIB),LIB=$(LIB),) \
	CC="$(LIBTOOL) --mode=compile $(CXX)" CCFLAGS="$(CXXFLAGS)" \
	LD="$(TOP_SRCDIR)/config/lt_link_helper.sh $(CXX) --libdir $(LIBDIR)" \
	MYEXTLIB="../../libsbml.la"
endif
endif

Makefile.PL: Makefile.PL.in $(TOP_SRCDIR)/configure \
	     $(TOP_SRCDIR)/config/makefile-common-vars.mk
	cd $(TOP_BUILDDIR) && $(SHELL) ./config.status $(thisdir)/$@


# -----------------------------------------------------------------------------
# Checking.
# -----------------------------------------------------------------------------

check: Makefile-perl
	$(call libsbmlrun, $(MAKE) -f Makefile-perl test)


# -----------------------------------------------------------------------------
# Tags.
# -----------------------------------------------------------------------------

tags: etags ctags


# -----------------------------------------------------------------------------
# Installation.
# -----------------------------------------------------------------------------

install: Makefile.PL Makefile-perl
ifneq "$(MAKEFLAGS)" ""
	$(MAKE) -f Makefile-perl -$(MAKEFLAGS) pure_install
else
	$(MAKE) -f Makefile-perl pure_install
endif

installcheck:

uninstall:
ifneq "$(MAKEFLAGS)" ""
	$(MAKE) -f Makefile-perl -$(MAKEFLAGS) myuninstall
else
	$(MAKE) -f Makefile-perl myuninstall
endif


# -----------------------------------------------------------------------------
# Cleaning.
# -----------------------------------------------------------------------------

clean: Makefile-perl
ifneq "$(MAKEFLAGS)" ""
	$(MAKE) -f Makefile-perl -$(MAKEFLAGS) clean
else
	$(MAKE) -f Makefile-perl clean
endif

distclean: Makefile-perl distclean-normal

mostlyclean: 

maintainer-clean: 


# -----------------------------------------------------------------------------
# Creating distribution (for libSBML maintainers only)
# -----------------------------------------------------------------------------

dist: LibSBML_wrap.cxx dist-normal

distcheck: distcheck-normal


# -----------------------------------------------------------------------------
# Miscellaneous
# -----------------------------------------------------------------------------

include @top_srcdir@/config/makefile-common-actions.mk


# -----------------------------------------------------------------------------
# End.
# -----------------------------------------------------------------------------