3 @eval echo AS_FOR_TARGET = $(AS_FOR_TARGET)
4 @eval echo LD_FOR_TARGET = $(LD_FOR_TARGET)
5 @eval echo RUN_FOR_TARGET = $(RUN_FOR_TARGET)
7 # Rules for running the tests
9 .SUFFIXES: .ok .run .hi .ko
13 $(RUN_FOR_TARGET) $(RUNFLAGS_FOR_TARGET) $*.run > tmp-$*
16 rm -f tmp-$* $*.hi diff-$*
18 $(RUN_FOR_TARGET) $(RUNFLAGS_FOR_TARGET) $*.run > tmp-$*
19 echo 'Hello World!' | diff - tmp-$* > diff-$*
20 cat tmp-$* diff-$* > $*.hi
25 $(RUN_FOR_TARGET) $(RUNFLAGS_FOR_TARGET) $*.run > tmp-$* ; \
26 if [ $$? -eq 47 ] ; then \
34 # Rules for building the test
35 # Preference is for obtaining the executable (.run) from a prebuilt image
37 .SUFFIXES: .uue .s .S .run
39 head $* | grep $*.run > /dev/null
42 uuencode < $*.run $*.run > $*.u
44 $(LD_FOR_TARGET) $(LDFLAGS_FOR_TARGET) -o $*.run $*.o
46 $(AS_FOR_TARGET) $(ASFLAGS_FOR_TARGET) $(srcdir)/$*.s -o $*.o
48 $(AS_FOR_TARGET) $(ASFLAGS_FOR_TARGET) $(srcdir)/$*.S -o $*.o