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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [ethmac/] [sim/] [Makefile] - Diff between revs 44 and 349

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

Rev 44 Rev 349
Line 1... Line 1...
include ../support/Makefile.inc
include ../Makefile.inc
 
 
 
%.dis: %.elf
 
        $(Q)$(OR32_OBJDUMP) -d $< > $@
 
 
# We use our own except here, containing interrupt handler vector
%.bin: %.elf
common = except.o ../support/libsupport.a
        $(Q)$(OR32_OBJCOPY) -O binary $< $@
 
 
 
clean:
all: eth-basic eth-int
        $(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis
 
 
eth-basic: eth-basic.o ../support/reset-nocache.o $(common)
 
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -T ../support/orp.ld $? -o $@.or32 $(GCC_LIB_OPTS)
 
        $(OR32_TOOL_PREFIX)-objcopy  -O binary $@.or32 $@.bin
 
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
 
        ../utils/bin2vmem $@.bin > $@.vmem
 
 
 
eth-int: eth-int.o ../support/reset-nocache.o $(common)
 
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -T ../support/orp.ld $? -o $@.or32 $(GCC_LIB_OPTS)
 
        $(OR32_TOOL_PREFIX)-objcopy  -O binary $@.or32 $@.bin
 
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
 
        ../utils/bin2vmem $@.bin > $@.vmem
 
 
 
 
 
%.o: %.c
 
        $(OR32_TOOL_PREFIX)-gcc -DRTLSIM -I ../support $(GCC_OPT) -O2 -g -c -Wall $< -o $@
 
 
 
%.o: %.S
 
        $(OR32_TOOL_PREFIX)-gcc -DRTLSIM -I ../support $(GCC_OPT) -O2 -g -c -Wall $< -o $@
 
        $(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis
 

powered by: WebSVN 2.1.0

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