Search
lxdream.org :: lxdream/test/Makefile.in
lxdream 0.9.1
released Jun 29
Download Now
filename test/Makefile.in
changeset 555:309c97260912
prev550:a27e31340147
next579:e76fa1a58d0a
author nkeynes
date Tue Jan 01 04:32:01 2008 +0000 (14 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Add initial TLB tests
view annotate diff log raw
     1 # host compiler and flags
     2 HOSTCC		= @CC@
     3 HOSTCFLAGS	= @CFLAGS@
     4 SH4CC		= @SHCC@
     5 SH4INC          = -Iinclude
     6 SH4CFLAGS	= $(SH4INC) -D_arch_dreamcast -D_arch_sub_pristine \
     7                   -O2 -fno-builtin -fno-strict-aliasing -ml -m4-single-only \
     8                   -fno-optimize-sibling-calls
     9 SH4LD		= @SHLD@
    10 SH4LDFLAGS      = -fno-builtin -fno-strict-aliasing  -ml -m4-single-only \
    11                   -Wl,-Tdc.x -nostartfiles -nostdlib -Llib
    12 SH4LIBS         = -Wl,--start-group -lc -lgcc -lm -Wl,--end-group
    13 SH4OBJCOPY      = @SHOBJCOPY@ -O binary
    14 ARMCC		= @ARMCC@
    15 ARMCFLAGS	= -O2
    16 ARMLD		= @ARMLD@
    17 ARMOBJCOPY	= @ARMOBJCOPY@
    19 RUNTEST		= ../src/lxdream -c ./lxdream.rc -puh -A null
    22 # cygwin
    23 # these must point to your sh-elf bfd, not the system one
    24 #BFDLIB		= -L/usr/local/lib -lbfd -liberty -lintl
    25 #BFDINCLUDE	= /usr/local/include
    27 #SHARED_OBJECTS	= crt0.so dcload-syscall.so dcload-syscalls.so memcpy.so lib.so
    28 SHARED_OBJECTS	=
    30 %.ao: %.c
    31 	$(ARMCC) $(ARMCFLAGS) -o $@ -c $< 
    33 %.ao: %.s
    34 	$(ARMCC) $(ARMCFLAGS) -o $@ -c $< 
    36 %.so: %.c
    37 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    39 %.so: %.ac
    40 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    42 %.so: %.s
    43 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    45 %.so: %.S
    46 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    48 %.o: %.c
    49 	$(HOSTCC) $(HOSTCFLAGS) -o $@ -c $<
    51 %.arm: %.ao arm_crt0.ao
    52 	$(ARMCC) -Wl,-Ttext,0x00000000 -nostartfiles -nostdlib -e reset -o $@ arm_crt0.ao $< -lgcc
    55 %.bin: %.arm
    56 	$(ARMOBJCOPY) -O binary $< $@
    58 %.aso: %.bin bin2c
    59 	./bin2c $< $<.c
    60 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $<.c
    62 all: build-tests
    64 check: build-tests
    65 	cat testta.data testta2.data testta3.data testta4.data testta5.data | $(RUNTEST) testta
    66 	$(RUNTEST) testsh4
    67 	$(RUNTEST) testmmu
    68 	$(RUNTEST) testregs
    69 #	$(RUNTEST) testide -d ../disc/test.nrg
    72 build-tests: testsh4 testmath testide testta testregs testrend testdisp testspu testmmu
    74 testsh4: crt0.so sh4/testsh4.so timer.so interrupt.so \
    75 	 sh4/add.so sh4/addc.so sh4/addv.so sh4/and.so sh4/andi.so \
    76 	 sh4/bf.so sh4/bsr.so sh4/bt.so sh4/cmp.so sh4/cmpstr.so \
    77 	 sh4/div0.so sh4/div1.so sh4/float.so sh4/fmov.so sh4/ftrc.so \
    78 	 sh4/mac.s \
    79 	 sh4/rot.so sh4/shl.so sh4/shld.so sh4/sub.so sh4/subc.so \
    80 	 sh4/trapa.so sh4/tas.so sh4/xtrct.so \
    81 	 sh4/excslot.so sh4/undef.so sh4/tlb.so
    82 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
    83 	$(SH4OBJCOPY) testsh4 testsh4.bin
    85 testide: crt0.so testide.so ide.so lib.so testdata.so
    86 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
    87 	$(SH4OBJCOPY) testide testide.bin
    89 testmmu: crt0.so testmmu.so lib.so 
    90 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
    91 	$(SH4OBJCOPY) testmmu testmmu.bin
    93 testmath: crt0.so $(SHARED_OBJECTS) testmath.so math.so
    94 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
    96 testregs: crt0.so $(SHARED_OBJECTS) testregs.so ide.so
    97 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
    98 	$(SH4OBJCOPY) testregs testregs.bin
   100 testta: crt0.so $(SHARED_OBJECTS) testta.so pvr.so dmac.so asic.so lib.so testdata.so
   101 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   102 	$(SH4OBJCOPY) testta testta.bin
   104 testrend: crt0.so $(SHARED_OBJECTS) testrend.so pvr.so dmac.so asic.so lib.so testdata.so
   105 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   106 	$(SH4OBJCOPY) testrend testrend.bin
   108 testblend: crt0.so $(SHARED_OBJECTS) testblend.so pvr.so dmac.so asic.so lib.so testdata.so
   109 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   110 	$(SH4OBJCOPY) testblend testblend.bin
   112 testdisp: crt0.so $(SHARED_OBJECTS) testdisp.so pvr.so asic.so lib.so testdata.so timer.so
   113 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   114 	$(SH4OBJCOPY) testdisp testdisp.bin
   116 testyuv: crt0.so $(SHARED_OBJECTS) testyuv.so pvr.so asic.so lib.so testdata.so timer.so dmac.so
   117 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   118 	$(SH4OBJCOPY) testyuv testyuv.bin
   120 testspu: crt0.so $(SHARED_OBJECTS) testspu.so asic.so lib.so testdata.so timer.so dmac.so
   121 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   122 	$(SH4OBJCOPY) testspu testspu.bin
   124 testg2: crt0.so $(SHARED_OBJECTS) testg2.so asic.so lib.so testdata.so timer.so dmac.so
   125 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   126 	$(SH4OBJCOPY) testg2 testg2.bin
   128 readdata: crt0.so readdata.so
   129 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
   131 rend: crt0.so rendload.so asic.so lib.so timer.so pvr.so
   132 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
   133 	$(SH4OBJCOPY) rend rend.bin
   135 testFF10: crt0.so testFF10.so lib.so
   136 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   137 	$(SH4OBJCOPY) testFF10 testFF10.bin
   139 .PHONY : clean
   140 clean:
   141 	rm -f *.o *.so *.ao *.ac *.bin mapleid ide readmem dumpasic
.