1TESTS_PATH = $(SRC_PATH)/tests/tcg/tricore 2ASM_TESTS_PATH = $(TESTS_PATH)/asm 3C_TESTS_PATH = $(TESTS_PATH)/c 4 5LDFLAGS = -T$(TESTS_PATH)/link.ld --mcpu=tc162 6ASFLAGS = -mtc162 7CFLAGS = -mtc162 -c -I$(TESTS_PATH) 8 9TESTS += test_abs.asm.tst 10TESTS += test_bmerge.asm.tst 11TESTS += test_clz.asm.tst 12TESTS += test_crcn.asm.tst 13TESTS += test_dextr.asm.tst 14TESTS += test_dvstep.asm.tst 15TESTS += test_fadd.asm.tst 16TESTS += test_fmul.asm.tst 17TESTS += test_ftoi.asm.tst 18TESTS += test_imask.asm.tst 19TESTS += test_insert.asm.tst 20TESTS += test_ld_bu.asm.tst 21TESTS += test_ld_h.asm.tst 22TESTS += test_madd.asm.tst 23TESTS += test_msub.asm.tst 24TESTS += test_muls.asm.tst 25 26TESTS += test_boot_to_main.c.tst 27TESTS += test_context_save_areas.c.tst 28 29QEMU_OPTS += -M tricore_testboard -cpu tc37x -nographic -kernel 30 31%.pS: $(ASM_TESTS_PATH)/%.S 32 $(CC) -E -o $@ $< 33 34%.o: %.pS 35 $(AS) $(ASFLAGS) -o $@ $< 36 37%.asm.tst: %.o 38 $(LD) $(LDFLAGS) $< -o $@ 39 40crt0-tc2x.o: $(C_TESTS_PATH)/crt0-tc2x.S 41 $(AS) $(ASFLAGS) -o $@ $< 42 43%.o: $(C_TESTS_PATH)/%.c 44 $(CC) $(CFLAGS) -o $@ $< 45 46%.c.tst: %.o crt0-tc2x.o 47 $(LD) $(LDFLAGS) -o $@ $^ 48 49# We don't currently support the multiarch system tests 50undefine MULTIARCH_TESTS 51