OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [cust/] [Makefile] - Diff between revs 45 and 52

Show entire file | Details | Blame | View Log

Rev 45 Rev 52
Line 1... Line 1...
include ../support/Makefile.inc
include ../support/Makefile.inc
cases = cust-nocache-O0 cust-nocache-O2 cust-ic-O0 cust-ic-O2 cust-dc-O0 cust-dc-O2 cust-icdc-O0 cust-icdc-O2
cases = cust-nocache-O0 cust-nocache-O2 cust-ic-O0 cust-ic-O2 cust-dc-O0 cust-dc-O2 cust-icdc-O0 cust-icdc-O2
common = ../support/libsupport.a
common = ../support/libsupport.a ../support/except.o
 
 
all: $(cases)
all: $(cases)
 
 
cust-nocache-O0: cust-O0.o ../support/reset-nocache.o $(common)
cust-nocache-O0: cust-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
 
 
 
 
cust-nocache-O2: cust-O2.o ../support/reset-nocache.o $(common)
cust-nocache-O2: cust-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
 
 
 
 
cust-ic-O0: cust-O0.o ../support/reset-ic.o
cust-ic-O0: cust-O0.o ../support/reset-ic.o $(common)
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
        $(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
 
 
 
 
cust-ic-O2: cust-O2.o ../support/reset-ic.o
cust-ic-O2: cust-O2.o ../support/reset-ic.o $(common)
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
        $(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
 
 
 
 
cust-dc-O0: cust-O0.o ../support/reset-dc.o
cust-dc-O0: cust-O0.o ../support/reset-dc.o $(common)
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
        $(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
 
 
 
 
cust-dc-O2: cust-O2.o ../support/reset-dc.o
cust-dc-O2: cust-O2.o ../support/reset-dc.o $(common)
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
        $(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
 
 
 
 
cust-icdc-O0: cust-O0.o ../support/reset-icdc.o
cust-icdc-O0: cust-O0.o ../support/reset-icdc.o $(common)
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
        $(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
 
 
 
 
cust-icdc-O2: cust-O2.o ../support/reset-icdc.o
cust-icdc-O2: cust-O2.o ../support/reset-icdc.o $(common)
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
        $(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
 
 
 
 
cust-O0.o: cust.c
cust-O0.o: cust.c
        $(OR32_TOOL_PREFIX)-gcc -O0 $? -c -o $@
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -O0 $? -c -o $@
 
 
cust-O2.o: cust.c
cust-O2.o: cust.c
        $(OR32_TOOL_PREFIX)-gcc -O2 $? -c -o $@
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -O2 $? -c -o $@
 
 
clean:
 
        rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.