source: mainline/arch/mips32/boot/Makefile@ 6bc4dbd

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

new build system upgrade
finished work for IA-32, IA-64, PPC-32, SPARC-64

  • Property mode set to 100644
File size: 471 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 ../../../load.bin
10
11AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
12CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc
13LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
14
15AFLAGS=-mips2 -I../../../generic/include
16LFLAGS=--oformat=binary -e start -T _link.ld
17
18.S.o:
19 $(CC) $(ASFLAGS) -c -o $@ $<
20
21boot.bin: boot.o
22 $(LD) $(LFLAGS) $< -o $@
23
24
25clean:
26 -rm *.o *.bin
Note: See TracBrowser for help on using the repository browser.