URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 18 |
Rev 94 |
#
|
#
|
# Makefile for "hello", a program for testing the boot loader
|
# Makefile for "hello", a program for testing the boot loader
|
#
|
#
|
|
|
BUILD = ../../build
|
BUILD = ../../build
|
|
|
SRC = hello.s
|
SRC = hello.s
|
OBJ = hello.o
|
OBJ = hello.o
|
BIN = hello.bin
|
BIN = hello.bin
|
MAP = hello.map
|
MAP = hello.map
|
|
EXO = hello.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)
|
$(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000
|
|
|
|
$(EXO): $(BIN)
|
|
$(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
|
|
|
$(BIN): $(OBJ)
|
$(BIN): $(OBJ)
|
$(BUILD)/bin/ld -h -rc 0xC0000000 \
|
$(BUILD)/bin/ld -h -rc 0xC0010000 \
|
-m $(MAP) -o $(BIN) $(OBJ)
|
-m $(MAP) -o $(BIN) $(OBJ)
|
|
|
$(OBJ): $(SRC)
|
$(OBJ): $(SRC)
|
$(BUILD)/bin/as -o $(OBJ) $(SRC)
|
$(BUILD)/bin/as -o $(OBJ) $(SRC)
|
|
|
clean:
|
clean:
|
rm -f *~ $(OBJ) $(BIN) $(MAP)
|
rm -f *~ $(OBJ) $(BIN) $(MAP) $(EXO)
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.