Import 2.4.0-test5pre5
[davej-history.git] / arch / ia64 / Makefile
blobd542d148743f0346d37aa138e4109d019910b27c
2 # ia64/Makefile
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
6 # for more details.
8 # Copyright (C) 1998-2000 by David Mosberger-Tang <davidm@hpl.hp.com>
11 NM := $(CROSS_COMPILE)nm -B
12 AWK := awk
14 export AWK
16 LINKFLAGS = -static -T arch/$(ARCH)/vmlinux.lds
17 AFLAGS += -Wa,-x
18 EXTRA =
20 CFLAGS := $(CFLAGS) -pipe $(EXTRA) -Wa,-x -ffixed-r13 -mfixed-range=f10-f15,f32-f127 \
21 -funwind-tables
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 \
28 $(CORE_FILES)
29 SUBDIRS := arch/$(ARCH)/hp \
30 arch/$(ARCH)/sn/sn1 \
31 arch/$(ARCH)/sn \
32 arch/$(ARCH)/dig \
33 $(SUBDIRS)
35 else # !GENERIC
37 ifdef CONFIG_IA64_HP_SIM
38 SUBDIRS := arch/$(ARCH)/hp \
39 $(SUBDIRS)
40 CORE_FILES := arch/$(ARCH)/hp/hp.a \
41 $(CORE_FILES)
42 endif
44 ifdef CONFIG_IA64_SGI_SN1_SIM
45 SUBDIRS := arch/$(ARCH)/sn/sn1 \
46 arch/$(ARCH)/sn \
47 $(SUBDIRS)
48 CORE_FILES := arch/$(ARCH)/sn/sn.a \
49 $(CORE_FILES)
50 endif
52 ifdef CONFIG_IA64_SOFTSDV
53 SUBDIRS := arch/$(ARCH)/dig \
54 $(SUBDIRS)
55 CORE_FILES := arch/$(ARCH)/dig/dig.a \
56 $(CORE_FILES)
57 endif
59 ifdef CONFIG_IA64_DIG
60 SUBDIRS := arch/$(ARCH)/dig \
61 $(SUBDIRS)
62 CORE_FILES := arch/$(ARCH)/dig/dig.a \
63 $(CORE_FILES)
64 endif
66 endif # !GENERIC
68 ifdef CONFIG_IA32_SUPPORT
69 SUBDIRS := arch/$(ARCH)/ia32 $(SUBDIRS)
70 CORE_FILES := arch/$(ARCH)/ia32/ia32.o $(CORE_FILES)
71 endif
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 > $@
89 FORCE: ;
91 rawboot:
92 @$(MAKEBOOT) rawboot
95 # My boot writes directly to a specific disk partition, I doubt most
96 # people will want to do that without changes..
98 msb my-special-boot:
99 @$(MAKEBOOT) msb
101 bootimage:
102 @$(MAKEBOOT) bootimage
104 srmboot:
105 @$(MAKEBOOT) srmboot
107 archclean:
108 @$(MAKE) -C arch/$(ARCH)/kernel clean
109 @$(MAKE) -C arch/$(ARCH)/tools clean
110 @$(MAKEBOOT) clean
112 archmrproper:
113 rm -f arch/$(ARCH)/vmlinux.lds
114 @$(MAKE) -C arch/$(ARCH)/tools mrproper
116 archdep:
117 @$(MAKEBOOT) dep
119 bootpfile:
120 @$(MAKEBOOT) bootpfile