-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.in
102 lines (85 loc) · 2.72 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
# @configure_input@
# Package-related substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
# Prefix-related substitution variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
# Tool-related substitution variables
FC = @FC@
DEFS = @DEFS@
LIBS = @LIBS@
FCFLAGS = @FCFLAGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM= @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
# VPATH-related substitution variables
top_builddir = @top_builddir@
builddir = @builddir@
srcdir = @srcdir@
VPATH = @srcdir@
# Fireball substitution variables
THEORY = @THEORY@
METHOD = @METHOD@
XC = @XC@
OPENMP = @OPENMP@
MPI = @MPI@
DEBUG = @DEBUG@
MODE = @MODE@
MACHINE = @MACHINE@
COMPILER = @COMPILER@
LINALG = @LINALG@
all:
$(MAKE) -C src create.x
clean check install uninstall:
$(MAKE) -C src $@
cleanall:
$(MAKE) -C src $@
distclean: cleanall
rm -rf Makefile
rm -rf src/Makefile
rm -rf src/*/Makefile
rm -rf $(distdir).tar.gz
dist: $(distdir).tar.gz
$(distdir).tar.gz: FORCE $(distdir)
tar chof - $(distdir) | gzip -9 -c >$(distdir).tar.gz
rm -rf $(distdir)
$(distdir):
mkdir -p $(distdir)/src
cp $(srcdir)/configure $(distdir)
cp $(srcdir)/config.h.in $(distdir)
cp $(srcdir)/install-sh $(distdir)
cp $(srcdir)/Makefile.in $(distdir)
cp $(srcdir)/src/Makefile.in $(distdir)/src
cp -r $(srcdir)/src/a.GLOBAL $(distdir)/src
cp -r $(srcdir)/src/b.FUNCTIONS $(distdir)/src
cp -r $(srcdir)/src/c.SYSTEM $(distdir)/src
cp -r $(srcdir)/src/f.MPI $(distdir)/src
cp -r $(srcdir)/src/g.XC_FUNCTIONALS $(distdir)/src
cp -r $(srcdir)/src/j.ASSEMBLERS $(distdir)/src
cp -r $(srcdir)/src/p.THEORY $(distdir)/src
cp -r $(srcdir)/src/MACHINES $(distdir)/src
cp -r $(srcdir)/src/include $(distdir)/src
cp -r $(srcdir)/src/libs $(distdir)/src
cp -r $(srcdir)/src/x.DRIVERS $(distdir)/src
cp -r $(srcdir)/src/k.CREATE $(distdir)/src
distcheck: $(distdir).tar.gz
gzip -cd $+ | tar xvf -
cd $(distdir); ./configure FC=@FC@ --enable-THEORY=DOGS --enable-DEBUG --enable-LINALG=LAPACK
$(MAKE) -C $(distdir) all check
$(MAKE) -C $(distdir) DESTDIR=$${PWD}/$(distdir)/_inst install uninstall
$(MAKE) -C $(distdir) clean
rm -rf $(distdir)
@echo "*** Package $(distdir).tar.gz is ready for distribution."
Makefile: Makefile.in config.status
./config.status $@
config.status: configure
./config.status --recheck
FORCE:
-rm -rf $(distdir) &>/dev/null
-rm $(distdir).tar.gz &>/dev/null
.PHONY: FORCE all clean check dist distcheck install uninstall