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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [memsize/] [Makefile] - Blame information for rev 31

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

Line No. Rev Author Line
1 18 hellwig
#
2
# Makefile for "memsize", a program to determine the memory size
3
#
4
 
5
BUILD = ../../build
6
 
7
SRC = start.s main.c end.s
8
BIN = memsize.bin
9
MAP = memsize.map
10
 
11
.PHONY:         all install run clean
12
 
13
all:            $(BIN)
14
 
15
install:        $(BIN)
16
                mkdir -p $(BUILD)/stdalone
17
                cp $(BIN) $(BUILD)/stdalone
18
                cp $(MAP) $(BUILD)/stdalone
19
 
20
run:            $(BIN)
21
                $(BUILD)/bin/sim -i -t 1 -l $(BIN)
22
 
23
$(BIN):         $(SRC)
24
                $(BUILD)/bin/lcc -A -Wo-kernel \
25
                  -Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
26
 
27
clean:
28
                rm -f *~ $(BIN) $(MAP)

powered by: WebSVN 2.1.0

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