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

Subversion Repositories myblaze

[/] [myblaze/] [trunk/] [rtl/] [Makefile] - Blame information for rev 5

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 rockee
# Makefile by rockee
2 2 rockee
 
3
SRCS=testbench.c
4
ELFFILE=rom
5
CC=mb-gcc
6
 
7
XILFLAGS=-mxl-soft-div -msoft-float -mxl-barrel-shift -mno-xl-soft-mul
8
CXXFLAGS=-g -ansi -pedantic -Wall
9
LNKFLAGS=-Wl,-defsym -Wl,_STACK_SIZE=0x400 -Wl,-defsym -Wl,_HEAP_SIZE=0x400
10
LIBFLAGS=
11
INCFLAGS=
12
SIZE=8192
13
 
14
cc:
15
        $(CC) $(XILFLAGS) $(CXXFLAGS) $(LNKFLAGS) $(LIBFLAGS) $(INCFLAGS) $(CCFLAGS) $(SRCS) -o $(ELFFILE).elf
16
 
17
ccx:
18
        mb-as test.asm -o $(ELFFILE).elf
19
 
20
listing: cc
21
        mb-objdump -DSCz $(ELFFILE).elf > $(ELFFILE).dump
22
 
23
bin: cc
24
        mb-objcopy -O binary $(ELFFILE).elf $(ELFFILE).bin
25
 
26
vhd: bin
27
        ../tools/bin2rom $(ELFFILE).bin $(ELFFILE).vhd 12
28
 
29
srec: cc
30
        mb-objcopy -O srec $(ELFFILE).elf $(ELFFILE).srec
31
 
32
mem: srec bin
33
        ../tools/bin2mem < $(ELFFILE).bin > $(ELFFILE).mem
34
        ../tools/bin2mem4 < $(ELFFILE).bin
35
        ../tools/srec2vram $(ELFFILE).srec 0 $(SIZE) > rom.vmem
36
        python top.py $(SIZE)
37
 
38
all: cc listing bin srec mem vhd
39
 
40
clean:
41
        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.