URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 104 |
Rev 245 |
#
|
#
|
# Makefile for "dskchk", a program to check the hard disk interface
|
# Makefile for "dskchk", a program to check the hard disk interface
|
#
|
#
|
|
|
BUILD = ../../build
|
BUILD = ../../build
|
|
|
SRC = start.s main.c end.s
|
SRC = start.s main.c end.s
|
BIN = dskchk.bin
|
BIN = dskchk.bin
|
MAP = dskchk.map
|
MAP = dskchk.map
|
EXO = dskchk.exo
|
EXO = dskchk.exo
|
|
|
.PHONY: all install run clean
|
.PHONY: all install run clean
|
|
|
all: $(BIN) $(EXO)
|
all: $(BIN) $(EXO)
|
|
|
install: $(BIN) $(EXO)
|
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
|
cp $(EXO) $(BUILD)/stdalone
|
|
|
run: $(BIN)
|
run: $(BIN)
|
$(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000 \
|
$(BUILD)/bin/sim -i -s 1 -t 0 -l $(BIN) -a 0x10000 \
|
-d $(BUILD)/run/disk.img
|
-d $(BUILD)/run/disk.img
|
|
|
$(EXO): $(BIN)
|
$(EXO): $(BIN)
|
$(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
|
$(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
|
|
|
$(BIN): $(SRC)
|
$(BIN): $(SRC)
|
$(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)
|
|
|
clean:
|
clean:
|
rm -f *~ $(BIN) $(MAP) $(EXO)
|
rm -f *~ $(BIN) $(MAP) $(EXO)
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.