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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fpga/] [tests/] [test_100/] [Makefile] - Blame information for rev 302

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

Line No. Rev Author Line
1 295 hellwig
#
2
# Makefile to build the "hello world" test
3
#
4
 
5
BUILD = ../../../build
6
 
7
ROM_SIZE_KB = 64
8
 
9
BIN = test_100.bin
10
DAT = test_100.dat
11
 
12
all:            $(DAT)
13
 
14
install:        $(DAT)
15
 
16
$(DAT):         $(BIN)
17
                $(BUILD)/bin/bin2dat $(BIN) $(DAT) $(ROM_SIZE_KB)
18
 
19
$(BIN):         copy/copy.bin hello/hello.bin
20
                cat copy/copy.bin hello/hello.bin >$(BIN)
21
 
22
copy/copy.bin:  size.s
23
                $(MAKE) -C copy all
24
 
25
size.s:         hello/hello.bin
26
                /bin/echo -e ";" >size.s
27
                /bin/echo -e "; set number of bytes to be copied" >>size.s
28
                /bin/echo -e ";" >>size.s
29
                /bin/echo -e -n "\t.set\tsize," >>size.s
30
                stat -c %s hello/hello.bin >>size.s
31
                /bin/echo -e "\t.export\tsize" >>size.s
32
 
33
hello/hello.bin:
34
                $(MAKE) -C hello all
35
 
36
clean:
37
                rm -f *~ size.s $(BIN) $(DAT)
38
                $(MAKE) -C copy clean
39
                $(MAKE) -C hello clean

powered by: WebSVN 2.1.0

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