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

Subversion Repositories minsoc

[/] [minsoc/] [tags/] [release-0.9/] [sw/] [eth/] [Makefile] - Diff between revs 2 and 36

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 36
Line 1... Line 1...
include ../support/Makefile.inc
 
cases = eth-nocache eth-icdc
cases = eth-nocache eth-icdc
common = ../support/libsupport.a ../support/except.o
common = ../support/libsupport.a ../support/except.o
 
drivers = ../drivers/libdrivers.a
 
 
all: $(cases)
all: $(cases)
 
 
eth-nocache: eth.o ../support/reset-nocache.o $(common)
eth-nocache: eth.o ../support/reset-nocache.o $(common) $(drivers)
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -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
 
 
 
 
eth-icdc: eth.o ../support/reset-icdc.o
eth-icdc: eth.o ../support/reset-icdc.o $(common) $(drivers)
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -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
 
 
 
 
eth.o: eth.c
eth.o: eth.c
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $? -c -o $@
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $? -c -o $@
 
 
 
include ../support/Makefile.inc

powered by: WebSVN 2.1.0

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