Line 1... |
Line 1... |
include ../support/Makefile.inc
|
include ../support/Makefile.inc
|
|
|
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
|
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
|
|
|
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)
|
|
|
mul-nocache-O0: mul-O0.o ../support/reset-nocache.o $(common)
|
mul-nocache-O0: mul-O0.o ../support/reset-nocache.o $(common)
|
|
|
$(OR32_TOOL_PREFIX)-gcc -nostdlib -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
|
|
|
|
|
mul-nocache-O2: mul-O2.o ../support/reset-nocache.o $(common)
|
mul-nocache-O2: mul-O2.o ../support/reset-nocache.o $(common)
|
|
|
$(OR32_TOOL_PREFIX)-gcc -nostdlib -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
|
|
|
|
|
mul-ic-O0: mul-O0.o ../support/reset-ic.o $(common)
|
mul-ic-O0: mul-O0.o ../support/reset-ic.o $(common)
|
|
|
$(OR32_TOOL_PREFIX)-gcc -nostdlib -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
|
|
|
|
|
mul-ic-O2: mul-O2.o ../support/reset-ic.o $(common)
|
mul-ic-O2: mul-O2.o ../support/reset-ic.o $(common)
|
|
|
$(OR32_TOOL_PREFIX)-gcc -nostdlib -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
|
|
|
|
|
mul-dc-O0: mul-O0.o ../support/reset-dc.o $(common)
|
mul-dc-O0: mul-O0.o ../support/reset-dc.o $(common)
|
|
|
$(OR32_TOOL_PREFIX)-gcc -nostdlib -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
|
|
|
|
|
mul-dc-O2: mul-O2.o ../support/reset-dc.o $(common)
|
mul-dc-O2: mul-O2.o ../support/reset-dc.o $(common)
|
|
|
$(OR32_TOOL_PREFIX)-gcc -nostdlib -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
|
|
|
|
|
mul-icdc-O0: mul-O0.o ../support/reset-icdc.o $(common)
|
mul-icdc-O0: mul-O0.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
|
|
|
|
|
mul-icdc-O2: mul-O2.o ../support/reset-icdc.o $(common)
|
mul-icdc-O2: mul-O2.o ../support/reset-icdc.o $(common)
|
|
|
$(OR32_TOOL_PREFIX)-gcc -nostdlib -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
|
|
|
|
|
mul-O0.o: mul.c
|
mul-O0.o: mul.c
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -I../support -O0 $? -c -o $@
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -I../support -O0 $? -c -o $@
|
|
|
mul-O2.o: mul.c
|
mul-O2.o: mul.c
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -I../support -O2 $? -c -o $@
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -I../support -O2 $? -c -o $@
|
|
|
clean:
|
|
rm -f *.o *.or32 *.log *.bin *.hex *.log stdout.txt
|
|