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
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
13 # Copyright (C) 1994 by Linus Torvalds
16 LD
=$(CROSS_COMPILE
)ld -m elf_i386
18 OBJCOPY
=$(CROSS_COMPILE
)objcopy
-O binary
-R .note
-R .comment
-S
20 LINKFLAGS
=-T
$(TOPDIR
)/arch
/i386
/vmlinux.lds
$(LDFLAGS
)
23 CFLAGS_NSR
:= -fno-strength-reduce
24 CFLAGS
:= $(CFLAGS
) $(CFLAGS_PIPE
) $(CFLAGS_NSR
)
27 CFLAGS
:= $(CFLAGS
) -m386
-DCPU
=386
28 AFLAGS
:= $(AFLAGS
) -DCPU
=386
32 CFLAGS
:= $(CFLAGS
) -m486
-DCPU
=486
33 AFLAGS
:= $(AFLAGS
) -DCPU
=486
37 CFLAGS
:= $(CFLAGS
) -DCPU
=586
38 AFLAGS
:= $(AFLAGS
) -DCPU
=586
42 CFLAGS
:= $(CFLAGS
) -DCPU
=586
43 AFLAGS
:= $(AFLAGS
) -DCPU
=586
47 CFLAGS
:= $(CFLAGS
) -DCPU
=686
48 AFLAGS
:= $(AFLAGS
) -DCPU
=686
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
62 arch
/i386
/kernel
: dummy
63 $(MAKE
) linuxsubdirs SUBDIRS
=arch
/i386
/kernel
66 $(MAKE
) linuxsubdirs SUBDIRS
=arch
/i386
/mm
68 MAKEBOOT
= $(MAKE
) -C arch
/$(ARCH
)/boot
79 @
$(MAKEBOOT
) BOOTIMAGE
=zImage zlilo
82 @
$(MAKEBOOT
) BOOTIMAGE
=bzImage zlilo
85 @
$(MAKEBOOT
) BOOTIMAGE
=zImage zdisk
88 @
$(MAKEBOOT
) BOOTIMAGE
=bzImage zdisk
91 @
$(MAKEBOOT
) BOOTIMAGE
=bzImage
install