4 # This file is subject to the terms and conditions of the GNU General Public
5 # License. See the file "COPYING" in the main directory of this archive
8 # Copyright (C) 1998-2000 by David Mosberger-Tang <davidm@hpl.hp.com>
11 NM
:= $(CROSS_COMPILE
)nm
-B
16 LINKFLAGS
= -static
-T arch
/$(ARCH
)/vmlinux.lds
20 CFLAGS
:= $(CFLAGS
) -pipe
$(EXTRA
) -Wa
,-x
-ffixed-r13
-mfixed-range
=f10-f15
,f32-f127 \
22 CFLAGS_KERNEL
:= -mconstant-gp
24 ifdef CONFIG_IA64_GENERIC
25 CORE_FILES
:= arch
/$(ARCH
)/hp
/hp.a \
26 arch
/$(ARCH
)/sn
/sn.a \
27 arch
/$(ARCH
)/dig
/dig.a \
29 SUBDIRS
:= arch
/$(ARCH
)/hp \
37 ifdef CONFIG_IA64_HP_SIM
38 SUBDIRS
:= arch
/$(ARCH
)/hp \
40 CORE_FILES
:= arch
/$(ARCH
)/hp
/hp.a \
44 ifdef CONFIG_IA64_SGI_SN1_SIM
45 SUBDIRS
:= arch
/$(ARCH
)/sn
/sn1 \
48 CORE_FILES
:= arch
/$(ARCH
)/sn
/sn.a \
52 ifdef CONFIG_IA64_SOFTSDV
53 SUBDIRS
:= arch
/$(ARCH
)/dig \
55 CORE_FILES
:= arch
/$(ARCH
)/dig
/dig.a \
60 SUBDIRS
:= arch
/$(ARCH
)/dig \
62 CORE_FILES
:= arch
/$(ARCH
)/dig
/dig.a \
68 ifdef CONFIG_IA32_SUPPORT
69 SUBDIRS
:= arch
/$(ARCH
)/ia32
$(SUBDIRS
)
70 CORE_FILES
:= arch
/$(ARCH
)/ia32
/ia32.o
$(CORE_FILES
)
73 HEAD
:= arch
/$(ARCH
)/kernel
/head.o arch
/ia64
/kernel
/init_task.o
75 SUBDIRS
:= arch
/$(ARCH
)/tools arch
/$(ARCH
)/kernel arch
/$(ARCH
)/mm arch
/$(ARCH
)/lib
$(SUBDIRS
)
76 CORE_FILES
:= arch
/$(ARCH
)/kernel
/kernel.o arch
/$(ARCH
)/mm
/mm.o
$(CORE_FILES
)
78 LIBS
:= $(TOPDIR
)/arch
/$(ARCH
)/lib
/lib.a
$(LIBS
) \
79 $(TOPDIR
)/arch
/$(ARCH
)/lib
/lib.a
81 MAKEBOOT
= $(MAKE
) -C arch
/$(ARCH
)/boot
83 vmlinux
: arch
/$(ARCH
)/vmlinux.lds
85 arch
/$(ARCH
)/vmlinux.lds
: arch
/$(ARCH
)/vmlinux.lds.S FORCE
86 $(CPP
) -D__ASSEMBLY__
-C
-P
-I
$(HPATH
) -I
$(HPATH
)/asm-
$(ARCH
) \
87 arch
/$(ARCH
)/vmlinux.lds.S
> $@
95 # My boot writes directly to a specific disk partition, I doubt most
96 # people will want to do that without changes..
102 @
$(MAKEBOOT
) bootimage
108 @
$(MAKE
) -C arch
/$(ARCH
)/kernel
clean
109 @
$(MAKE
) -C arch
/$(ARCH
)/tools
clean
113 rm -f arch
/$(ARCH
)/vmlinux.lds
114 @
$(MAKE
) -C arch
/$(ARCH
)/tools mrproper
120 @
$(MAKEBOOT
) bootpfile