Index: arch/sparc64/boot/Makefile
===================================================================
--- arch/sparc64/boot/Makefile	(revision 81e13965b2696d0b2799d4d1e2c9512c9ef83aff)
+++ arch/sparc64/boot/Makefile	(revision 389f41e06a14f0aba9a75b27009ea4d49471a04d)
@@ -1,26 +1,15 @@
-BINUTILS_DIR=/usr/local/sparc64/bin
-TARGET=sparc64-linux-gnu
+.PHONY: build clean
 
-.PHONY: nothing build
-
-nothing:
+CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -I../include
 
 build: boot.bin
 	cp boot.bin ../../../load.bin
 
-CC=$(BINUTILS_DIR)/$(TARGET)-gcc
-AS=$(BINUTILS_DIR)/$(TARGET)-as
-LD=$(BINUTILS_DIR)/$(TARGET)-ld
+boot.bin: boot.a.out
+	dd if=/dev/zero of=$@ bs=512 count=16
+	dd if=boot.a.out of=$@ bs=512 seek=1 conv=notrunc
 
-CPPFLAGS=$(DEFS) -nostdinc -I../include
-CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O2
-LFLAGS=-no-check-sections -N -T _link.ld -s
-
-boot.bin: boot.aout
-	dd if=/dev/zero of=$@ bs=512 count=16
-	dd if=boot.aout of=$@ bs=512 seek=1 conv=notrunc
-
-boot.aout: boot.o
-	$(LD) $(LFLAGS) boot.o -o $@
+boot.a.out: boot.o
+	$(LD) -no-check-sections -N -T _link.ld -s boot.o -o $@
 
 boot.o: boot.S
@@ -28,3 +17,3 @@
 
 clean:
-	-rm *.o *.bin *.aout
+	-rm -f boot.o boot.a.out boot.bin ../../../load.bin
