Linux-2.3.3 and a short hiatus..
[davej-history.git] / arch / i386 / Makefile
blob88a4f47e6cfc6d96cc06b6fa0c614f34216d250d
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 AFLAGS := $(AFLAGS) -DCPU=386
29 endif
31 ifdef CONFIG_M486
32 CFLAGS := $(CFLAGS) -m486 -DCPU=486
33 AFLAGS := $(AFLAGS) -DCPU=486
34 endif
36 ifdef CONFIG_M586
37 CFLAGS := $(CFLAGS) -DCPU=586
38 AFLAGS := $(AFLAGS) -DCPU=586
39 endif
41 ifdef CONFIG_M586TSC
42 CFLAGS := $(CFLAGS) -DCPU=586
43 AFLAGS := $(AFLAGS) -DCPU=586
44 endif
46 ifdef CONFIG_M686
47 CFLAGS := $(CFLAGS) -DCPU=686
48 AFLAGS := $(AFLAGS) -DCPU=686
49 endif
51 HEAD := arch/i386/kernel/head.o arch/i386/kernel/init_task.o
53 SUBDIRS := $(SUBDIRS) arch/i386/kernel arch/i386/mm arch/i386/lib
54 CORE_FILES := arch/i386/kernel/kernel.o arch/i386/mm/mm.o $(CORE_FILES)
55 LIBS := $(TOPDIR)/arch/i386/lib/lib.a $(LIBS) $(TOPDIR)/arch/i386/lib/lib.a
57 ifdef CONFIG_MATH_EMULATION
58 SUBDIRS := $(SUBDIRS) arch/i386/math-emu
59 DRIVERS := $(DRIVERS) arch/i386/math-emu/math.a
60 endif
62 arch/i386/kernel: dummy
63 $(MAKE) linuxsubdirs SUBDIRS=arch/i386/kernel
65 arch/i386/mm: dummy
66 $(MAKE) linuxsubdirs SUBDIRS=arch/i386/mm
68 MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
70 zImage: vmlinux
71 @$(MAKEBOOT) zImage
73 bzImage: vmlinux
74 @$(MAKEBOOT) bzImage
76 compressed: zImage
78 zlilo: vmlinux
79 @$(MAKEBOOT) BOOTIMAGE=zImage zlilo
81 bzlilo: vmlinux
82 @$(MAKEBOOT) BOOTIMAGE=bzImage zlilo
84 zdisk: vmlinux
85 @$(MAKEBOOT) BOOTIMAGE=zImage zdisk
87 bzdisk: vmlinux
88 @$(MAKEBOOT) BOOTIMAGE=bzImage zdisk
90 install: vmlinux
91 @$(MAKEBOOT) BOOTIMAGE=bzImage install
93 archclean:
94 @$(MAKEBOOT) clean
96 archmrproper:
98 archdep:
99 @$(MAKEBOOT) dep