1## @configure_input@ 2## 3## Filename : Makefile.in 4## Description : Makefile template for libsbml main sources 5## Author(s) : SBML Team <sbml-team@googlegroups.com> 6## Organization: California Institute of Technology 7## Created : 2004-06-11 8## 9## <!-------------------------------------------------------------------------- 10## This file is part of libSBML. Please visit http://sbml.org for more 11## information about SBML, and the latest version of libSBML. 12## 13## Copyright (C) 2020 jointly by the following organizations: 14## 1. California Institute of Technology, Pasadena, CA, USA 15## 2. University of Heidelberg, Heidelberg, Germany 16## 3. University College London, London, UK 17## 18## Copyright (C) 2013-2018 jointly by the following organizations: 19## 1. California Institute of Technology, Pasadena, CA, USA 20## 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK 21## 3. University of Heidelberg, Heidelberg, Germany 22## 23## Copyright (C) 2009-2013 jointly by the following organizations: 24## 1. California Institute of Technology, Pasadena, CA, USA 25## 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK 26## 27## Copyright (C) 2006-2008 by the California Institute of Technology, 28## Pasadena, CA, USA 29## 30## Copyright (C) 2002-2005 jointly by the following organizations: 31## 1. California Institute of Technology, Pasadena, CA, USA 32## 2. Japan Science and Technology Agency, Japan 33## 34## This library is free software; you can redistribute it and/or modify it 35## under the terms of the GNU Lesser General Public License as published by 36## the Free Software Foundation. A copy of the license agreement is provided 37## in the file named "LICENSE.txt" included with this software distribution 38## and also available online as http://sbml.org/software/libsbml/license.html 39## ------------------------------------------------------------------------ --> 40 41 42# ----------------------------------------------------------------------------- 43# Configuration variables 44# ----------------------------------------------------------------------------- 45# Some of the following are substituted automatically by `configure'. If 46# you are looking at "Makefile", do not edit these values; instead, run the 47# configure script at the top level of the src tree. It will recreate 48# "Makefile". 49 50include @top_srcdir@/config/makefile-common-vars.mk 51 52# `srcdir' points to the current directory, but should be set by configure. 53# `subdir' must be set manually to the relative dir under `srcdir'. Don't 54# set `subdir' to an absolute path, or some `make' actions will fail. 55 56srcdir = @srcdir@ 57thisdir = src/sbml/units 58 59# Variables `headers', `sources', `libraries', `extra_CPPFLAGS', 60# `extra_CXXFLAGS', `extra_LDFLAGS' and `distfiles' are used by the default 61# rules in `makefile-common-actions.mk' included at the end. 62 63headers = \ 64 UnitFormulaFormatter.h \ 65 FormulaUnitsData.h \ 66 UnitKindList.h 67 68header_inst_prefix = units 69 70sources = \ 71 UnitFormulaFormatter.cpp \ 72 FormulaUnitsData.cpp \ 73 UnitKindList.cpp 74 75# Variables `subdirs', `headers', `sources', `libraries', `extra_CPPFLAGS', 76# `extra_CXXFLAGS', `extra_LDFLAGS' and `distfiles' are used by the default 77# rules in `makefile-common-actions.mk' included at the end. 78 79ifdef USE_EXPAT 80 extra_CPPFLAGS += $(EXPAT_CPPFLAGS) 81 extra_LDFLAGS += $(EXPAT_LDFLAGS) 82 extra_LIBS += $(EXPAT_LIBS) 83endif 84 85ifdef USE_XERCES 86 extra_CPPFLAGS += $(XERCES_CPPFLAGS) 87 extra_LDFLAGS += $(XERCES_LDFLAGS) 88 extra_LIBS += $(XERCES_LIBS) 89endif 90 91ifdef USE_LIBXML 92 extra_CPPFLAGS += $(LIBXML_CPPFLAGS) 93 extra_LDFLAGS += $(LIBXML_LDFLAGS) 94 extra_LIBS += $(LIBXML_LIBS) 95endif 96 97subdirs = test 98 99# `distfiles' determines the files and directories included in a distribution. 100# `distfiles_exclude' is used to filter out specific items, so that even if 101# they appear in `distfiles', they will not be copied in the distribution. 102 103distfiles = $(sources) $(headers) Makefile.in 104 105 106# ----------------------------------------------------------------------------- 107# Primary build actions 108# ----------------------------------------------------------------------------- 109 110# The default action is to remake everything. Those rules which are not 111# defined below are defined in makefile-common-actions.mk. 112 113all: Makefile default 114 115 116# ----------------------------------------------------------------------------- 117# Checking. 118# ----------------------------------------------------------------------------- 119 120check: check-recursive 121 122 123# ----------------------------------------------------------------------------- 124# Tags. 125# ----------------------------------------------------------------------------- 126 127tags: etags ctags 128 129 130# ----------------------------------------------------------------------------- 131# Installation 132# ----------------------------------------------------------------------------- 133 134# This doesn't actually get installed as a library. The main libsbml library 135# (in ../sbml) slurps in the object files when it's built. Here we just put 136# in 'all' as a default to make sure files get compiled if someone does 137# 'make install' from the top level without first doing a 'make'. 138 139install: all install-headers 140 141installcheck: all installcheck-headers 142 143uninstall: uninstall-headers 144 145 146# ----------------------------------------------------------------------------- 147# Cleaning. 148# ----------------------------------------------------------------------------- 149 150clean: clean-normal clean-recursive 151 152distclean: distclean-normal distclean-recursive 153 154mostlyclean: mostlyclean-normal mostlyclean-recursive 155 156maintainer-clean: maintainer-clean-normal maintainer-clean-recursive 157 158 159# ----------------------------------------------------------------------------- 160# Creating distribution (for libSBML maintainers only) 161# ----------------------------------------------------------------------------- 162 163dist: all dist-normal dist-recursive 164 165distcheck: all distcheck-normal distcheck-recursive 166 167 168# ----------------------------------------------------------------------------- 169# Miscellaneous 170# ----------------------------------------------------------------------------- 171 172include @top_srcdir@/config/makefile-common-actions.mk 173 174 175# ----------------------------------------------------------------------------- 176# End. 177# ----------------------------------------------------------------------------- 178 179