Line 1... |
Line 1... |
include ../support/Makefile.inc
|
include ../support/Makefile.inc
|
#ADDED BY ME
|
#ADDED BY ME
|
cases = dhry-nocache-O0 dhry-nocache-O2 dhry-icdc-O2
|
cases = dhry-nocache-O0 dhry-nocache-O2 dhry-icdc-O2
|
#common = ../support/libsupport.a
|
#common = ../support/libsupport.a
|
common = ../support/libsupport.a /opt/$(OR32_TOOL_PREFIX)/lib/gcc/$(OR32_TOOL_PREFIX)/4.2.2/libgcc.a
|
common = ../support/libsupport.a ../support/except.o
|
|
|
all: $(cases)
|
all: $(cases)
|
|
|
dhry-nocache-O0: dhry-O0.o ../support/reset-nocache.o $(common)
|
dhry-nocache-O0: dhry-O0.o ../support/reset-nocache.o $(common)
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2vmem $@.bin > $@.vmem
|
../utils/bin2vmem $@.bin > $@.vmem
|
|
|
|
|
dhry-nocache-O2: dhry-O2.o ../support/reset-nocache.o $(common)
|
dhry-nocache-O2: dhry-O2.o ../support/reset-nocache.o $(common)
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2vmem $@.bin > $@.vmem
|
../utils/bin2vmem $@.bin > $@.vmem
|
|
|
|
|
dhry-icdc-O2: dhry-O2.o ../support/reset-icdc.o $(common)
|
dhry-icdc-O2: dhry-O2.o ../support/reset-icdc.o $(common)
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2vmem $@.bin > $@.vmem
|
../utils/bin2vmem $@.bin > $@.vmem
|
|
|
|
|
dhry-O0.o: dhry.c
|
dhry-O0.o: dhry.c
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O0 $? -mhard-div -c -o $@
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O0 $(GCC_OPT) $? -mhard-div -c -o $@
|
|
|
dhry-O2.o: dhry.c
|
dhry-O2.o: dhry.c
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O2 $? -mhard-div -c -o $@
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O2 $(GCC_OPT) $? -mhard-div -c -o $@
|
|
|
clean:
|
|
rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt
|
|
$(OR32_TOOL_PREFIX)-gcc -I../support -O2 $(GCC_OPT) $? -mhard-div -c -o $@
|
|