qemu/tests/tcg/mips/user/isa/r5900/Makefile
<<
>>
Prefs
   1-include ../../../../config-host.mak
   2
   3CROSS=mipsr5900el-unknown-linux-gnu-
   4
   5SIM=qemu-mipsel
   6SIM_FLAGS=-cpu R5900
   7
   8CC      = $(CROSS)gcc
   9CFLAGS  = -Wall -mabi=32 -march=r5900 -static
  10
  11TESTCASES  = test_r5900_div1.tst
  12TESTCASES += test_r5900_divu1.tst
  13TESTCASES += test_r5900_madd.tst
  14TESTCASES += test_r5900_maddu.tst
  15TESTCASES += test_r5900_mflohi1.tst
  16TESTCASES += test_r5900_mtlohi1.tst
  17TESTCASES += test_r5900_mult.tst
  18TESTCASES += test_r5900_multu.tst
  19
  20all: $(TESTCASES)
  21
  22%.tst: %.c
  23        $(CC) $(CFLAGS) $< -o $@
  24
  25check: $(TESTCASES)
  26        @for case in $(TESTCASES); do \
  27        echo $(SIM) $(SIM_FLAGS) ./$$case;\
  28        $(SIM) $(SIM_FLAGS) ./$$case; \
  29        done
  30
  31clean:
  32        $(RM) -rf $(TESTCASES)
  33