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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [wrtmbr/] [Makefile] - Diff between revs 18 and 103

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 18 Rev 103
Line 5... Line 5...
BUILD = ../../build
BUILD = ../../build
 
 
SRC = start.s main.c end.s
SRC = start.s main.c end.s
BIN = wrtmbr.bin
BIN = wrtmbr.bin
MAP = wrtmbr.map
MAP = wrtmbr.map
 
EXO = wrtmbr.exo
 
 
.PHONY:         all install run clean
.PHONY:         all install run clean
 
 
all:            $(BIN)
all:            $(BIN) $(EXO)
 
 
install:        $(BIN)
install:        $(BIN) $(EXO)
                mkdir -p $(BUILD)/stdalone
                mkdir -p $(BUILD)/stdalone
                cp $(BIN) $(BUILD)/stdalone
                cp $(BIN) $(BUILD)/stdalone
                cp $(MAP) $(BUILD)/stdalone
                cp $(MAP) $(BUILD)/stdalone
 
                cp $(EXO) $(BUILD)/stdalone
 
 
run:            $(BIN)
run:            $(BIN)
                $(BUILD)/bin/sim -i -t 1 -l $(BIN) -d $(BUILD)/disk/disk.img
                $(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000 \
 
                  -d $(BUILD)/run/disk.img
 
 
 
$(EXO):         $(BIN)
 
                $(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
 
 
$(BIN):         $(SRC) mbr/mbr.dump
$(BIN):         $(SRC) mbr/mbr.dump
                $(BUILD)/bin/lcc -A -Wo-kernel \
                $(BUILD)/bin/lcc -A -Wo-kernel \
                  -Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
                  -Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
 
 
mbr/mbr.dump:
mbr/mbr.dump:
                $(MAKE) -C mbr
                $(MAKE) -C mbr
 
 
clean:
clean:
                $(MAKE) -C mbr clean
                $(MAKE) -C mbr clean
                rm -f *~ $(BIN) $(MAP)
                rm -f *~ $(BIN) $(MAP) $(EXO)
                rm -f *~ $(BIN) $(MAP) $(EXO)
                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.