Search
lxdream.org :: lxdream/test/Makefile.in
lxdream 0.9.1
released Jun 29
Download Now
filename test/Makefile.in
changeset 586:2a3ba82cf243
prev550:a27e31340147
next680:e237d43e011d
author nkeynes
date Tue Jan 29 10:39:56 2008 +0000 (16 years ago)
permissions -rw-r--r--
last change Start getting SLEEP into order
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
    20 RUNTESTX	= ../src/lxdream -c ./lxdream.rc -xpuh -A null
    23 # cygwin
    24 # these must point to your sh-elf bfd, not the system one
    25 #BFDLIB		= -L/usr/local/lib -lbfd -liberty -lintl
    26 #BFDINCLUDE	= /usr/local/include
    28 #SHARED_OBJECTS	= crt0.so dcload-syscall.so dcload-syscalls.so memcpy.so lib.so
    29 SHARED_OBJECTS	=
    31 %.ao: %.c
    32 	$(ARMCC) $(ARMCFLAGS) -o $@ -c $< 
    34 %.ao: %.s
    35 	$(ARMCC) $(ARMCFLAGS) -o $@ -c $< 
    37 %.so: %.c
    38 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    40 %.so: %.ac
    41 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    43 %.so: %.s
    44 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    46 %.so: %.S
    47 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $< 
    49 %.o: %.c
    50 	$(HOSTCC) $(HOSTCFLAGS) -o $@ -c $<
    52 %.arm: %.ao arm_crt0.ao
    53 	$(ARMCC) -Wl,-Ttext,0x00000000 -nostartfiles -nostdlib -e reset -o $@ arm_crt0.ao $< -lgcc
    56 %.bin: %.arm
    57 	$(ARMOBJCOPY) -O binary $< $@
    59 %.aso: %.bin bin2c
    60 	./bin2c $< $<.c
    61 	$(SH4CC) $(SH4CFLAGS) -o $@ -c $<.c
    63 all: build-tests
    65 check: build-tests
    66 	$(RUNTEST) testsh4
    67 	$(RUNTESTX) testsh4
    68 	$(RUNTEST) testmmu
    69 	$(RUNTEST) testregs
    70 	cat testta.data testta2.data testta3.data testta4.data testta5.data | $(RUNTEST) testta
    71 #	$(RUNTEST) testide -d ../disc/test.nrg
    74 build-tests: testsh4 testmath testide testta testregs testrend testdisp testspu testmmu
    76 testsh4: crt0.so sh4/testsh4.so timer.so interrupt.so \
    77 	 sh4/add.so sh4/addc.so sh4/addv.so sh4/and.so sh4/andi.so \
    78 	 sh4/bf.so sh4/bsr.so sh4/bt.so sh4/cmp.so sh4/cmpstr.so \
    79 	 sh4/div0.so sh4/div1.so sh4/float.so sh4/fmov.so sh4/ftrc.so \
    80 	 sh4/mac.s \
    81 	 sh4/rot.so sh4/shl.so sh4/shld.so sh4/sub.so sh4/subc.so \
    82 	 sh4/trapa.so sh4/tas.so sh4/xtrct.so \
    83 	 sh4/excslot.so sh4/undef.so sh4/tlb.so
    84 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
    85 	$(SH4OBJCOPY) testsh4 testsh4.bin
    87 testide: crt0.so testide.so ide.so lib.so testdata.so
    88 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
    89 	$(SH4OBJCOPY) testide testide.bin
    91 testmmu: crt0.so testmmu.so lib.so 
    92 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
    93 	$(SH4OBJCOPY) testmmu testmmu.bin
    95 testmath: crt0.so $(SHARED_OBJECTS) testmath.so math.so
    96 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
    98 testregs: crt0.so $(SHARED_OBJECTS) testregs.so ide.so
    99 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   100 	$(SH4OBJCOPY) testregs testregs.bin
   102 testta: crt0.so $(SHARED_OBJECTS) testta.so pvr.so dmac.so asic.so lib.so testdata.so
   103 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   104 	$(SH4OBJCOPY) testta testta.bin
   106 testrend: crt0.so $(SHARED_OBJECTS) testrend.so pvr.so dmac.so asic.so lib.so testdata.so
   107 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   108 	$(SH4OBJCOPY) testrend testrend.bin
   110 testblend: crt0.so $(SHARED_OBJECTS) testblend.so pvr.so dmac.so asic.so lib.so testdata.so
   111 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   112 	$(SH4OBJCOPY) testblend testblend.bin
   114 testdisp: crt0.so $(SHARED_OBJECTS) testdisp.so pvr.so asic.so lib.so testdata.so timer.so
   115 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   116 	$(SH4OBJCOPY) testdisp testdisp.bin
   118 testyuv: crt0.so $(SHARED_OBJECTS) testyuv.so pvr.so asic.so lib.so testdata.so timer.so dmac.so
   119 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   120 	$(SH4OBJCOPY) testyuv testyuv.bin
   122 testspu: crt0.so $(SHARED_OBJECTS) testspu.so asic.so lib.so testdata.so timer.so dmac.so
   123 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   124 	$(SH4OBJCOPY) testspu testspu.bin
   126 testg2: crt0.so $(SHARED_OBJECTS) testg2.so asic.so lib.so testdata.so timer.so dmac.so
   127 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   128 	$(SH4OBJCOPY) testg2 testg2.bin
   130 readdata: crt0.so readdata.so
   131 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
   133 rend: crt0.so rendload.so asic.so lib.so timer.so pvr.so
   134 	$(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
   135 	$(SH4OBJCOPY) rend rend.bin
   137 testFF10: crt0.so testFF10.so lib.so
   138 	$(SH4CC) $(SH4LDFLAGS) $^  -o $@ $(SH4LIBS)
   139 	$(SH4OBJCOPY) testFF10 testFF10.bin
   141 .PHONY : clean
   142 clean:
   143 	rm -f *.o *.so *.ao *.ac *.bin mapleid ide readmem dumpasic
.