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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [uart/] [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 = uart-nocache uart-icdc
cases = uart-nocache uart-icdc
common = ../support/libsupport.a
common = ../support/libsupport.a ../support/except.o
 
 
all: $(cases)
all: $(cases)
 
 
uart-nocache: uart.o ../support/reset-nocache.o $(common)
uart-nocache: uart.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
 
 
 
 
uart-icdc: uart.o ../support/reset-icdc.o
uart-icdc: uart.o ../support/reset-icdc.o
        $(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 $(common)
        $(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
 
 
 
 
uart.o: uart.c
uart.o: uart.c
        $(OR32_TOOL_PREFIX)-gcc -O2 $? -c -o $@
        $(OR32_TOOL_PREFIX)-gcc -O2 $(GCC_OPT) $? -c -o $@
 
 
clean:
 
        rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt
 

powered by: WebSVN 2.1.0

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