Rev 430 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 430 | Rev 455 | ||
---|---|---|---|
1 | MIPS_BINUTILS_DIR=/usr/local/mipsel/bin |
1 | MIPS_BINUTILS_DIR=/usr/local/mipsel/bin |
2 | MIPS_TARGET=mipsel-linux-gnu |
2 | MIPS_TARGET=mipsel-linux-gnu |
3 | 3 | ||
4 | .PHONY: nothing build |
4 | .PHONY: nothing build |
5 | 5 | ||
6 | nothing: |
6 | nothing: |
7 | 7 | ||
8 | build: boot.bin |
8 | build: boot.bin |
9 | cp boot.bin ../../../load.bin |
9 | cp boot.bin ../../../load.bin |
10 | 10 | ||
11 | AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as |
11 | AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as |
12 | CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc |
12 | CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc |
13 | LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld |
13 | LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld |
14 | 14 | ||
15 | ASFLAGS=-mips2 -I../../../generic/include |
15 | AFLAGS=-mips2 -I../../../generic/include |
16 | LFLAGS=--oformat=binary -e start -T _link.ld |
16 | LFLAGS=--oformat=binary -e start -T _link.ld |
17 | 17 | ||
18 | .S.o: |
18 | .S.o: |
19 | $(CC) $(ASFLAGS) -c -o $@ $< |
19 | $(CC) $(ASFLAGS) -c -o $@ $< |
20 | 20 | ||
21 | boot.bin: boot.o |
21 | boot.bin: boot.o |
22 | $(LD) $(LFLAGS) $< -o $@ |
22 | $(LD) $(LFLAGS) $< -o $@ |
23 | 23 | ||
24 | 24 | ||
25 | clean: |
25 | clean: |
26 | -rm *.o *.bin |
26 | -rm *.o *.bin |
27 | 27 |