URL
https://opencores.org/ocsvn/test_project/test_project/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
25 |
julius |
include ../support/Makefile.inc
|
2 |
|
|
#ADDED BY ME
|
3 |
|
|
cases = dhry-nocache-O0 dhry-nocache-O2 dhry-icdc-O2
|
4 |
|
|
#common = ../support/libsupport.a
|
5 |
|
|
common = ../support/libsupport.a /opt/$(OR32_TOOL_PREFIX)/lib/gcc/$(OR32_TOOL_PREFIX)/4.2.2/libgcc.a
|
6 |
|
|
|
7 |
|
|
all: $(cases)
|
8 |
|
|
|
9 |
|
|
dhry-nocache-O0: dhry-O0.o ../support/reset-nocache.o $(common)
|
10 |
|
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
11 |
|
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
12 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
13 |
|
|
|
14 |
|
|
dhry-nocache-O2: dhry-O2.o ../support/reset-nocache.o $(common)
|
15 |
|
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
16 |
|
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
17 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
18 |
|
|
|
19 |
|
|
dhry-icdc-O2: dhry-O2.o ../support/reset-icdc.o $(common)
|
20 |
|
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
21 |
|
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
22 |
|
|
../utils/bin2hex $@.bin > $@.hex
|
23 |
|
|
|
24 |
|
|
dhry-O0.o: dhry.c
|
25 |
|
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O0 $? -mhard-div -c -o $@
|
26 |
|
|
|
27 |
|
|
dhry-O2.o: dhry.c
|
28 |
|
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O2 $? -mhard-div -c -o $@
|
29 |
|
|
|
30 |
|
|
clean:
|
31 |
|
|
rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.