forked from sstsimulator/sst-macro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.tutorial_tests
36 lines (29 loc) · 1.22 KB
/
Makefile.tutorial_tests
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
.PHONY: tutorials
if !INTEGRATED_SST_CORE
#------------------------------------------------------------------------------------------#
# Tutorial tests (installcheck) {{{#
#------------------------------------------------------------------------------------------#
TUTORIALTESTS = \
test_tutorial_sendrecv_c \
test_tutorial_sendrecv_cxx \
test_tutorial_sendrecv_cxx2 \
test_tutorial_1d_integrator_c
if FC_ENABLE
TUTORIALTESTS += \
test_tutorial_sendrecv_f90 \
test_tutorial_1d_integrator_f90
endif
# Eventually experimental tutorials will be moved to top level tutorials
tutorials:
rm -fr tutorials
cp -fpR $(top_srcdir)/tutorials .
chmod -R u+w tutorials # required for make distcheck (makes files r/o)
$(TUTORIALTESTS:test_tutorial_%=tutorials/%/runsstmac): tutorials
cd `dirname $@`; PATH=$(bindir):$$PATH $(MAKE)
TUTORIALS_ENV = DYLD_LIBRARY_PATH=$(libdir):$(DYLD_LIBRARY_PATH) \
LD_LIBRARY_PATH=$(libdir):$(LD_LIBRARY_PATH)
test_tutorial_%.$(CHKSUF): tutorials/%/runsstmac
cd `dirname $<`; $(TUTORIALS_ENV) ./`basename $<` \
--no-wall-time > ../../$@
#------------------------------------------------------------------------------------------#
endif