1*5e0aa63bSAleksandar Markovic-include ../../../../config-host.mak 2*5e0aa63bSAleksandar Markovic 3*5e0aa63bSAleksandar MarkovicCROSS=mipsr5900el-unknown-linux-gnu- 4*5e0aa63bSAleksandar Markovic 5*5e0aa63bSAleksandar MarkovicSIM=qemu-mipsel 6*5e0aa63bSAleksandar MarkovicSIM_FLAGS=-cpu R5900 7*5e0aa63bSAleksandar Markovic 8*5e0aa63bSAleksandar MarkovicCC = $(CROSS)gcc 9*5e0aa63bSAleksandar MarkovicCFLAGS = -Wall -mabi=32 -march=r5900 -static 10*5e0aa63bSAleksandar Markovic 11*5e0aa63bSAleksandar MarkovicTESTCASES = test_r5900_div1.tst 12*5e0aa63bSAleksandar MarkovicTESTCASES += test_r5900_divu1.tst 13*5e0aa63bSAleksandar MarkovicTESTCASES += test_r5900_madd.tst 14*5e0aa63bSAleksandar MarkovicTESTCASES += test_r5900_maddu.tst 15*5e0aa63bSAleksandar MarkovicTESTCASES += test_r5900_mflohi1.tst 16*5e0aa63bSAleksandar MarkovicTESTCASES += test_r5900_mtlohi1.tst 17*5e0aa63bSAleksandar MarkovicTESTCASES += test_r5900_mult.tst 18*5e0aa63bSAleksandar MarkovicTESTCASES += test_r5900_multu.tst 19*5e0aa63bSAleksandar Markovic 20*5e0aa63bSAleksandar Markovicall: $(TESTCASES) 21*5e0aa63bSAleksandar Markovic 22*5e0aa63bSAleksandar Markovic%.tst: %.c 23*5e0aa63bSAleksandar Markovic $(CC) $(CFLAGS) $< -o $@ 24*5e0aa63bSAleksandar Markovic 25*5e0aa63bSAleksandar Markoviccheck: $(TESTCASES) 26*5e0aa63bSAleksandar Markovic @for case in $(TESTCASES); do \ 27*5e0aa63bSAleksandar Markovic echo $(SIM) $(SIM_FLAGS) ./$$case;\ 28*5e0aa63bSAleksandar Markovic $(SIM) $(SIM_FLAGS) ./$$case; \ 29*5e0aa63bSAleksandar Markovic done 30*5e0aa63bSAleksandar Markovic 31*5e0aa63bSAleksandar Markovicclean: 32*5e0aa63bSAleksandar Markovic $(RM) -rf $(TESTCASES) 33