source: mainline/arch/mips/boot/Makefile@ 5a5ed25

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 5a5ed25 was 0970f43, checked in by Martin Decky <martin@…>, 20 years ago

Make MIPS target compile and link properly with the new 4.0.1 MIPS toolchain

  • Property mode set to 100644
File size: 395 bytes
Line 
1MIPS_BINUTILS_DIR=/usr/local/mipsel/bin
2MIPS_TARGET=mipsel-linux-gnu
3
4.PHONY: nothing build
5
6nothing:
7
8build: boot.bin
9 cp boot.bin ../../../src/load.bin
10
11AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
12LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
13
14ASFLAGS=-mips2
15LFLAGS=--oformat=binary -mips2 -e start
16
17boot.bin: boot.o
18 $(LD) $(LFLAGS) boot.o -o $@
19
20boot.o:
21 $(AS) boot.s -o $@
22
23clean:
24 -rm *.o *.bin
Note: See TracBrowser for help on using the repository browser.