URL
https://opencores.org/ocsvn/mblite/mblite/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 5 |
Line 1... |
Line 1... |
# Makefile by Takar
|
# Makefile by Takar
|
|
|
SRCS=dhry.c 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
|
Line 19... |
Line 19... |
bin: cc
|
bin: cc
|
mb-objcopy -O binary $(ELFFILE).elf $(ELFFILE).bin
|
mb-objcopy -O binary $(ELFFILE).elf $(ELFFILE).bin
|
|
|
mem: bin
|
mem: bin
|
../util/bin2mem < $(ELFFILE).bin > $(ELFFILE).mem
|
../util/bin2mem < $(ELFFILE).bin > $(ELFFILE).mem
|
|
../util/bin2mem4 < $(ELFFILE).bin
|
|
|
vhd: bin
|
vhd: bin
|
../util/bin2rom $(ELFFILE).bin $(ELFFILE).vhd 14
|
../util/bin2rom $(ELFFILE).bin $(ELFFILE).vhd 12
|
|
|
all: cc listing bin mem vhd
|
all: cc listing bin mem
|
|
|
clean:
|
clean:
|
rm -f *~ *.bak $(ELFFILE).elf $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin
|
rm -f *~ *.bak $(ELFFILE).elf *.mem $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin
|
rm -f *~ *.bak $(ELFFILE).elf *.mem $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin
|
rm -f *~ *.bak $(ELFFILE).elf *.mem $(ELFFILE).dump $(ELFFILE).srec $(ELFFILE).vmem $(ELFFILE).mem $(ELFFILE).vhd $(ELFFILE).bin
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.