Search
lxdream.org :: lxdream/test/Makefile.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/Makefile.in
changeset 521:33d2d92784c7
next533:9764673fd4a5
author nkeynes
date Sat Nov 17 01:30:01 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Add config.guess, config.sub files
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/Makefile.in Sat Nov 17 01:30:01 2007 +0000
1.3 @@ -0,0 +1,138 @@
1.4 +# host compiler and flags
1.5 +HOSTCC = @CC@
1.6 +HOSTCFLAGS = @CFLAGS@
1.7 +SH4CC = @SHCC@
1.8 +SH4INC = -Iinclude
1.9 +SH4CFLAGS = $(SH4INC) -D_arch_dreamcast -D_arch_sub_pristine \
1.10 + -O2 -fno-builtin -fno-strict-aliasing -ml -m4-single-only \
1.11 + -fno-optimize-sibling-calls
1.12 +SH4LD = @SHLD@
1.13 +SH4LDFLAGS = -fno-builtin -fno-strict-aliasing -ml -m4-single-only \
1.14 + -Wl,-Tdc.x -nostartfiles -nostdlib -Llib
1.15 +SH4LIBS = -Wl,--start-group -lc -lgcc -lm -Wl,--end-group
1.16 +SH4OBJCOPY = @SHOBJCOPY@ -O binary
1.17 +ARMCC = @ARMCC@
1.18 +ARMCFLAGS = -O2
1.19 +ARMLD = @ARMLD@
1.20 +ARMOBJCOPY = @ARMOBJCOPY@
1.21 +
1.22 +RUNTEST = ../src/lxdream -c ./lxdream.rc -puh
1.23 +
1.24 +
1.25 +# cygwin
1.26 +# these must point to your sh-elf bfd, not the system one
1.27 +#BFDLIB = -L/usr/local/lib -lbfd -liberty -lintl
1.28 +#BFDINCLUDE = /usr/local/include
1.29 +
1.30 +#SHARED_OBJECTS = crt0.so dcload-syscall.so dcload-syscalls.so memcpy.so lib.so
1.31 +SHARED_OBJECTS =
1.32 +
1.33 +%.ao: %.c
1.34 + $(ARMCC) $(ARMCFLAGS) -o $@ -c $<
1.35 +
1.36 +%.ao: %.s
1.37 + $(ARMCC) $(ARMCFLAGS) -o $@ -c $<
1.38 +
1.39 +%.so: %.c
1.40 + $(SH4CC) $(SH4CFLAGS) -o $@ -c $<
1.41 +
1.42 +%.so: %.ac
1.43 + $(SH4CC) $(SH4CFLAGS) -o $@ -c $<
1.44 +
1.45 +%.so: %.s
1.46 + $(SH4CC) $(SH4CFLAGS) -o $@ -c $<
1.47 +
1.48 +%.so: %.S
1.49 + $(SH4CC) $(SH4CFLAGS) -o $@ -c $<
1.50 +
1.51 +%.o: %.c
1.52 + $(HOSTCC) $(HOSTCFLAGS) -o $@ -c $<
1.53 +
1.54 +%.arm: %.ao arm_crt0.ao
1.55 + $(ARMCC) -Wl,-Ttext,0x00000000 -nostartfiles -nostdlib -e reset -o $@ arm_crt0.ao $< -lgcc
1.56 +
1.57 +
1.58 +%.bin: %.arm
1.59 + $(ARMOBJCOPY) -O binary $< $@
1.60 +
1.61 +%.aso: %.bin bin2c
1.62 + ./bin2c $< $<.c
1.63 + $(SH4CC) $(SH4CFLAGS) -o $@ -c $<.c
1.64 +
1.65 +all: build-tests
1.66 +
1.67 +check: build-tests
1.68 + cat testta.data testta2.data testta3.data testta4.data testta5.data | $(RUNTEST) testta
1.69 + $(RUNTEST) testsh4
1.70 + $(RUNTEST) testregs
1.71 + $(RUNTEST) testmath
1.72 + $(RUNTEST) testide -d ../disc/test.nrg
1.73 +
1.74 +
1.75 +build-tests: testsh4 testmath testide testta testregs testrend testdisp testspu
1.76 +
1.77 +testsh4: crt0.so sh4/testsh4.so timer.so interrupt.so \
1.78 + sh4/add.so sh4/addc.so sh4/addv.so sh4/and.so sh4/andi.so \
1.79 + sh4/bf.so sh4/bsr.so sh4/bt.so sh4/cmp.so sh4/cmpstr.so \
1.80 + sh4/div0.so sh4/div1.so sh4/float.so sh4/fmov.so sh4/ftrc.so \
1.81 + sh4/mac.s \
1.82 + sh4/rot.so sh4/shl.so sh4/shld.so sh4/sub.so sh4/subc.so \
1.83 + sh4/tas.so sh4/xtrct.so \
1.84 + sh4/excslot.so sh4/undef.so
1.85 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.86 + $(SH4OBJCOPY) testsh4 testsh4.bin
1.87 +
1.88 +testide: crt0.so testide.so ide.so lib.so testdata.so
1.89 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.90 + $(SH4OBJCOPY) testide testide.bin
1.91 +
1.92 +testmath: crt0.so $(SHARED_OBJECTS) testmath.so math.so
1.93 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.94 +
1.95 +testregs: crt0.so $(SHARED_OBJECTS) testregs.so ide.so
1.96 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.97 + $(SH4OBJCOPY) testregs testregs.bin
1.98 +
1.99 +testta: crt0.so $(SHARED_OBJECTS) testta.so pvr.so dmac.so asic.so lib.so testdata.so
1.100 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.101 + $(SH4OBJCOPY) testta testta.bin
1.102 +
1.103 +testrend: crt0.so $(SHARED_OBJECTS) testrend.so pvr.so dmac.so asic.so lib.so testdata.so
1.104 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.105 + $(SH4OBJCOPY) testrend testrend.bin
1.106 +
1.107 +testblend: crt0.so $(SHARED_OBJECTS) testblend.so pvr.so dmac.so asic.so lib.so testdata.so
1.108 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.109 + $(SH4OBJCOPY) testblend testblend.bin
1.110 +
1.111 +testdisp: crt0.so $(SHARED_OBJECTS) testdisp.so pvr.so asic.so lib.so testdata.so timer.so
1.112 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.113 + $(SH4OBJCOPY) testdisp testdisp.bin
1.114 +
1.115 +testyuv: crt0.so $(SHARED_OBJECTS) testyuv.so pvr.so asic.so lib.so testdata.so timer.so dmac.so
1.116 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.117 + $(SH4OBJCOPY) testyuv testyuv.bin
1.118 +
1.119 +testspu: crt0.so $(SHARED_OBJECTS) testspu.so asic.so lib.so testdata.so timer.so dmac.so
1.120 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.121 + $(SH4OBJCOPY) testspu testspu.bin
1.122 +
1.123 +testg2: crt0.so $(SHARED_OBJECTS) testg2.so asic.so lib.so testdata.so timer.so dmac.so
1.124 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.125 + $(SH4OBJCOPY) testg2 testg2.bin
1.126 +
1.127 +readdata: crt0.so readdata.so
1.128 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.129 +
1.130 +rend: crt0.so rendload.so asic.so lib.so timer.so pvr.so
1.131 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.132 + $(SH4OBJCOPY) rend rend.bin
1.133 +
1.134 +testFF10: crt0.so testFF10.so lib.so
1.135 + $(SH4CC) $(SH4LDFLAGS) $^ -o $@ $(SH4LIBS)
1.136 + $(SH4OBJCOPY) testFF10 testFF10.bin
1.137 +
1.138 +.PHONY : clean
1.139 +clean:
1.140 + rm -f *.o *.so *.ao *.ac *.bin mapleid ide readmem dumpasic
1.141 +
.