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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [shpart/] [Makefile] - Rev 245

Compare with Previous | Blame | View Log

#
# Makefile for "shpart", a program to show the partitions on a hard disk
#

BUILD = ../../build

SRC = start.s main.c iolib.c biolib.c end.s
BIN = shpart.bin
MAP = shpart.map
EXO = shpart.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 -s 1 -t 0 -l $(BIN) -a 0x10000 \
                  -d $(BUILD)/run/disk.img

$(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)

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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