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

Subversion Repositories mblite

[/] [mblite/] [trunk/] [sw/] [hello_world/] [Makefile] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 takar
# Makefile by Takar
2
 
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=0x4000 -Wl,-defsym -Wl,_HEAP_SIZE=0x4000
10
LIBFLAGS=
11
INCFLAGS=
12
 
13
cc:
14
        $(CC) $(XILFLAGS) $(CXXFLAGS) $(LNKFLAGS) $(LIBFLAGS) $(INCFLAGS) $(CCFLAGS) $(SRCS) -o $(ELFFILE).elf
15
 
16
listing: cc
17
        mb-objdump -DSCz $(ELFFILE).elf > $(ELFFILE).dump
18
 
19
bin: cc
20
        mb-objcopy -O binary $(ELFFILE).elf $(ELFFILE).bin
21
 
22
mem: bin
23
        ../util/bin2mem < $(ELFFILE).bin > $(ELFFILE).mem
24
        ../util/bin2mem4 < $(ELFFILE).bin
25
 
26
vhd: bin
27
        ../util/bin2rom $(ELFFILE).bin $(ELFFILE).vhd 12
28
 
29
all: cc listing bin mem
30
 
31
clean:
32
        rm -f *~ *.bak $(ELFFILE).elf *.mem $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin

powered by: WebSVN 2.1.0

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