## @configure_input@ ## ## Filename : Makefile ## Description : Builds the example programs ## Author(s) : SBML Team ## Created : 2002-12-05 ## Revision : $Id: Makefile.in 8704 2009-01-04 02:26:05Z mhucka $ ## $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/examples/layout/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: ## ## Ben Bornstein ## SBML Team ## Control and Dynamical Systems, MC 107-81 ## California Institute of Technology ## Pasadena, CA, 91125, USA ## ## http://www.sbml.org ## mailto:sbml-team@caltech.edu ## ## Contributor(s): ## Created the Makefile.in version of this file. # ----------------------------------------------------------------------------- # 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 ../../config/makefile-common-vars.mk # The values of the following variables are obtained using the libSBML # configuration program. SRCDIR = ../../src INCLUDEDIR = ../../include CXX = @CXX@ CXXFLAGS = @CXXFLAGS@ -Wall extra_CPPFLAGS = -I.. -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\" -I$(INCLUDEDIR) LIBS=-lsbml -L$(SRCDIR) 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 # The rest of this Makefile remains static regardless of the values # assigned to the variables above. programs = example1 example2 example3 all: $(programs) example1: example1.cpp $(CXX) $(extra_CPPFLAGS) $(extra_LDFLAGS) -o $@ $^ $(extra_LIBS) $(LIBS) example2: example2.cpp $(CXX) $(extra_CPPFLAGS) $(extra_LDFLAGS) -o $@ $^ $(extra_LIBS) $(LIBS) example3: example3.cpp $(CXX) $(extra_CPPFLAGS) $(extra_LDFLAGS) -o $@ $^ $(extra_LIBS) $(LIBS) clean: /bin/rm -f $(programs) *~ distclean: clean /bin/rm Makefile # The following are generic 'make' targets that are not used in # this simple examples directory. check dist docs install install-docs uninstall \ mostlyclean maintainer-clean installcheck dvi pdf ps info html \ distcheck: