## @configure_input@ ## ## Filename : Makefile.in ## Description : Makefile template for libsbml src/math/test ## Author(s) : Michael Hucka ## Organization: California Institute of Technology ## Created : 2005-03-02 ## Revision : $Id: Makefile.in 8704 2009-01-04 02:26:05Z mhucka $ ## $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/math/test/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. A copy of the license agreement is ## provided in the file named "LICENSE.txt" included with this software ## distribution. It is also available online at ## http://sbml.org/software/libsbml/license.html ## ## 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. ## # ----------------------------------------------------------------------------- # 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/math/test # Variables `headers', `sources', `libraries', `extra_CPPFLAGS', # `extra_CXXFLAGS', `extra_LDFLAGS' and `distfiles' are used by the default # rules in `makefile-common-actions.mk' included at the end. test_sources = \ TestASTNode.c \ TestFormulaFormatter.c \ TestFormulaParser.c \ TestFormulaTokenizer.c \ TestReadMathML.cpp \ TestWriteMathML.cpp \ TestReadFromFile1.cpp \ TestReadFromFile2.cpp \ TestRunner.c extra_CPPFLAGS = -I.. -I../.. ifdef USE_LIBCHECK check_driver = TestRunner ifeq "$(findstring $(LIBCHECK_CPPFLAGS),$(extra_CPPFLAGS))" "" extra_CPPFLAGS += $(LIBCHECK_CPPFLAGS) endif ifeq "$(findstring $(LIBCHECK_LDFLAGS),$(extra_LDFLAGS))" "" extra_LDFLAGS += $(LIBCHECK_LDFLAGS) endif ifeq "$(findstring $(LIBCHECK_LIBS),$(extra_LIBS))" "" extra_LIBS += $(LIBCHECK_LIBS) endif extra_clean += $(check_driver) endif ifdef USE_EXPAT extra_CPPFLAGS += $(EXPAT_CPPFLAGS) extra_LDFLAGS += $(EXPAT_LDFLAGS) extra_LIBS += $(EXPAT_LIBS) endif ifdef USE_XERCES extra_CPPFLAGS += $(XERCES_CPPFLAGS) extra_LDFLAGS += $(XERCES_LDFLAGS) extra_LIBS += $(XERCES_LIBS) endif ifdef USE_LIBXML extra_CPPFLAGS += $(LIBXML_CPPFLAGS) extra_LDFLAGS += $(LIBXML_LDFLAGS) extra_LIBS += $(LIBXML_LIBS) endif # `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. test_data_files = $(wildcard test-data/*.xml) distfiles = $(test_sources) $(test_data_files) Makefile.in # ----------------------------------------------------------------------------- # Primary build actions # ----------------------------------------------------------------------------- # The default action is to do nothing except maybe remake the Makefile. The # real actions are triggered by 'make check'. all: Makefile # ----------------------------------------------------------------------------- # Checking. # ----------------------------------------------------------------------------- # Variables $(test_objfiles), $(check_driver), and the rest of the code # for running check are abstracted out into makefile-common-actions.mk, # which is included at the bottom of this file. Here we just need to construct # the appropriate list of object files to link together. Because there are # dependencies on other subdirectoris of the source tree, we do some rummaging # around in .. and ../../subdirs. tmp = $(test_sources:.cpp=.$(OBJEXT)) $(test_sources:.c=.$(OBJEXT)) localobjfiles = $(filter %.$(OBJEXT),$(tmp)) otherdirs = .. ../../util ../../xml ../../sbml ../../annotation \ ../../validator ../../validator/constraints ../../units ../../compress \ ../../common ifdef USE_LAYOUT otherdirs += ../../sbml/layout endif otherobjfiles = $(wildcard $(addsuffix /*.$(OBJEXT),$(otherdirs))) test_objfiles = $(localobjfiles) $(otherobjfiles) ifdef USE_LIBCHECK check: all run-checks else check:; @echo Please first rerun 'configure' with the --with-check flag; exit 1 endif # ----------------------------------------------------------------------------- # Installation # ----------------------------------------------------------------------------- # This library doesn't actually get installed. The main libsbml library # (in ../src) slurps in the contents when it's built. install: uninstall: installcheck: # ----------------------------------------------------------------------------- # Cleaning. # ----------------------------------------------------------------------------- clean: clean-normal distclean: distclean-normal mostlyclean: mostlyclean-normal maintainer-clean: maintainer-clean-normal # ----------------------------------------------------------------------------- # Creating distribution (for libSBML maintainers only) # ----------------------------------------------------------------------------- dist: all dist-normal distcheck: all distcheck-normal # ----------------------------------------------------------------------------- # Miscellaneous # ----------------------------------------------------------------------------- include @top_srcdir@/config/makefile-common-actions.mk # ----------------------------------------------------------------------------- # End. # -----------------------------------------------------------------------------