## @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/c/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. # The values of the following variables are obtained using the libSBML # configuration program. SRCDIR = ../../src INCLUDEDIR = ../../include CC = @CC@ CFLAGS = @CFLAGS@ -Wall LIBS = -lsbml # If you are presently reading Makefile and not Makefile.in, the following # lists may have empty values. This is okay; it's merely a result of how # the values are obtained when Makefile is generated from Makefile.in # by the ../../configure program. CPPFLAGS += @EXPAT_CPPFLAGS@ @XERCES_CPPFLAGS@ @LIBXML_CPPFLAGS@ LDFLAGS += @EXPAT_LDFLAGS@ @XERCES_LDFLAGS@ @LIBXML_LDFLAGS@ LIBS += @EXPAT_LIBS@ @XERCES_LIBS@ @LIBXML_LIBS@ CPPFLAGS += -I$(INCLUDEDIR) LDFLAGS += -L$(SRCDIR) LIBS += -lstdc++ -lm # The rest of this Makefile remains static regardless of the values # assigned to the variables above. programs = convertSBML evaluateMath echoSBML printMath printSBML \ readSBML translateMath validateSBML all: $(programs) convertSBML: convertSBML.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) drawMath: drawMath.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) echoSBML: echoSBML.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) -lm evaluateMath: evaluateMath.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) -lm printMath: printMath.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) -lm printSBML: printSBML.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) readSBML: readSBML.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) translateMath: translateMath.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) validateSBML: validateSBML.c util.c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) clean: /bin/rm -f *~ $(programs) $(patsubst %,%.exe,$(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: