Import 2.2.7pre1
[davej-history.git] / arch / i386 / Makefile
blob322b53210e2b1391da904ebdf1b98cac947d32f9
2 # i386/Makefile
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies. Remember to do have actions
6 # for "archclean" and "archdep" for cleaning up and making dependencies for
7 # this architecture
9 # This file is subject to the terms and conditions of the GNU General Public
10 # License. See the file "COPYING" in the main directory of this archive
11 # for more details.
13 # Copyright (C) 1994 by Linus Torvalds
16 LD=$(CROSS_COMPILE)ld -m elf_i386
17 CPP=$(CC) -E
18 OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S
19 LDFLAGS=-e stext
20 LINKFLAGS =-T $(TOPDIR)/arch/i386/vmlinux.lds $(LDFLAGS)
22 CFLAGS_PIPE := -pipe
23 CFLAGS_NSR := -fno-strength-reduce
24 CFLAGS := $(CFLAGS) $(CFLAGS_PIPE) $(CFLAGS_NSR)
26 ifdef CONFIG_M386
27 CFLAGS := $(CFLAGS) -m386 -DCPU=386
28 endif
30 ifdef CONFIG_M486
31 CFLAGS := $(CFLAGS) -m486 -DCPU=486
32 endif
34 ifdef CONFIG_M586
35 CFLAGS := $(CFLAGS) -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
36 endif
38 ifdef CONFIG_M586TSC
39 CFLAGS := $(CFLAGS) -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
40 endif
42 ifdef CONFIG_M686
43 CFLAGS := $(CFLAGS) -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686
44 endif
46 HEAD := arch/i386/kernel/head.o arch/i386/kernel/init_task.o
48 SUBDIRS := $(SUBDIRS) arch/i386/kernel arch/i386/mm arch/i386/lib
49 CORE_FILES := arch/i386/kernel/kernel.o arch/i386/mm/mm.o $(CORE_FILES)
50 LIBS := $(TOPDIR)/arch/i386/lib/lib.a $(LIBS) $(TOPDIR)/arch/i386/lib/lib.a
52 ifdef CONFIG_MATH_EMULATION
53 SUBDIRS := $(SUBDIRS) arch/i386/math-emu
54 DRIVERS := $(DRIVERS) arch/i386/math-emu/math.a
55 endif
57 arch/i386/kernel: dummy
58 $(MAKE) linuxsubdirs SUBDIRS=arch/i386/kernel
60 arch/i386/mm: dummy
61 $(MAKE) linuxsubdirs SUBDIRS=arch/i386/mm
63 MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
65 zImage: vmlinux
66 @$(MAKEBOOT) zImage
68 bzImage: vmlinux
69 @$(MAKEBOOT) bzImage
71 compressed: zImage
73 zlilo: vmlinux
74 @$(MAKEBOOT) BOOTIMAGE=zImage zlilo
76 bzlilo: vmlinux
77 @$(MAKEBOOT) BOOTIMAGE=bzImage zlilo
79 zdisk: vmlinux
80 @$(MAKEBOOT) BOOTIMAGE=zImage zdisk
82 bzdisk: vmlinux
83 @$(MAKEBOOT) BOOTIMAGE=bzImage zdisk
85 install: vmlinux
86 @$(MAKEBOOT) BOOTIMAGE=bzImage install
88 archclean:
89 @$(MAKEBOOT) clean
91 archmrproper:
93 archdep:
94 @$(MAKEBOOT) dep