lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 0ca6faa was f761f1eb, checked in by Jakub Jermar <jakub@…>, 21 years ago |
Initial import
|
-
Property mode
set to
100644
|
File size:
402 bytes
|
Rev | Line | |
---|
[f761f1eb] | 1 | MIPS_BINUTILS_DIR=/usr/local/mips/bin
|
---|
| 2 | MIPS_TARGET=decstation-ultrix
|
---|
| 3 |
|
---|
| 4 | .PHONY: nothing build
|
---|
| 5 |
|
---|
| 6 | nothing:
|
---|
| 7 |
|
---|
| 8 | build: boot.bin
|
---|
| 9 | cp boot.bin ../../../src/load.bin
|
---|
| 10 |
|
---|
| 11 | AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
|
---|
| 12 | LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
|
---|
| 13 |
|
---|
| 14 | ASFLAGS=-mips2 -EL
|
---|
| 15 | LFLAGS=--oformat=binary -mips2 -EL -e start
|
---|
| 16 |
|
---|
| 17 | boot.bin: boot.o
|
---|
| 18 | $(LD) $(LFLAGS) boot.o -o $@
|
---|
| 19 |
|
---|
| 20 | boot.o:
|
---|
| 21 | $(AS) boot.s -o $@
|
---|
| 22 |
|
---|
| 23 | clean:
|
---|
| 24 | -rm *.o *.bin
|
---|
Note:
See
TracBrowser
for help on using the repository browser.