1 # Makefile for regression testing the sky simulator.
9 exec_prefix = @
exec_prefix@
11 host_alias
= @host_alias@
12 target_alias
= @target_alias@
13 program_transform_name
= @program_transform_name@
14 build_canonical
= @build@
15 host_canonical
= @host@
16 target_canonical
= @target@
17 target_cpu
= @target_cpu@
22 RPATH_ENVVAR
= @RPATH_ENVVAR@
24 EXPECT
= `if [ -f $${rootme}/../../expect/expect ] ; then \
25 echo $${rootme}/../../expect/expect ; \
26 else echo expect ; fi`
28 RUNTEST
= $(RUNTEST_FOR_TARGET
)
32 RUNTEST_FOR_TARGET
= `\
33 if [ -f $${srcdir}/../../../dejagnu/runtest ]; then \
34 echo $${srcdir}/../../../dejagnu/runtest; \
36 if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
39 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
45 if [ -x ../../../gas/as-new ]; then \
46 echo ../../../gas/as-new ; \
48 echo $(target_alias)-as ; \
52 if [ -x ../../../ld/ld-new ]; then \
53 echo ../../../ld/ld-new ; \
55 echo $(target_alias)-ld ; \
61 if [ -x ../../../sim/mips/run ]; then \
62 echo ../../../sim/mips/run ; \
64 echo $(target_alias)-run ; \
68 if [ -x ../../../gcc/xgcc ]; then \
69 echo ../../../gcc/xgcc ; \
71 echo $(target_alias)-gcc ; \
74 C_GEN
= /build
/sky-tools
/c_gen.pl
76 .SUFFIXES
: .trc .c .run .ok .vif0out .vif0ok .vif0expect .vif1out .vif1ok .vif1expect .uu
89 check: sanity
$(TESTS
)
91 @eval echo AS_FOR_TARGET
= $(AS_FOR_TARGET
)
92 @eval echo LD_FOR_TARGET
= $(LD_FOR_TARGET
)
93 @eval echo RUN_FOR_TARGET
= $(RUN_FOR_TARGET
)
94 @eval echo GCC_FOR_TARGET
= $(GCC_FOR_TARGET
)
97 # Rules for running the tests
101 ulimit
-t
5 ; $(RUN_FOR_TARGET
) $< > tmp-
$*
106 ulimit
-t
5 ; $(RUN_FOR_TARGET
) $< > tmp-
$* ; \
107 if
[ $$?
-ne
0 ] ; then \
114 diff
$(srcdir)/$*.vif0expect
$<
117 diff
$(srcdir)/$*.vif1expect
$<
120 # Rules for building all the tests
125 $(GCC_FOR_TARGET
) -Tr5900.
ld -o
$@
$<
130 -env VIF0_TRACE_FILE
=$@
$(RUN_FOR_TARGET
) $<
133 -env VIF1_TRACE_FILE
=$@
$(RUN_FOR_TARGET
) $<
141 -rm -f
*~ core
*.o a.out
*.x
*.grt
142 -rm -f
*.vif
*out
*.ok tmp-
*
144 # if [ x"${SUBDIRS}" != x ] ; then \
145 # for dir in ${SUBDIRS}; \
148 # if [ -d $$dir ]; then \
149 # (cd $$dir; $(MAKE) clean); \
154 distclean maintainer-clean
realclean: clean
156 -rm -f Makefile config.status
*-init.exp
157 -rm -fr
*.log summary detail
*.plog
*.sum
*.psum site.
*
158 # if [ x"${SUBDIRS}" != x ] ; then \
159 # for dir in ${SUBDIRS}; \
162 # if [ -d $$dir ]; then \
163 # (cd $$dir; $(MAKE) distclean); \
168 Makefile
: Makefile.in config.status
169 $(SHELL
) config.status
171 config.status
: configure
172 $(SHELL
) config.status
--recheck