patch-2.1.124 linux/arch/sparc/boot/Makefile

Next file: linux/arch/sparc/boot/btfixupprep.c
Previous file: linux/arch/sparc/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.123/linux/arch/sparc/boot/Makefile linux/arch/sparc/boot/Makefile
@@ -1,16 +1,13 @@
-# $Id: Makefile,v 1.6 1998/02/23 01:44:39 rth Exp $
+# $Id: Makefile,v 1.8 1998/09/16 12:24:51 jj Exp $
 # Makefile for the Sparc boot stuff.
 #
 # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
-# Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
+# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
 
 ROOT_IMG	=/usr/src/root.img
 ELFTOAOUT	=elftoaout
 
-all: boot
-
-boot:
-	@echo "Nothing special to be done for 'boot' on Linux/SPARC."
+all: btfix.o
 
 tftpboot.img: piggyback
 	$(ELFTOAOUT) $(TOPDIR)/vmlinux -o tftpboot.img
@@ -22,8 +19,20 @@
 btfixupprep: btfixupprep.c
 	$(HOSTCC) $(HOSTCFLAGS) -o btfixupprep btfixupprep.c
 
-archclean:
-	rm -f btfixupprep piggyback tftpboot.img
+clean:
+	rm -f btfixupprep piggyback tftpboot.img btfix.o btfix.s
+
+BTOBJS := $(HEAD) init/main.o init/version.o \
+	$(CORE_FILES_NO_BTFIX) $(FILESYSTEMS) \
+	$(NETWORKS) $(DRIVERS)
+
+vmlinux.o: dummy
+	$(LD) -r $(patsubst %,$(TOPDIR)/%,$(BTOBJS)) $(LIBS) -o vmlinux.o
+
+btfix.s: btfixupprep vmlinux.o
+	$(OBJDUMP) -x vmlinux.o | ./btfixupprep > btfix.s
 
-dep:
+btfix.o: btfix.s
+	$(CC) -c -o btfix.o btfix.s
 
+include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov