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 136 137 138 139 140 141 142
|
# -----------------------------------------------------------------
# $Revision: 1.10 $
# $Date: 2005/06/20 17:24:15 $
# -----------------------------------------------------------------
# Programmer(s): Radu Serban and Aaron Collier @ LLNL
# -----------------------------------------------------------------
# Copyright (c) 2002, The Regents of the University of California.
# Produced at the Lawrence Livermore National Laboratory.
# All rights reserved.
# For details, see sundials/shared/LICENSE.
# -----------------------------------------------------------------
# Main Makefile for SUNDIALS suite
#
# @configure_input@
# -----------------------------------------------------------------
SHELL = @SHELL@
@SET_MAKE@
srcdir = @srcdir@
abs_builddir = @abs_builddir@
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
MODULES = @MODULES@
NVEC_MODULES = @NVEC_MODULES@
EXAMPLE_MODULES = @EXAMPLE_MODULES@
COMPONENTS = $(NVEC_MODULES) $(MODULES)
EXAMPLES = $(EXAMPLE_MODULES)
FGREP = @FGREP@
INSTALL = @INSTALL@
CP_FILE = @INSTALL_DATA@
all:
@for i in ${COMPONENTS} ; do \
if test -d $${i} ; then \
echo "Making $${i}..." ; \
cd $${i} ; \
${MAKE} ; \
cd ${abs_builddir} ; \
echo "" ; \
fi ; \
done
install:
@for i in ${COMPONENTS} ; do \
if test -d $${i} ; then \
echo "Installing $${i}..." ; \
cd $${i} ; \
${MAKE} install ; \
cd ${abs_builddir} ; \
echo "" ; \
fi ; \
done
clean:
@for i in ${COMPONENTS} ; do \
if test -d $${i} ; then \
cd $${i} ; \
${MAKE} clean ; \
cd ${abs_builddir} ; \
fi ; \
done
examples:
@if test "X${EXAMPLES}" = "Xno" ; then \
echo "Examples were NOT configured" ; \
echo "Rerun configure with --enable-examples" ; \
else \
for i in ${EXAMPLES} ; do \
if test -d $${i} ; then \
echo "Making examples in $${i}..." ; \
cd $${i} ; \
${MAKE} ; \
cd ${abs_builddir} ; \
echo "" ; \
fi ; \
done ; \
fi
examples_clean:
@if test "X${EXAMPLES}" = "Xno" ; then \
: ; \
else \
for i in ${EXAMPLES} ; do \
if test -d $${i} ; then \
cd $${i} ; \
${MAKE} clean ; \
cd ${abs_builddir} ; \
fi ; \
done ; \
fi
examples_uninstall:
@if test "X${EXAMPLES}" = "Xno" ; then \
: ; \
else \
for i in ${EXAMPLES} ; do \
if test -d $${i} ; then \
cd $${i} ; \
${MAKE} uninstall ; \
cd ${abs_builddir} ; \
fi ; \
done ; \
fi
distclean: clean examples_clean
@for i in ${COMPONENTS} ; do \
if test -d $${i} ; then \
rm -f $${i}/Makefile ; \
fi ; \
done
@if test "X${EXAMPLES}" = "Xno" ; then \
: ; \
else \
for i in ${EXAMPLES} ; do \
if test -d $${i} ; then \
rm -f $${i}/Makefile ; \
fi ; \
done ; \
fi
@rm -f config.log ; \
rm -f config.status ; \
rm -f config.cache ; \
rm -f config.h \
rm -f config/sundials_config.h ; \
rm -f config/fortran_update.sh ; \
rm -f Makefile
uninstall: examples_uninstall
@for i in ${COMPONENTS} ; do \
if test -d $${i} ; then \
cd $${i} ; \
${MAKE} uninstall ; \
cd ${abs_builddir} ; \
fi ; \
done
|