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

Subversion Repositories eco32

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

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
 
12
.PHONY:         all install run clean
13
 
14
all:            $(BIN)
15
 
16
install:        $(BIN)
17
                mkdir -p $(BUILD)/stdalone
18
                cp $(BIN) $(BUILD)/stdalone
19
                cp $(MAP) $(BUILD)/stdalone
20
 
21
run:            $(BIN)
22
                $(BUILD)/bin/sim -i -t 1 -l $(BIN)
23
 
24
$(BIN):         $(OBJ)
25
                $(BUILD)/bin/ld -h -rc 0xC0000000 \
26
                  -m $(MAP) -o $(BIN) $(OBJ)
27
 
28
$(OBJ):         $(SRC)
29
                $(BUILD)/bin/as -o $(OBJ) $(SRC)
30
 
31
clean:
32
                rm -f *~ $(OBJ) $(BIN) $(MAP)

powered by: WebSVN 2.1.0

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