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
112 @eval echo AS_FOR_TARGET
= $(AS_FOR_TARGET
)
113 @eval echo LD_FOR_TARGET
= $(LD_FOR_TARGET
)
114 @eval echo RUN_FOR_TARGET
= $(RUN_FOR_TARGET
)
115 @eval echo GCC_FOR_TARGET
= $(GCC_FOR_TARGET
)
118 # Rules for running the tests
122 ulimit
-t
30 ; $(RUN_FOR_TARGET
) $< > tmp-
$*
127 ulimit
-t
30 ; $(RUN_FOR_TARGET
) $< > tmp-
$* ; \
128 if
[ $$?
-ne
0 ] ; then \
135 diff
$(srcdir)/$*.vif0expect
$<
138 diff
$(srcdir)/$*.vif1expect
$<
141 # Rules for building all the tests
146 $(GCC_FOR_TARGET
) -Tr5900.
ld -o
$@
$<
151 -env VIF0_TRACE_FILE
=$@
$(RUN_FOR_TARGET
) $<
154 -env VIF1_TRACE_FILE
=$@
$(RUN_FOR_TARGET
) $<
162 -rm -f
*~ core
*.o a.out
*.x
*.grt
163 -rm -f
*.vif
*out
*.ok tmp-
*
165 # if [ x"${SUBDIRS}" != x ] ; then \
166 # for dir in ${SUBDIRS}; \
169 # if [ -d $$dir ]; then \
170 # (cd $$dir; $(MAKE) clean); \
175 distclean maintainer-clean
realclean: clean
177 -rm -f Makefile config.status
*-init.exp
178 -rm -fr
*.log summary detail
*.plog
*.sum
*.psum site.
*
179 # if [ x"${SUBDIRS}" != x ] ; then \
180 # for dir in ${SUBDIRS}; \
183 # if [ -d $$dir ]; then \
184 # (cd $$dir; $(MAKE) distclean); \
189 Makefile
: Makefile.in config.status
190 $(SHELL
) config.status
192 config.status
: configure
193 $(SHELL
) config.status
--recheck