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

Subversion Repositories myblaze

[/] [myblaze/] [trunk/] [rtl/] [Makefile] - Diff between revs 5 and 6

Only display areas with differences | Details | Blame | View Log

Rev 5 Rev 6
# Makefile by rockee
# Makefile by rockee
SRCS=testbench.c
SRCS=testbench.c
ELFFILE=rom
ELFFILE=rom
CC=mb-gcc
CC=mb-gcc
XILFLAGS=-mxl-soft-div -msoft-float -mxl-barrel-shift -mno-xl-soft-mul
XILFLAGS=-mxl-soft-div -msoft-float -mxl-barrel-shift -mno-xl-soft-mul
CXXFLAGS=-g -ansi -pedantic -Wall
CXXFLAGS=-g -ansi -pedantic -Wall
LNKFLAGS=-Wl,-defsym -Wl,_STACK_SIZE=0x400 -Wl,-defsym -Wl,_HEAP_SIZE=0x400
LNKFLAGS=-L/home/daniel/Applications/Xilinx/10.1/EDK/gnu/microblaze/lin64/lib -I/home/daniel/Applications/Xilinx/10.1/EDK/gnu/microblaze/lin64/include/ -Wl,-defsym -Wl,_STACK_SIZE=0x400 -Wl,-defsym -Wl,_HEAP_SIZE=0x400
LIBFLAGS=
LIBFLAGS=
INCFLAGS=
INCFLAGS=
SIZE=8192
SIZE=8192
cc:
cc:
        $(CC) $(XILFLAGS) $(CXXFLAGS) $(LNKFLAGS) $(LIBFLAGS) $(INCFLAGS) $(CCFLAGS) $(SRCS) -o $(ELFFILE).elf
        $(CC) $(XILFLAGS) $(CXXFLAGS) $(LNKFLAGS) $(LIBFLAGS) $(INCFLAGS) $(CCFLAGS) $(SRCS) -o $(ELFFILE).elf
ccx:
ccx:
        mb-as test.asm -o $(ELFFILE).elf
        mb-as test.asm -o $(ELFFILE).elf
listing: cc
listing: cc
        mb-objdump -DSCz $(ELFFILE).elf > $(ELFFILE).dump
        mb-objdump -DSCz $(ELFFILE).elf > $(ELFFILE).dump
bin: cc
bin: cc
        mb-objcopy -O binary $(ELFFILE).elf $(ELFFILE).bin
        mb-objcopy -O binary $(ELFFILE).elf $(ELFFILE).bin
vhd: bin
vhd: bin
        ../tools/bin2rom $(ELFFILE).bin $(ELFFILE).vhd 12
        ../tools/bin2rom $(ELFFILE).bin $(ELFFILE).vhd 12
srec: cc
srec: cc
        mb-objcopy -O srec $(ELFFILE).elf $(ELFFILE).srec
        mb-objcopy -O srec $(ELFFILE).elf $(ELFFILE).srec
 
 
mem: srec bin
mem: srec bin listing
        ../tools/bin2mem < $(ELFFILE).bin > $(ELFFILE).mem
        ../tools/bin2mem < $(ELFFILE).bin > $(ELFFILE).mem
        ../tools/bin2mem4 < $(ELFFILE).bin
        ../tools/bin2mem4 < $(ELFFILE).bin
        ../tools/srec2vram $(ELFFILE).srec 0 $(SIZE) > rom.vmem
        ../tools/srec2vram 4 $(ELFFILE).srec 0 $(SIZE) > rom.vmem
        python top.py $(SIZE)
        python top.py $(SIZE)
all: cc listing bin srec mem vhd
all: cc listing bin srec mem vhd
clean:
clean:
        rm -f *~ *.bak *.pyc $(ELFFILE).elf *.mem $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin rom.vmem  $(ELFFILE).srec
        rm -f *~ *.bak *.pyc $(ELFFILE).elf *.mem $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin rom.vmem  $(ELFFILE).srec
 
 

powered by: WebSVN 2.1.0

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