source:
mainline/arch/mips32/boot/Makefile@
fd3c9e5
Last change on this file since fd3c9e5 was c9ed176, checked in by , 20 years ago | |
---|---|
|
|
File size: 464 bytes |
Rev | Line | |
---|---|---|
[0970f43] | 1 | MIPS_BINUTILS_DIR=/usr/local/mipsel/bin |
2 | MIPS_TARGET=mipsel-linux-gnu | |
[f761f1eb] | 3 | |
4 | .PHONY: nothing build | |
5 | ||
6 | nothing: | |
7 | ||
8 | build: boot.bin | |
[c9ed176] | 9 | cp boot.bin ../../../load.bin |
[f761f1eb] | 10 | |
11 | AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as | |
[e84439a] | 12 | CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc |
[f761f1eb] | 13 | LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld |
14 | ||
[e84439a] | 15 | ASFLAGS=-mips2 -I../../../include |
[24241cf] | 16 | LFLAGS=--oformat=binary -e start -T _link.ld |
[f761f1eb] | 17 | |
[e84439a] | 18 | .S.o: |
19 | $(CC) $(ASFLAGS) -c -o $@ $< | |
20 | ||
[f761f1eb] | 21 | boot.bin: boot.o |
[e84439a] | 22 | $(LD) $(LFLAGS) $< -o $@ |
[f761f1eb] | 23 | |
24 | ||
25 | clean: | |
26 | -rm *.o *.bin |
Note:
See TracBrowser
for help on using the repository browser.