2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / libgomp / testsuite / Makefile.am
blobe2a3f460eb0fe89f8e09f3378c4ca8da0e9b0646
1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = foreign dejagnu
5 # May be used by various substitution variables.
6 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
8 EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \
9            echo $(top_builddir)/../expect/expect; else echo expect; fi)
11 _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
12              echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
13 RUNTEST = "$(_RUNTEST) $(AM_RUNTESTFLAGS)"
16 # Instead of directly in ../testsuite/libgomp-test-support.exp.in, the
17 # following variables have to be "routed through" this Makefile, for expansion
18 # of the several (Makefile) variables used therein.
19 libgomp-test-support.exp: libgomp-test-support.pt.exp Makefile
20         cp $< $@.tmp
21         echo >> $@.tmp \
22           'set offload_additional_options "$(offload_additional_options)"'
23         echo >> $@.tmp \
24           'set offload_additional_lib_paths "$(offload_additional_lib_paths)"'
25         mv $@.tmp $@
27 all-local: libgomp-test-support.exp