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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [hello/] [Makefile] - Blame information for rev 179

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

Line No. Rev Author Line
1 18 hellwig
#
2
# Makefile for "hello", a program for testing the boot loader
3
#
4
 
5
BUILD = ../../build
6
 
7
SRC = hello.s
8
OBJ = hello.o
9
BIN = hello.bin
10
MAP = hello.map
11 94 hellwig
EXO = hello.exo
12 18 hellwig
 
13
.PHONY:         all install run clean
14
 
15 94 hellwig
all:            $(BIN) $(EXO)
16 18 hellwig
 
17 94 hellwig
install:        $(BIN) $(EXO)
18 18 hellwig
                mkdir -p $(BUILD)/stdalone
19
                cp $(BIN) $(BUILD)/stdalone
20
                cp $(MAP) $(BUILD)/stdalone
21 94 hellwig
                cp $(EXO) $(BUILD)/stdalone
22 18 hellwig
 
23
run:            $(BIN)
24 94 hellwig
                $(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000
25 18 hellwig
 
26 94 hellwig
$(EXO):         $(BIN)
27
                $(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
28
 
29 18 hellwig
$(BIN):         $(OBJ)
30 94 hellwig
                $(BUILD)/bin/ld -h -rc 0xC0010000 \
31 18 hellwig
                  -m $(MAP) -o $(BIN) $(OBJ)
32
 
33
$(OBJ):         $(SRC)
34
                $(BUILD)/bin/as -o $(OBJ) $(SRC)
35
 
36
clean:
37 94 hellwig
                rm -f *~ $(OBJ) $(BIN) $(MAP) $(EXO)

powered by: WebSVN 2.1.0

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