patch-1.3.22 linux/arch/alpha/boot/Makefile
Next file: linux/arch/alpha/boot/bootloader.lds
Previous file: linux/arch/alpha/Makefile
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Tue Aug 29 10:15:48 1995
- Orig file:
v1.3.21/linux/arch/alpha/boot/Makefile
- Orig date:
Tue Aug 15 20:38:59 1995
diff -u --recursive --new-file v1.3.21/linux/arch/alpha/boot/Makefile linux/arch/alpha/boot/Makefile
@@ -8,22 +8,32 @@
# Copyright (C) 1994 by Linus Torvalds
#
+# enable this for linking under OSF/1:
+LINKFLAGS = -non_shared -T 0x20000000 -N
+# enable this for linking under Linux:
+#LINKFLAGS = -static -T bootloader.lds -N
+
.S.s:
$(CC) -D__ASSEMBLY__ -traditional -E -o $*.o $<
.S.o:
$(CC) -D__ASSEMBLY__ -traditional -c -o $*.o $<
OBJECTS = head.o main.o
+TARGETS = tools/lxboot tools/bootlx vmlinux vmlinux.gz
-all: tools/lxboot tools/bootlx vmlinux
- @echo run mkfloppy on machine with floppy drive
+all: $(TARGETS)
+ @echo Ready to install kernel in $(shell pwd)/vmlinux.gz
msb: tools/lxboot tools/bootlx vmlinux
( cat tools/lxboot tools/bootlx vmlinux ) > /dev/rz0a
disklabel -rw rz0 'linux' tools/lxboot tools/bootlx
+vmlinux.gz: vmlinux
+ gzip -fv vmlinux
+
vmlinux: tools/build $(TOPDIR)/vmlinux
- tools/build -v $(TOPDIR)/vmlinux > vmlinux
+ cp $(TOPDIR)/vmlinux vmlinux
+ quickstrip vmlinux
tools/lxboot: tools/build
tools/build > tools/lxboot
@@ -35,13 +45,13 @@
$(HOSTCC) tools/build.c -o tools/build
bootloader: $(OBJECTS)
- $(LD) -non_shared -T 0x20000000 -N \
+ $(LD) $(LINKFLAGS) \
$(OBJECTS) \
$(LIBS) \
-o bootloader || \
(rm -f bootloader && exit 1)
clean:
- rm -f vmlinux bootloader tools/build tools/bootlx tools/lxboot
+ rm -f $(TARGETS) bootloader tools/build
dep:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this