1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
#$Id: Makefile.template $ -*- Makefile -*-
# Copyright (C) 2001 Albert Davis
# Author: Albert Davis <aldavis@gnu.org>
#
# This file is part of "Gnucap", the Gnu Circuit Analysis Package
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program 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. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#------------------------------------------------------------------------
# In most cases you can just type "make" to build it.
# Generally, you will want "make your-system".
# Look in this file for the choices.
# If yours is not here, look for a similar one and copy.
# The special configurations listed here allow you to do multiple builds
# from the same source directory, and patch some problems.
#-----------------------------------------------------------------------------
# The default is to use the makefile built by "configure"
default: nothing
mkdir -p O
cat Make1 Make2 ../Make3 Make.depend >O/Makefile
(cd O; ${MAKE} -k)
#-----------------------------------------------------------------------------
# The most common configuration is g++
# This should work if it is properly installed
# and has the proper libraries and headers.
# It is optimized for speed. Debugging is off.
g++: nothing
mkdir -p O
cat Make1 Make2.g++ ../Make3 Make.depend >O/Makefile
(cd O; ${MAKE} -k)
#-----------------------------------------------------------------------------
# This one makes a "debug" build ...
# Asserts and some tracing is turned on.
# It prints a trace when "untested" code is exercised.
# "Untested" means the regressions don't test it.
# It doesn't mean TOTALLY untested.
debug: nothing
mkdir -p O-DEBUG
cat Make1 Make2.Debug ../Make3 Make.depend >O-DEBUG/Makefile
(cd O-DEBUG; ${MAKE} -k)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# MS Windows using mingw32
mingw: nothing
mkdir -p MSW
cat Make1 Make2.mingw32 ../Make3 Make.depend >MSW/Makefile
(cd MSW; ${MAKE} -k)
#-----------------------------------------------------------------------------
tags: nothing
cat Make1 Make2 ../Make3 >Make.aux
(${MAKE} tags -f Make.aux)
#-----------------------------------------------------------------------------
depend: nothing
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux depend
#-----------------------------------------------------------------------------
checkin: nothing
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux checkin
#-----------------------------------------------------------------------------
checkout: nothing
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux checkout
#-----------------------------------------------------------------------------
install: nothing
${MAKE} default
(cd O; ${MAKE} install)
#-----------------------------------------------------------------------------
install-debug: nothing
${MAKE} debug
(cd O-DEBUG; ${MAKE} install)
#-----------------------------------------------------------------------------
uninstall: nothing
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux uninstall
#-----------------------------------------------------------------------------
# Note that the /usr/local directory is overwritten by configure.
not_install: nothing
if test -d /usr/local/bin; then \
cp O/gnucap /usr/local/bin/gnucap; \
else \
mkdir -p /usr/local/bin && \
cp O/gnucap /usr/local/bin/gnucap; \
fi
#-----------------------------------------------------------------------------
not_uninstall: clean
-rm /usr/local/bin/gnucap
#-----------------------------------------------------------------------------
unconfig:
rm -f Makefile
#-----------------------------------------------------------------------------
date: nothing
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux date
#-----------------------------------------------------------------------------
header-check:
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux header-check
#-----------------------------------------------------------------------------
manifest:
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux manifest
#-----------------------------------------------------------------------------
md5sums:
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux md5sums
#-----------------------------------------------------------------------------
mostlyclean:
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux mostlyclean
clean:
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux clean
distclean:
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux distclean
maintainer-clean:
cat Make1 Make2 ../Make3 >Make.aux
${MAKE} -f Make.aux maintainer-clean
#-----------------------------------------------------------------------------
nothing:
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
|