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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [wrtmbr/] [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 "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
 
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) -d $(BUILD)/disk/disk.img
22
 
23
$(BIN):         $(SRC) mbr/mbr.dump
24
                $(BUILD)/bin/lcc -A -Wo-kernel \
25
                  -Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
26
 
27
mbr/mbr.dump:
28
                $(MAKE) -C mbr
29
 
30
clean:
31
                $(MAKE) -C mbr clean
32
                rm -f *~ $(BIN) $(MAP)

powered by: WebSVN 2.1.0

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