1 |
505 |
lampret |
|
2 |
|
|
cases = mul-nocache-O0 mul-nocache-O2 mul-ic-O0 mul-ic-O2 mul-dc-O0 mul-dc-O2 mul-icdc-O2 mul-icdc-O0
|
3 |
|
|
common = ../support/except.o ../support/support.o
|
4 |
|
|
|
5 |
|
|
all: $(cases)
|
6 |
|
|
|
7 |
|
|
mul-nocache-O0: $(common) mul-O0.o ../support/reset-nocache.o
|
8 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
9 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
10 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
11 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
12 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
13 |
|
|
|
14 |
|
|
mul-nocache-O2: $(common) mul-O2.o ../support/reset-nocache.o
|
15 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
16 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
17 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
18 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
19 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
20 |
|
|
|
21 |
|
|
mul-ic-O0: $(common) mul-O0.o ../support/reset-ic.o
|
22 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
23 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
24 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
25 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
26 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
27 |
|
|
|
28 |
|
|
mul-ic-O2: $(common) mul-O2.o ../support/reset-ic.o
|
29 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
30 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
31 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
32 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
33 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
34 |
|
|
|
35 |
|
|
mul-dc-O0: $(common) mul-O0.o ../support/reset-dc.o
|
36 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
37 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
38 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
39 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
40 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
41 |
|
|
|
42 |
|
|
mul-dc-O2: $(common) mul-O2.o ../support/reset-dc.o
|
43 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
44 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
45 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
46 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
47 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
48 |
|
|
|
49 |
|
|
mul-icdc-O0: $(common) mul-O0.o ../support/reset-icdc.o
|
50 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
51 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
52 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
53 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
54 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
55 |
|
|
|
56 |
|
|
mul-icdc-O2: $(common) mul-O2.o ../support/reset-icdc.o
|
57 |
|
|
or32-rtems-ld -T ../support/xess-flash.ld $? -o $@.or32
|
58 |
|
|
or32-rtems-objcopy -O binary $@.or32 $@.bin
|
59 |
|
|
../utils/bin2srec $@.bin > $@.srec
|
60 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
61 |
|
|
cp $@.hex ../../sim/src/$@.mem
|
62 |
|
|
|
63 |
|
|
mul-O0.o: mul.c
|
64 |
|
|
or32-rtems-gcc -O0 $? -c -o $@
|
65 |
|
|
|
66 |
|
|
mul-O2.o: mul.c
|
67 |
|
|
or32-rtems-gcc -O2 $? -c -o $@
|
68 |
|
|
|
69 |
|
|
clean:
|
70 |
|
|
rm -f *.o *.or32 *.log *.bin *.srec *.hex
|