-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
139 lines (123 loc) · 5.26 KB
/
Makefile.in
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
# -----------------------------------------------------------------
# $Revision: 1.17 $
# $Date: 2012/04/06 22:24:37 $
# -----------------------------------------------------------------
# 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 the LICENSE file.
# -----------------------------------------------------------------
# Main Makefile for SUNDIALS suite
#
# @configure_input@
# -----------------------------------------------------------------
SHELL = @SHELL@
@SET_MAKE@
srcdir = @srcdir@
builddir = @builddir@
abs_builddir = @abs_builddir@
top_builddir = @builddir@
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
bindir = @bindir@
INSTALL = @INSTALL@
INSTALL_PROG = @INSTALL_PROGRAM@
SLV_MODULES = @SLV_MODULES@
EXS_MODULES = @EXS_MODULES@
ALL_MODULES = @SLV_MODULES@ @EXS_MODULES@
EXS_INSTDIR = @EXS_INSTDIR@
top_srcdir = $(srcdir)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
# -----------------------------------------------------------------
all:
@for i in ${ALL_MODULES} ; do \
if test -d $${i} ; then \
echo "----------------------"; \
echo "Make $${i}..." ; \
echo "----------------------"; \
cd $${i} ; \
${MAKE} ; \
cd ${abs_builddir} ; \
echo "" ; \
fi ; \
done
install:
$(mkinstalldirs) $(bindir)
$(INSTALL_PROG) $(top_builddir)/bin/sundials-config $(bindir)/
@if test -f $(top_builddir)/bin/fortran-update.sh ; then \
$(INSTALL_PROG) $(top_builddir)/bin/fortran-update.sh $(bindir)/ ;\
fi
@for i in ${SLV_MODULES} ; do \
if test -d $${i} ; then \
echo "----------------------"; \
echo "Install $${i}..." ; \
echo "----------------------"; \
cd $${i} ; \
${MAKE} install ; \
cd ${abs_builddir} ; \
echo "" ; \
fi ; \
done
@if test "X${EXS_MODULES}" = "X" ; then \
: ; \
else \
if test "X${EXS_INSTDIR}" = "Xno"; then \
echo "" ; \
echo "" ; \
echo "Examples were built but installation was disabled." ; \
echo "" ; \
echo "" ; \
else \
for i in "${EXS_MODULES}" ; do \
echo "----------------------"; \
echo "Install $${i}..." ; \
echo "----------------------"; \
cd $${i} ; \
${MAKE} install ; \
cd ${abs_builddir} ; \
echo "" ; \
done ; \
fi ; \
fi
clean:
@for i in ${ALL_MODULES} ; do \
if test -d $${i} ; then \
cd $${i} ; \
${MAKE} clean ; \
cd ${abs_builddir} ; \
fi ; \
done
uninstall:
rm -f $(bindir)/sundials-config
rm -f $(bindir)/fortran-update.sh
@for i in ${ALL_MODULES} ; do \
if test -d $${i} ; then \
echo "----------------------"; \
echo "Uninstall $${i}..." ; \
echo "----------------------"; \
cd $${i} ; \
${MAKE} uninstall ; \
cd ${abs_builddir} ; \
fi ; \
done
# ---------------------------------------------------------------------
distclean:
@for i in ${ALL_MODULES} ; do \
if test -d $${i} ; then \
cd $${i}; \
${MAKE} distclean; \
cd ${abs_builddir} ; \
fi ; \
done
rm -f $(top_builddir)/config.log
rm -f $(top_builddir)/config.status
rm -f $(top_builddir)/config.cache
rm -f $(top_builddir)/config.h
rm -f $(top_builddir)/libtool
rm -f $(top_builddir)/bin/sundials-config
rm -f $(top_builddir)/bin/fortran-update.sh
rm -f Makefile