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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fpga/] [tests/] [test_053/] [Makefile] - Rev 295

Compare with Previous | Blame | View Log

#
# Makefile to build the test
#

BUILD = ../../../build

ROM_SIZE_KB = 64

BIN = test_053.bin
DAT = test_053.dat

all:            $(DAT)

install:        $(DAT)

$(DAT):         $(BIN)
                $(BUILD)/bin/bin2dat $(BIN) $(DAT) $(ROM_SIZE_KB)

$(BIN):         copy/copy.bin loop/loop.bin
                cat copy/copy.bin loop/loop.bin >$(BIN)

copy/copy.bin:  size.s
                $(MAKE) -C copy all

size.s:         loop/loop.bin
                /bin/echo -e ";" >size.s
                /bin/echo -e "; set number of bytes to be copied" >>size.s
                /bin/echo -e ";" >>size.s
                /bin/echo -e -n "\t.set\tsize," >>size.s
                stat -c %s loop/loop.bin >>size.s
                /bin/echo -e "\t.export\tsize" >>size.s

loop/loop.bin:
                $(MAKE) -C loop all

clean:
                rm -f *~ size.s $(BIN) $(DAT)
                $(MAKE) -C copy clean
                $(MAKE) -C loop clean

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.