forked from sstsimulator/sst-macro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
88 lines (68 loc) · 2.18 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
#
# This file is part of SST/macroscale:
# The macroscale architecture simulator from the SST suite.
# Copyright (c) 2009 Sandia Corporation.
# This software is distributed under the BSD License.
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
# the U.S. Government retains certain rights in this software.
# For more information, see the LICENSE file in the top
# SST/macroscale directory.
#
include $(top_srcdir)/Makefile.common
# Files that should be distributed but are not built.
EXTRA_DIST = LICENSE tutorials benchmarks bootstrap.sh \
docs \
qt-gui \
skeletons
SUBDIRS = $(subdirs)
if WITH_SUMI_MPI
SUBDIRS += sumi-mpi
endif
SUBDIRS += sstmac bin python tests configurations
dist_bin_SCRIPTS = sstmacro-libtool
ACLOCAL_AMFLAGS = -I acinclude
QMAKE=@qmake_executable@
AM_FFLAGS = $(FFLAG_INT)
AM_CPPFLAGS += $(SCALAPACK_CPPFLAGS)
AM_CPPFLAGS += $(LAPACK_CPPFLAGS)
AM_CPPFLAGS += $(BLAS_CPPFLAGS)
AM_LDFLAGS = $(SCALAPACK_LDFLAGS)
AM_LDFLAGS += $(LAPACK_LDFLAGS)
AM_LDFLAGS += $(BLAS_LDFLAGS)
if EXTERNAL_BOOST
AM_LDFLAGS += $(BOOST_LDFLAGS)
AM_LDFLAGS += $(BOOST_REGEX_LIB)
endif
.PHONY: doc superclean gui
doc:
cd docs && doxygen doxygen.cfg
cd dumpi && make doc
if HAVE_QT
gui:
cd qt-gui && $(QMAKE) $(abs_top_srcdir)/qt-gui/sstgui.pro
cd qt-gui && make
cp -r qt-gui/SSTMacro.app $(bindir)
endif
#doc-install: doc
# $(INSTALL) -d docs/sst-macroscale @docdir@
# cd dumpi && make doc-install
#
if REPO_BUILD
sstmac_repo.h: .git/refs/heads/master
cd $(abs_top_srcdir) && $(abs_top_srcdir)/bin/make_repo_header $(abs_top_srcdir) sstmac
endif
sstmacro-libtool: libtool
cp -fp $< $@
superclean: clean distclean-am
rm -rf configure autom4te.cache bin aclocal.m4 src/sstmacconfig.h.in config.log config.status
rm -f acinclude/ltsugar.m4 acinclude/libtool.m4 acinclude/ltversion.m4 acinclude/lt~obsolete.m4 acinclude/ltoptions.m4
rm -f src/sstmacconfig.h src/stamp-h1
cd dumpi; $(MAKE) superclean
find . -name Makefile.in -type f |xargs rm -f
find . -name .deps -type d |xargs rm -rf
find . -name Makefile -type f |xargs rm -f
rm -f tests/stats.log
clean-local:
rm -f sstmacro-libtool
rm -f _configs.sed
rm -rf $(XCODEBUILD_TMPDIR)