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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [mkpart/] [Makefile] - Blame information for rev 60

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

Line No. Rev Author Line
1 18 hellwig
#
2
# Makefile for "mkpart", a program to write the partition table
3
# and the bootblock on a hard disk
4
#
5
 
6
BUILD = ../../build
7
 
8
SRC = start.s main.c iolib.c biolib.c end.s
9
BIN = mkpart.bin
10
MAP = mkpart.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) -d $(BUILD)/disk/disk.img
23
 
24
$(BIN):         $(SRC) mboot.dump
25
                $(BUILD)/bin/lcc -A -Wo-kernel \
26
                  -Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
27
 
28
mboot.dump:     dump/dump mboot
29
                ./dump/dump mboot mboot.dump
30
 
31
dump/dump:
32
                $(MAKE) -C dump all
33
 
34
mboot:          mkmboot/mbootblk mkptbl/parttbl
35
                dd if=/dev/zero of=mboot bs=512 count=32
36
                dd if=mkmboot/mbootblk of=mboot bs=512 conv=notrunc
37
                dd if=mkptbl/parttbl of=mboot bs=512 seek=1 conv=notrunc
38
 
39
mkptbl/parttbl:
40
                $(MAKE) -C mkptbl all
41
 
42
mkmboot/mbootblk:
43
                $(MAKE) -C mkmboot all
44
 
45
clean:
46
                $(MAKE) -C dump clean
47
                $(MAKE) -C mkptbl clean
48
                $(MAKE) -C mkmboot clean
49
                rm -f *~ mboot mboot.dump $(BIN) $(MAP)

powered by: WebSVN 2.1.0

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