blob: b05047c2a559a48ed2ce56fb46fdf5593a61378f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#
# arch/alpha/boot/Makefile
#
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1994 by Linus Torvalds
#
.c.s:
$(CC) $(CFLAGS) -S -o $*.s $<
.s.o:
$(AS) -o $*.o $<
.c.o:
$(CC) $(CFLAGS) -c -o $*.o $<
.S.s:
$(CC) -D__ASSEMBLY__ -traditional -E -o $*.o $<
.S.o:
$(CC) -D__ASSEMBLY__ -traditional -c -o $*.o $<
OBJECTS = head.o main.o
all: tools/lxboot tools/bootlx vmlinux
@echo run mkfloppy on machine with floppy drive
msb: tools/lxboot tools/bootlx vmlinux
( cat tools/lxboot tools/bootlx vmlinux ) > /dev/rz0a
disklabel -rw rz0 'linux' tools/lxboot tools/bootlx
vmlinux: tools/build $(TOPDIR)/vmlinux
tools/build -v $(TOPDIR)/vmlinux > vmlinux
tools/lxboot: tools/build
tools/build > tools/lxboot
tools/bootlx: bootloader tools/build
tools/build -vb bootloader > tools/bootlx
tools/build: tools/build.c
$(HOSTCC) tools/build.c -o tools/build
bootloader: $(OBJECTS)
$(LD) -non_shared -T 0x20000000 -N \
$(OBJECTS) \
$(LIBS) \
-o bootloader || \
(rm -f bootloader && exit 1)
clean:
rm -f vmlinux bootloader tools/build tools/bootlx tools/lxboot
dep:
|