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

Subversion Repositories mblite

[/] [mblite/] [tags/] [1.0/] [sw/] [testbench/] [Makefile] - Rev 2

Compare with Previous | Blame | View Log

# Makefile by Takar

SRCS=dhry.c testbench.c
ELFFILE=rom
CC=mb-gcc

XILFLAGS=-mxl-soft-div -msoft-float -mxl-barrel-shift -mno-xl-soft-mul
CXXFLAGS=-g -ansi -pedantic -Wall
LNKFLAGS=-Wl,-defsym -Wl,_STACK_SIZE=0x4000 -Wl,-defsym -Wl,_HEAP_SIZE=0x4000
LIBFLAGS=
INCFLAGS=

cc:
        $(CC) $(XILFLAGS) $(CXXFLAGS) $(LNKFLAGS) $(LIBFLAGS) $(INCFLAGS) $(CCFLAGS) $(SRCS) -o $(ELFFILE).elf

listing: cc
        mb-objdump -DSCz $(ELFFILE).elf > $(ELFFILE).dump

bin: cc
        mb-objcopy -O binary $(ELFFILE).elf $(ELFFILE).bin

mem: bin
        ../util/bin2mem < $(ELFFILE).bin > $(ELFFILE).mem

vhd: bin
        ../util/bin2rom $(ELFFILE).bin $(ELFFILE).vhd 14

all: cc listing bin mem vhd

clean:
        rm -f *~ *.bak $(ELFFILE).elf $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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