Changeset 389f41e in mainline for arch/mips32/boot/Makefile


Ignore:
Timestamp:
2005-11-08T11:57:23Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f85c91
Parents:
5b65205
Message:

new build system almost finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/boot/Makefile

    r5b65205 r389f41e  
    1 MIPS_BINUTILS_DIR=/usr/local/mipsel/bin
    2 MIPS_TARGET=mipsel-linux-gnu
     1.PHONY: build clean
    32
    4 .PHONY: nothing build
    5 
    6 nothing:
     3CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mips3 -I../include
    74
    85build: boot.bin
    96        cp boot.bin ../../../load.bin
    107
    11 AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
    12 CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc
    13 LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
     8boot.bin: boot.o
     9        $(LD) -e start -T _link.ld boot.o -o $@
    1410
    15 AFLAGS=-mips2 -I../../../generic/include
    16 LFLAGS=--oformat=binary -e start -T _link.ld
    17 
    18 .S.o:
    19         $(CC) $(ASFLAGS) -c -o $@ $<
    20 
    21 boot.bin: boot.o
    22         $(LD) $(LFLAGS) $< -o $@
    23 
     11boot.o: boot.S
     12        $(CC) $(CFLAGS) -c boot.S -o $@
    2413
    2514clean:
    26         -rm *.o *.bin
     15        -rm -f boot.o boot.bin ../../../load.bin
Note: See TracChangeset for help on using the changeset viewer.