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 |
45 |
julius |
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
| 13 |
|
|
../utils/bin2vmem $@.bin > $@.vmem
|
| 14 |
25 |
julius |
|
| 15 |
45 |
julius |
|
| 16 |
25 |
julius |
dhry-nocache-O2: dhry-O2.o ../support/reset-nocache.o $(common)
|
| 17 |
|
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
| 18 |
|
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
| 19 |
45 |
julius |
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
| 20 |
|
|
../utils/bin2vmem $@.bin > $@.vmem
|
| 21 |
25 |
julius |
|
| 22 |
45 |
julius |
|
| 23 |
25 |
julius |
dhry-icdc-O2: dhry-O2.o ../support/reset-icdc.o $(common)
|
| 24 |
|
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
| 25 |
|
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
| 26 |
45 |
julius |
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
| 27 |
|
|
../utils/bin2vmem $@.bin > $@.vmem
|
| 28 |
25 |
julius |
|
| 29 |
45 |
julius |
|
| 30 |
25 |
julius |
dhry-O0.o: dhry.c
|
| 31 |
|
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O0 $? -mhard-div -c -o $@
|
| 32 |
|
|
|
| 33 |
|
|
dhry-O2.o: dhry.c
|
| 34 |
|
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O2 $? -mhard-div -c -o $@
|
| 35 |
|
|
|
| 36 |
|
|
clean:
|
| 37 |
|
|
rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.