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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [wrtmbr/] [Makefile] - Blame information for rev 124

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

Line No. Rev Author Line
1 18 hellwig
#
2
# Makefile for "wrtmbr", a program to write a dummy MBR to the disk
3
#
4
 
5
BUILD = ../../build
6
 
7
SRC = start.s main.c end.s
8
BIN = wrtmbr.bin
9
MAP = wrtmbr.map
10 103 hellwig
EXO = wrtmbr.exo
11 18 hellwig
 
12
.PHONY:         all install run clean
13
 
14 103 hellwig
all:            $(BIN) $(EXO)
15 18 hellwig
 
16 103 hellwig
install:        $(BIN) $(EXO)
17 18 hellwig
                mkdir -p $(BUILD)/stdalone
18
                cp $(BIN) $(BUILD)/stdalone
19
                cp $(MAP) $(BUILD)/stdalone
20 103 hellwig
                cp $(EXO) $(BUILD)/stdalone
21 18 hellwig
 
22
run:            $(BIN)
23 103 hellwig
                $(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000 \
24
                  -d $(BUILD)/run/disk.img
25 18 hellwig
 
26 103 hellwig
$(EXO):         $(BIN)
27
                $(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
28
 
29 18 hellwig
$(BIN):         $(SRC) mbr/mbr.dump
30
                $(BUILD)/bin/lcc -A -Wo-kernel \
31
                  -Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
32
 
33
mbr/mbr.dump:
34
                $(MAKE) -C mbr
35
 
36
clean:
37
                $(MAKE) -C mbr clean
38 103 hellwig
                rm -f *~ $(BIN) $(MAP) $(EXO)

powered by: WebSVN 2.1.0

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