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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [wrtmbr/] [mbr/] [Makefile] - Rev 40

Go to most recent revision | Compare with Previous | Blame | View Log

#
# Makefile for assembling the default master boot record
#

BUILD = ../../../build

.PHONY:         all clean

all:            mbr.dump

mbr.dump:       dump mbr.bin
                ./dump mbr.bin mbr.dump

dump:           dump.c
                gcc -m32 -g -Wall -o dump dump.c

mbr.bin:        mbr.o
                $(BUILD)/bin/ld -h -rc 0xC0000000 -o mbr.bin mbr.o

mbr.o:          mbr.s
                $(BUILD)/bin/as -o mbr.o mbr.s

clean:
                rm -f *~ dump mbr.o mbr.bin mbr.dump

Go to most recent revision | 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.