## @configure_input@ ## ## \file Makefile.in ## \brief Makefile template for libSBML Perl bindings ## \author Mike Hucka ## ## $Id: Makefile.in 9850 2009-07-18 10:33:19Z ajouraku $ ## $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/bindings/perl/Makefile.in $ ## ## 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 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) \ LibSBML.i \ LibSBML.pm \ LibSBML.pod \ LibSBML.txt \ LibSBML_wrap.cxx \ list_of_fix.i \ list_get_fix.i \ local.cpp \ local.i \ Makefile.in \ Makefile.PL.in \ MANIFEST \ README.txt \ t/01__LoadModule.t \ t/02__CreateDocument.t \ t/02__ReadFromFile.t \ t/02__WriteToFile.t \ t/03__ChangeValues.t \ t/03__DowncastRule.t \ t/03__DowncastSBase.t \ t/04__ListOf.t \ t/05__AlgebraicRule.t \ t/05__AssignmentRule.t \ t/05__Compartment.t \ t/05__CompartmentVolumeRule.t \ t/05__EventAssignment.t \ t/05__Event.t \ t/05__Formula.t \ t/05__FunctionDefinition.t \ t/05__KineticLaw.t \ t/05__Model.t \ t/05__ModifierSpeciesReference.t \ t/05__ParameterRule.t \ t/05__Parameter.t \ t/05__RateRule.t \ t/05__SBMLDocument.t \ t/05__SBMLDocumentVerbose.t \ t/06__TestReadSBML.t \ t/06__TestWriteSBML.t \ t/l1v1-branch.xml extra_distclean = Makefile-perl Makefile-perl.old # ----------------------------------------------------------------------------- # Primary build actions # ----------------------------------------------------------------------------- .SUFFIXES: .SUFFIXES: .i .cxx .o .obj # The default action is to remake everything. all: Makefile-perl $(MAKE) -f Makefile-perl # The Perl-created Makefile is named 'Makefile-perl'. Makefile-perl: Makefile.PL ifndef USE_PERL @ echo "Reconfigure --with-perl in order to build the perl-bindings" exit 1 else $(PERL) Makefile.PL $(if $(LIB),LIB=$(LIB),) # The following perl commands add missing -lstdc++ option to EXTRALIBS and # LDLOADLIBS in Makefile-perl. # ExtUtil::Makemaker may ignore -lstdc++ option in some environments (e.g. MacOSX, cygwin) # even if corresponding standard c++ library exists. ifdef USE_SUN_CC perl -pi -e 's|(^EXTRALIBS.*)|\1 -lCstd| if (/^EXTRALIBS/ and !/\-lCstd/)' Makefile-perl perl -pi -e 's|(^LDLOADLIBS.*)|\1 -lCstd| if (/^LDLOADLIBS/ and !/\-lCstd/);' Makefile-perl else perl -pi -e 's|(^EXTRALIBS.*)|\1 -lstdc++| if (/^EXTRALIBS/ and !/\-lstdc\+\+/)' Makefile-perl perl -pi -e 's|(^LDLOADLIBS.*)|\1 -lstdc++| if (/^LDLOADLIBS/ and !/\-lstdc\+\+/);' Makefile-perl 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 $(MAKE) -f Makefile-perl pure_install installcheck: uninstall: $(MAKE) -f Makefile-perl myuninstall # ----------------------------------------------------------------------------- # Cleaning. # ----------------------------------------------------------------------------- clean: Makefile-perl $(MAKE) -f Makefile-perl clean 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. # -----------------------------------------------------------------------------