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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [simtest/] [disk/] [mkmbr/] [Makefile] - Blame information for rev 254

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

Line No. Rev Author Line
1 9 hellwig
#
2
# Makefile for assembling the master boot record
3
#
4
 
5
BUILD = ../../../build
6
 
7
SFILES = $(wildcard *.s)
8
OBJFILES = $(patsubst %.s,%.o,$(SFILES))
9
BINFILES = $(patsubst %.s,%.bin,$(SFILES))
10
 
11
.PHONY:         all install clean
12
.PRECIOUS:      $(OBJFILES)
13
 
14
all:            $(BINFILES)
15
 
16
install:        $(BINFILES)
17
                mkdir -p $(BUILD)/simtest
18
                cp $(BINFILES) $(BUILD)/simtest
19
 
20
%.bin:          %.o
21
                $(BUILD)/bin/ld -h -rc 0xC0000000 -o $@ $<
22
 
23
%.o:            %.s
24
                $(BUILD)/bin/as -o $@ $<
25
 
26
clean:
27
                rm -f *~ *.bin *.o

powered by: WebSVN 2.1.0

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