-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmake.inc
155 lines (138 loc) · 5.82 KB
/
make.inc
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
143
144
145
146
147
148
149
150
151
152
153
154
155
# vim: syntax=make:tw=0:noexpandtab
#
# Some general things everyone needs.
# Set some variables.
CPP = @CPP@
AM_CPPFLAGS = @AM_CPPFLAGS@
# Fix for bug in autoconf-2.59
builddir = .
LDADD_MODULES = $(top_builddir)/Modules/libfreeonmodules.la
# On filesystems which are case-insensitive (which really means HFS+ on OS X)
# we can not preprocess into a filename that differs by the case only, i.e. .C
# -> .c.
PREPROCESSED_SUFFIX = -preprocessed
# For cleanup.
CLEANFILES = \
*.mod \
*$(PREPROCESSED_SUFFIX).f \
*$(PREPROCESSED_SUFFIX).f90 \
*$(PREPROCESSED_SUFFIX).c \
*~
# Dependency check (only for debugging).
depcheck-bin :
for i in $(SOURCES_DEPCHECK); do \
echo "********************************** cleaning **********************************"; \
$(MAKE) clean; \
echo "********************************** verifying `echo $$i | sed -e "s/[.][^.]\+$$//"` **********************************"; \
$(MAKE) `echo $$i | sed -e "s/[.][^.]\+$$//"`.o || exit 1; \
done
@echo "********************************** done checking, rebuilding **********************************"
$(MAKE) clean
$(MAKE)
@echo "********************************** done checking **********************************"
depcheck-lib :
for i in $(SOURCES_DEPCHECK); do \
echo "********************************** cleaning **********************************"; \
$(MAKE) clean; \
echo "********************************** verifying `echo $$i | sed -e "s/[.][^.]\+$$//"` **********************************"; \
$(MAKE) `echo $$i | sed -e "s/[.][^.]\+$$//"`.lo || exit 1; \
done
@echo "********************************** done checking, rebuilding **********************************"
$(MAKE) clean
$(MAKE)
@echo "********************************** done checking **********************************"
CPP_COMMAND = $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(FORTRAN_CPPFLAGS) $(CPPFLAGS) $(CPPMISC)
CONFIGURE_CFLAGS = @CONFIGURE_CFLAGS@
CONFIGURE_FFLAGS = @CONFIGURE_FFLAGS@
CONFIGURE_FCFLAGS = @CONFIGURE_FCFLAGS@
AM_CFLAGS = $(CONFIGURE_CFLAGS) $(EXTRA_INCLUDES)
AM_FFLAGS = $(CONFIGURE_FFLAGS) $(FORTRAN_DEFAULT_INCLUDES) $(DEFAULT_INCLUDES) $(EXTRA_INCLUDES)
AM_FCFLAGS = $(CONFIGURE_FCFLAGS) $(FORTRAN_DEFAULT_INCLUDES) $(DEFAULT_INCLUDES) $(EXTRA_INCLUDES)
if USE_COMPILER_OPTIMIZATIONS
AM_CFLAGS += $(OPTIMIZATION_FLAGS)
AM_FFLAGS += $(OPTIMIZATION_FLAGS)
AM_FCFLAGS += $(OPTIMIZATION_FLAGS)
endif
# Whether we should keep or remove preprocessed files.
REMOVE_PREPROCESSED_FILES = @REMOVE_PREPROCESSED_FILES@
# Turn off output of libtool.
AM_LIBTOOLFLAGS = --silent
if USE_DYNAMIC_LINKING
LIBRARY_DEPENDENCY_FILES =
else
LIBRARY_DEPENDENCY_FILES = $(LIBRARY_DEPENDENCY_FILES_LIBS)
endif
LIBRARY_DEPENDENCY_FILES_MODS = \
$(top_builddir)/Modules/ainv.mod \
$(top_builddir)/Modules/annealmap.mod \
$(top_builddir)/Modules/atompairs.mod \
$(top_builddir)/Modules/basissetparameters.mod \
$(top_builddir)/Modules/boundingbox.mod \
$(top_builddir)/Modules/brabloks.mod \
$(top_builddir)/Modules/pbc.mod \
$(top_builddir)/Modules/cholfactor.mod \
$(top_builddir)/Modules/clock.mod \
$(top_builddir)/Modules/common_debug.mod \
$(top_builddir)/Modules/derivedtypes.mod \
$(top_builddir)/Modules/erffunk.mod \
$(top_builddir)/Modules/fastmatrices.mod \
$(top_builddir)/Modules/functionals.mod \
$(top_builddir)/Modules/gammaassymp.mod \
$(top_builddir)/Modules/gammaf0.mod \
$(top_builddir)/Modules/gammaf1.mod \
$(top_builddir)/Modules/gammaf10.mod \
$(top_builddir)/Modules/gammaf11.mod \
$(top_builddir)/Modules/gammaf12.mod \
$(top_builddir)/Modules/gammaf13.mod \
$(top_builddir)/Modules/gammaf2.mod \
$(top_builddir)/Modules/gammaf3.mod \
$(top_builddir)/Modules/gammaf4.mod \
$(top_builddir)/Modules/gammaf5.mod \
$(top_builddir)/Modules/gammaf6.mod \
$(top_builddir)/Modules/gammaf7.mod \
$(top_builddir)/Modules/gammaf8.mod \
$(top_builddir)/Modules/gammaf9.mod \
$(top_builddir)/Modules/gammafunctions.mod \
$(top_builddir)/Modules/globalcharacters.mod \
$(top_builddir)/Modules/globalobjects.mod \
$(top_builddir)/Modules/globalscalars.mod \
$(top_builddir)/Modules/indexing.mod \
$(top_builddir)/Modules/inout.mod \
$(top_builddir)/Modules/invexp.mod \
$(top_builddir)/Modules/linalg.mod \
$(top_builddir)/Modules/macros.mod \
$(top_builddir)/Modules/matfunk.mod \
$(top_builddir)/Modules/mcmurchie.mod \
$(top_builddir)/Modules/mechanics.mod \
$(top_builddir)/Modules/memman.mod \
$(top_builddir)/Modules/mondologger.mod \
$(top_builddir)/Modules/mondompi.mod \
$(top_builddir)/Modules/mpiinclude.mod \
$(top_builddir)/Modules/opt_trav_band.mod \
$(top_builddir)/Modules/order.mod \
$(top_builddir)/Modules/parse.mod \
$(top_builddir)/Modules/parsingconstants.mod \
$(top_builddir)/Modules/prettyprint.mod \
$(top_builddir)/Modules/processcontrol.mod \
$(top_builddir)/Modules/setxyz.mod \
$(top_builddir)/Modules/slatec.mod \
$(top_builddir)/Modules/specfun.mod \
$(top_builddir)/Modules/specfunmesh.mod \
$(top_builddir)/Modules/thresholding.mod \
$(top_builddir)/Modules/utilities.mod
LIBRARY_DEPENDENCY_FILES_LIBS = \
$(LDADD_MODULES)
$(top_builddir)/MondoLocalVersion.h : $(top_builddir)/config_localversion.h
@echo "checking MondoLocalVersion.h"
@grep LOCAL_VERSION $(top_builddir)/config_localversion.h > $(top_builddir)/tempconf
@if test ! -f $(top_builddir)/MondoLocalVersion.h; then \
mv -f $(top_builddir)/tempconf $(top_builddir)/MondoLocalVersion.h; \
echo "MondoLocalVersion.h did not exist"; \
elif (diff -u $(top_builddir)/MondoLocalVersion.h $(top_builddir)/tempconf > $(top_builddir)/MondoLocalVersion.diff); then \
rm -f $(top_builddir)/tempconf; \
echo "MondoLocalVersion.h unchanged"; \
else \
mv -f $(top_builddir)/tempconf $(top_builddir)/MondoLocalVersion.h; \
echo "MondoLocalVersion.h updated"; \
cat $(top_builddir)/MondoLocalVersion.diff; \
fi