URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [tags/] [eco32-0.23/] [stdalone/] [memsize/] [Makefile] - Rev 287
Go to most recent revision | Compare with Previous | Blame | View Log
#
# Makefile for "memsize", a program to determine the memory size
#
BUILD = ../../build
SRC = start.s main.c end.s
BIN = memsize.bin
MAP = memsize.map
EXO = memsize.exo
.PHONY: all install run clean
all: $(BIN) $(EXO)
install: $(BIN) $(EXO)
mkdir -p $(BUILD)/stdalone
cp $(BIN) $(BUILD)/stdalone
cp $(MAP) $(BUILD)/stdalone
cp $(EXO) $(BUILD)/stdalone
run: $(BIN)
$(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000
$(EXO): $(BIN)
$(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
$(BIN): $(SRC)
$(BUILD)/bin/lcc -A -Wo-kernel \
-Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
clean:
rm -f *~ $(BIN) $(MAP) $(EXO)
Go to most recent revision | Compare with Previous | Blame | View Log