Rev 156 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 156 | Rev 162 | ||
---|---|---|---|
- | 1 | PPC_BINUTILS_DIR=/usr/local/ppc/bin |
|
- | 2 | PPC_TARGET=ppc-linux-gnu |
|
- | 3 | ||
1 | .PHONY: nothing build |
4 | .PHONY: nothing build |
2 | 5 | ||
3 | nothing: |
6 | nothing: |
4 | 7 | ||
5 | build: boot.bin |
8 | build: boot.bin |
6 | cp boot.bin ../../../src/load.bin |
9 | cp boot.bin ../../../src/load.bin |
7 | 10 | ||
8 | AS=/usr/local/mips/bin/decstation-ultrix-as |
11 | AS=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-as |
9 | LD=/usr/local/mips/bin/decstation-ultrix-ld |
12 | LD=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-ld |
10 | 13 | ||
11 | ASFLAGS=-mips2 -EL |
14 | ASFLAGS= |
12 | LFLAGS=--oformat=binary -mips2 -EL -e start |
15 | LFLAGS=--oformat=binary -e start |
13 | 16 | ||
14 | boot.bin: boot.o |
17 | boot.bin: boot.o |
15 | $(LD) $(LFLAGS) boot.o -o $@ |
18 | $(LD) $(LFLAGS) boot.o -o $@ |
16 | 19 | ||
17 | boot.o: |
20 | boot.o: |
18 | $(AS) boot.s -o $@ |
21 | $(AS) boot.s -o $@ |
19 | 22 | ||
20 | clean: |
23 | clean: |
21 | -rm *.o *.bin |
24 | -rm *.o *.bin |
22 | 25 |