-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile.am
121 lines (96 loc) · 3.02 KB
/
Makefile.am
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
# This file is part of ForestClaw.
# Makefile.am in toplevel directory
ACLOCAL_AMFLAGS = -I config
if FCLAW_SC_MK_USE
@FCLAW_SC_MK_INCLUDE@
endif
if FCLAW_P4EST_MK_USE
@FCLAW_P4EST_MK_INCLUDE@
endif
# initialize empty variables
AM_CPPFLAGS =
AM_FFLAGS =
CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =
LDADD = $(FLIBS)
LINT_CSOURCES =
TESTS =
bin_PROGRAMS =
check_PROGRAMS =
include_HEADERS =
lib_LTLIBRARIES =
nodist_include_HEADERS =
noinst_HEADERS =
noinst_PROGRAMS =
noinst_LIBRARIES =
sysconf_DATA =
# use this if you want to link in ForestClaw without autotools
sysconf_DATA += Makefile.fclaw.mk
CLEANFILES += Makefile.fclaw.mk
Makefile.fclaw.mk : Makefile.fclaw.pre
cat $< | \
sed -e 's,{\(\(.*prefix\|sysconfdir\)\)},{fclaw_\1},g' \
-e 's,^\(\(.*prefix\|sysconfdir\) *=\),fclaw_\1,g' > $@
# install ForestClaw m4 macros in the correct directory
fclawaclocaldir = $(datadir)/aclocal
dist_fclawaclocal_DATA = config/fclaw_include.m4
# install example .ini files in a dedicated directory
fclawinidir = $(datadir)/ini
dist_fclawini_DATA =
AM_CPPFLAGS += -DFCLAW_INIDIR=\"$(fclawinidir)\"
# setup test environment
AM_TESTS_ENVIRONMENT = \
FCLAW_MPIRUN="@FCLAW_MPIRUN@ @FCLAW_MPI_TEST_FLAGS@ \
@FCLAW_VALGRIND@ @FCLAW_VALGRIND_FLAGS@" \
FCLAW_MPI_TEST_FLAGS="" \
FCLAW_APPLICATIONS_SRC_DIR="@abs_top_srcdir@/applications" \
FCLAW_APPLICATIONS_BUILD_DIR="@abs_top_builddir@/applications"
# recurse only into subpackages
SUBDIRS = @FCLAW_SC_SUBDIR@ @FCLAW_P4EST_SUBDIR@
DIST_SUBDIRS = $(SUBDIRS)
# handle toplevel directory
EXTRA_DIST += \
bootstrap fclawindent build-aux/git-version-gen build-aux/git2cl
DISTCLEANFILES += \
_configs.sed src/fclaw_config.h @FCLAW_DISTCLEAN@
.PHONY: lint ChangeLog
# --------------------- Solvers and examples ---------------------
# --------------------------------------------
# ForestClaw
# --------------------------------------------
include src/Makefile.am
# Examples
include Makefile.apps
# Tests
include test/Makefile.am
# ------------------------------------------------------------------
# revision control and ChangeLog
ChangeLog:
(GIT_DIR=@top_srcdir@/.git git log > .ChangeLog.tmp && \
cat .ChangeLog.tmp | @top_srcdir@/build-aux/git2cl > ChangeLog) ; \
rm -f .ChangeLog.tmp
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
test "x$(VERSION)" = "x`@top_srcdir@/build-aux/git-version-gen \
@top_srcdir@/.tarball-version`" || \
((echo "Stale version;" ; echo "Please run:" ; \
echo " cd @top_srcdir@ && ./bootstrap" ; \
echo "before make dist") 1>&2 ; rm -r $(distdir) ; exit 1)
if FCLAW_DIST_DENY
@echo "-----------------------------------------------------"
@echo "make dist does not work with external subpackages"
@echo "-----------------------------------------------------"
rm -rf $(distdir)
@exit 1
endif
maintainer-clean-local:
rm -rf doxygen
clean-local:
rm -f ChangeLog *vtu *.visit
mostlyclean-local:
rm -f *.mod
doxygen: Doxyfile
doxygen
.PHONY: doxygen
@FORTRAN_MODULE_DEPS@